|
@@ -43,29 +43,39 @@ some basic settings:
|
|
|
#. Under ``INSTALLED_APPS`` append lines::
|
|
|
|
|
|
'crispy_forms',
|
|
|
'braces',
|
|
|
'conntrackt',
|
|
|
|
|
|
Edit the URL configuration file ``conntrackt_test/conntrackt_test/urls/.py`` to
|
|
|
Edit the URL configuration file ``conntrackt_test/conntrackt_test/urls.py`` to
|
|
|
set-up the URLs for the admin website and Conntrackt itself:
|
|
|
|
|
|
#. At the top of the file, add line ``from django.http import HttpResponseRedirect``.
|
|
|
#. At the top of the file, add line::
|
|
|
|
|
|
from django.http import HttpResponseRedirect
|
|
|
|
|
|
#. Update the import command for urls module to look like::
|
|
|
|
|
|
from django.conf.urls import url, include
|
|
|
|
|
|
#. Under ``urlpatterns`` append lines::
|
|
|
|
|
|
url(r'^$', lambda r : HttpResponseRedirect('conntrackt/')),
|
|
|
url(r'^conntrackt/', include('conntrackt.urls')),
|
|
|
|
|
|
Set-up the database for the project::
|
|
|
|
|
|
cd conntrackt_test/
|
|
|
python manage.py migrate
|
|
|
|
|
|
Create the initial superadmin user::
|
|
|
|
|
|
python manage.py createsuperuser
|
|
|
|
|
|
You will be prompted to provide some additional information:
|
|
|
|
|
|
#. When prompted to create a superuser, answer ``yes``.
|
|
|
#. Provide the desired username when prompted for it.
|
|
|
#. Provide the desired e-mail address when prompted for it.
|
|
|
#. Provide the desired password for created user.
|
|
|
|
|
|
After this the project is fully configured to run Django Conntrackt. Run the
|
|
|
Django development server (good enough for testing, but don't use it in
|