Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
f1nality committed Aug 30, 2015
1 parent 3dc062b commit bbd37db
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,56 +57,56 @@ Installation

* Download and install latest version of Django JET:

.. code:: python
pip install django-jet
# or
easy_install django-jet
.. code:: python
pip install django-jet
# or
easy_install django-jet
* Add 'jet' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'django.contrib.admin'):

.. code:: python
INSTALLED_APPS = (
...
'jet',
'django.contrib.admin',
)
.. code:: python
INSTALLED_APPS = (
...
'jet',
'django.contrib.admin',
)
* Make sure 'django.core.context_processors.request' context processor is enabled in settings.py:

.. code:: python
from django.conf import global_settings
.. code:: python
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
'django.core.context_processors.request',
)
from django.conf import global_settings
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
'django.core.context_processors.request',
)
* Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):

.. code:: python
urlpatterns = patterns(
'',
url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS
url(r'^admin/', include(admin.site.urls)),
...
)
.. code:: python
urlpatterns = patterns(
'',
url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS
url(r'^admin/', include(admin.site.urls)),
...
)
* Create database tables:

.. code:: python
python manage.py migrate jet
# or
python manage.py syncdb
.. code:: python
python manage.py migrate jet
# or
python manage.py syncdb
* Collect static if you are in production environment:

.. code:: python
python manage.py collectstatic
.. code:: python
python manage.py collectstatic
* Clear your browser cache

0 comments on commit bbd37db

Please sign in to comment.