|
@@ -42,27 +42,32 @@ After this you should proceed to :ref:`c
|
|
|
.. _configuring-django:
|
|
|
|
|
|
Configuring your Django installation
|
|
|
====================================
|
|
|
|
|
|
Once the Django Conntrackt has been installed, you need to perform the following
|
|
|
steps in order to make it available inside of your Django project:
|
|
|
|
|
|
#. Edit your project's settings configuration file (``settings.py``),
|
|
|
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).
|
|
|
|
|
|
If you have enabled ``django.contrib.admin``, you should be able to
|
|
|
add new Conntrackt data through admin interface as well - in addition
|
|
|
to native data entry provided by application.
|