Files
@ d3e235399b35
Branch filter:
Location: conntrackt/docs/quickstart.rst - annotation
d3e235399b35
3.3 KiB
text/prs.fallenstein.rst
CONNT-33: Bumping version back maintenance.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | 265b2706e075 265b2706e075 265b2706e075 265b2706e075 265b2706e075 265b2706e075 265b2706e075 265b2706e075 265b2706e075 7d5e06b63135 6fd135ca87cc 8f19fdd3d53f 8f19fdd3d53f 8f19fdd3d53f 8f19fdd3d53f 8f19fdd3d53f 8f19fdd3d53f 8f19fdd3d53f 8f19fdd3d53f 827c719a42ed 8f19fdd3d53f 827c719a42ed c60fb2199532 827c719a42ed 827c719a42ed 8f19fdd3d53f 8f19fdd3d53f c60fb2199532 8f19fdd3d53f 8f19fdd3d53f 02854259070b c60fb2199532 8f19fdd3d53f 827c719a42ed c60fb2199532 14e47a3b0ea2 14e47a3b0ea2 14e47a3b0ea2 14e47a3b0ea2 14e47a3b0ea2 14e47a3b0ea2 14e47a3b0ea2 14e47a3b0ea2 14e47a3b0ea2 14e47a3b0ea2 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 9ada42501c2f 9ada42501c2f 9ada42501c2f 9ada42501c2f 9ada42501c2f 9ada42501c2f c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 827c719a42ed c60fb2199532 827c719a42ed c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 c60fb2199532 | .. Copyright (C) 2013 Branko Majic
This file is part of Django Conntrackt documentation.
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
Unported License. To view a copy of this license, visit
http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
Quick-start guide
=================
This chapter provides quick-start instructions in order to allow you to quickly deploy and test Django Conntrackt application.
Debian/Ubuntu
-------------
Install the required distribution packages::
sudo apt-get install python2.7 graphviz virtualenv virtualenvwrapper
Open up a new shell to make sure the ``virtualenvwrapper`` is now
active.
Create the virtual environment for testing Django Conntrackt::
mkvirtualenv conntrackt
Install Django Conntrackt with its requirements::
workon conntrackt
pip install django-conntrackt
.. warning::
You will need to update the ``pip`` installation in your virtual environment if you get the following error while running the above command::
AttributeError: 'NoneType' object has no attribute 'skip_requirements_regex'
You can update ``pip`` to latest version with::
pip install -U pip
Start a new Django Conntrackt project::
django-admin.py startproject conntrackt_test
Edit configuration file ``conntrackt_test/conntrackt_test/settings.py`` to set-up
some basic settings:
#. Under ``DATABASES`` set parameter ``ENGINE`` to ``'django.db.backends.sqlite3'``.
#. Under ``DATABASES`` set parameter ``NAME`` to ``'conntrackt_test.sqlite'``.
#. Under ``INSTALLED_APPS`` uncomment the line ``'django.contrib.admin'``.
#. Under ``INSTALLED_APPS`` append lines::
'south',
'braces',
'conntrackt',
#. Append the following lines to the end of the file::
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
TEMPLATE_CONTEXT_PROCESSORS += (
"django.core.context_processors.request",
)
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``.
#. Uncomment line ``from django.contrib import admin``.
#. Uncomment line ``admin.autodiscover()``.
#. Uncomment line ``url(r'^admin/', include(admin.site.urls)),``
#. 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 syncdb
python manage.py migrate
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
production)::
python manage.py runserver
You can now explore the functionality of Djang Conntrackt at::
http://localhost:8000/
If you have any problems getting around and understanding how the applications
works, have a look at the :ref:`usage guide <usage>`.
|