Changeset - ff99fef4e9a7
[Not reviewed]
default
0 2 0
Branko Majic (branko) - 6 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:
0 comments (0 inline, 0 general)
docs/installation.rst
Show inline comments
 
@@ -51,14 +51,19 @@ steps in order to make it available insi
 
   and update the ``INSTALLED_APPS`` to include applications
 
   ``braces``, ``crispy_forms``, and ``conntrackt``.
 

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

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

	
 
     from django.conf.urls import url, include
 

	
 
   Add the following line to the ``urlpatterns`` setting::
 

	
 
     url(r'^conntrackt/', include('conntrackt.urls')),
 

	
 
#. Create the necessary tables used for Django Conntrackt by running::
 
#. Create the necessary tables used for *Django Conntrackt*::
 

	
 
   ./manage.py migrate
 
     ./manage.py migrate
 

	
 
After this the Django Conntrackt application will be available under the
 
``/conntrackt/`` path (relative to your Django project's base URL).
docs/quickstart.rst
Show inline comments
 
@@ -46,10 +46,17 @@ some basic settings:
 
     '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/')),
 
@@ -60,9 +67,12 @@ 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.
0 comments (0 inline, 0 general)