install_dashboard.rst 1.4 KB

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