install_dashboard.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ======================
  2. Dashboard installation
  3. ======================
  4. .. note:: Dashboard is located into a separate application. So after a typical JET installation it won't be active.
  5. To enable dashboard application follow these steps:
  6. * Add 'jet.dashboard' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'jet'):
  7. .. code:: python
  8. INSTALLED_APPS = (
  9. ...
  10. 'jet.dashboard',
  11. 'jet',
  12. 'django.contrib.admin',
  13. ...
  14. )
  15. * Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):
  16. .. code:: python
  17. urlpatterns = patterns(
  18. '',
  19. url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS
  20. url(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
  21. url(r'^admin/', include(admin.site.urls)),
  22. ...
  23. )
  24. * **For Google Analytics widgets only** install python package:
  25. .. code::
  26. pip install google-api-python-client
  27. * Create database tables:
  28. .. code:: python
  29. python manage.py migrate dashboard
  30. # or
  31. python manage.py syncdb
  32. * Collect static if you are in production environment:
  33. .. code:: python
  34. python manage.py collectstatic