README.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. ==========
  2. Django JET
  3. ==========
  4. .. image:: https://travis-ci.org/geex-arts/django-jet.svg?branch=master
  5. :target: https://travis-ci.org/geex-arts/django-jet
  6. **Modern template for Django admin interface with improved functionality**
  7. Django JET has two kinds of licenses: open-source (AGPLv3) and commercial. Please note that using AGPLv3
  8. code in your programs make them AGPL compatible too. So if you don't want to comply with that we can provide you a commercial
  9. license (visit Home page). The commercial license is designed for using Django JET in commercial products
  10. and applications without the provisions of the AGPLv3.
  11. .. image:: https://raw.githubusercontent.com/geex-arts/jet/static/logo.png
  12. :width: 500px
  13. :height: 500px
  14. :scale: 50%
  15. :alt: Logo
  16. :align: center
  17. * Home page: http://jet.geex-arts.com/
  18. * **Live Demo**: http://demo.jet.geex-arts.com/admin/
  19. * Documentation: http://jet.readthedocs.org/
  20. * libi.io http://libi.io/library/1683/django-jet
  21. * PyPI: https://pypi.python.org/pypi/django-jet
  22. * Support: support@jet.geex-arts.com
  23. Why Django JET?
  24. ===============
  25. * New fresh look
  26. * Responsive mobile interface
  27. * Useful admin home page
  28. * Minimal template overriding
  29. * Easy integration
  30. * Themes support
  31. * Autocompletion
  32. * Handy controls
  33. Screenshots
  34. ===========
  35. .. image:: https://raw.githubusercontent.com/geex-arts/django-jet/static/screen1_720.png
  36. :alt: Screenshot #1
  37. :align: center
  38. :target: https://raw.githubusercontent.com/geex-arts/django-jet/static/screen1.png
  39. .. image:: https://raw.githubusercontent.com/geex-arts/django-jet/static/screen2_720.png
  40. :alt: Screenshot #2
  41. :align: center
  42. :target: https://raw.githubusercontent.com/geex-arts/django-jet/static/screen2.png
  43. .. image:: https://raw.githubusercontent.com/geex-arts/django-jet/static/screen3_720.png
  44. :alt: Screenshot #3
  45. :align: center
  46. :target: https://raw.githubusercontent.com/geex-arts/django-jet/static/screen3.png
  47. Installation
  48. ============
  49. * Download and install latest version of Django JET:
  50. .. code:: python
  51. pip install django-jet
  52. # or
  53. easy_install django-jet
  54. * Add 'jet' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'django.contrib.admin'):
  55. .. code:: python
  56. INSTALLED_APPS = (
  57. ...
  58. 'jet',
  59. 'django.contrib.admin',
  60. )
  61. * Make sure ``django.template.context_processors.request`` context processor is enabled in settings.py (Django 1.8+ way):
  62. .. code:: python
  63. TEMPLATES = [
  64. {
  65. 'BACKEND': 'django.template.backends.django.DjangoTemplates',
  66. 'DIRS': [],
  67. 'APP_DIRS': True,
  68. 'OPTIONS': {
  69. 'context_processors': [
  70. ...
  71. 'django.template.context_processors.request',
  72. ...
  73. ],
  74. },
  75. },
  76. ]
  77. .. warning::
  78. Before Django 1.8 you should specify context processors different way. Also use ``django.core.context_processors.request`` instead of ``django.template.context_processors.request``.
  79. .. code:: python
  80. from django.conf import global_settings
  81. TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
  82. 'django.core.context_processors.request',
  83. )
  84. * Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):
  85. .. code:: python
  86. urlpatterns = patterns(
  87. '',
  88. url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS
  89. url(r'^admin/', include(admin.site.urls)),
  90. ...
  91. )
  92. * Create database tables:
  93. .. code:: python
  94. python manage.py migrate jet
  95. # or
  96. python manage.py syncdb
  97. * Collect static if you are in production environment:
  98. .. code:: python
  99. python manage.py collectstatic
  100. * Clear your browser cache
  101. Dashboard installation
  102. ======================
  103. .. note:: Dashboard is located into a separate application. So after a typical JET installation it won't be active.
  104. To enable dashboard application follow these steps:
  105. * Add 'jet.dashboard' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'jet'):
  106. .. code:: python
  107. INSTALLED_APPS = (
  108. ...
  109. 'jet.dashboard',
  110. 'jet',
  111. 'django.contrib.admin',
  112. ...
  113. )
  114. * Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):
  115. .. code:: python
  116. urlpatterns = patterns(
  117. '',
  118. url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS
  119. url(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
  120. url(r'^admin/', include(admin.site.urls)),
  121. ...
  122. )
  123. * **For Google Analytics widgets only** install python package:
  124. .. code::
  125. pip install google-api-python-client==1.4.1
  126. * Create database tables:
  127. .. code:: python
  128. python manage.py migrate dashboard
  129. # or
  130. python manage.py syncdb
  131. * Collect static if you are in production environment:
  132. .. code:: python
  133. python manage.py collectstatic