0 2 0
default
Branko Majic (branko) - 2 years ago 2017-12-22 13:02:01
branko@majic.rs
CONNT-25: Fixed discrepancies and erros in installation/quick-start documentation.
2 files changed with 22 insertions and 7 deletions:
↑ Collapse Diff ↑
...
 
@@ -51,14 +51,19 @@ steps in order to make it available insi
51 51
 
   and update the ``INSTALLED_APPS`` to include applications
52 52
 
   ``braces``, ``crispy_forms``, and ``conntrackt``.
53 53
 

	
54
 
#. Edit your project's URL configuration file (``urls.py``), and add the
55
 
   following line to the ``urlpatterns`` setting::
54
 
#. Edit your project's URL configuration file (``urls.py``).
55
 

	
56
 
   Update the import command for urls module to look like::
57
 

	
58
 
     from django.conf.urls import url, include
59
 

	
60
 
   Add the following line to the ``urlpatterns`` setting::
56 61
 

	
57 62
 
     url(r'^conntrackt/', include('conntrackt.urls')),
58 63
 

	
59
 
#. Create the necessary tables used for Django Conntrackt by running::
64
 
#. Create the necessary tables used for *Django Conntrackt*::
60 65
 

	
61
 
   ./manage.py migrate
66
 
     ./manage.py migrate
62 67
 

	
63 68
 
After this the Django Conntrackt application will be available under the
64 69
 
``/conntrackt/`` path (relative to your Django project's base URL).
...
 
@@ -46,10 +46,17 @@ some basic settings:
46 46
 
     'braces',
47 47
 
     'conntrackt',
48 48
 

	
49
 
Edit the URL configuration file ``conntrackt_test/conntrackt_test/urls/.py`` to
49
 
Edit the URL configuration file ``conntrackt_test/conntrackt_test/urls.py`` to
50 50
 
set-up the URLs for the admin website and Conntrackt itself:
51 51
 

	
52
 
#. At the top of the file, add line ``from django.http import HttpResponseRedirect``.
52
 
#. At the top of the file, add line::
53
 

	
54
 
     from django.http import HttpResponseRedirect
55
 

	
56
 
#. Update the import command for urls module to look like::
57
 

	
58
 
     from django.conf.urls import url, include
59
 

	
53 60
 
#. Under ``urlpatterns`` append lines::
54 61
 

	
55 62
 
     url(r'^$', lambda r : HttpResponseRedirect('conntrackt/')),
...
 
@@ -60,9 +67,12 @@ Set-up the database for the project::
60 67
 
  cd conntrackt_test/
61 68
 
  python manage.py migrate
62 69
 

	
70
 
Create the initial superadmin user::
71
 

	
72
 
  python manage.py createsuperuser
73
 

	
63 74
 
You will be prompted to provide some additional information:
64 75
 

	
65
 
#. When prompted to create a superuser, answer ``yes``.
66 76
 
#. Provide the desired username when prompted for it.
67 77
 
#. Provide the desired e-mail address when prompted for it.
68 78
 
#. Provide the desired password for created user.
0 comments (0 inline, 0 general)