README.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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 (GPLv2) and commercial. Please note that using GPLv2
  8. code in your programs make them GPL too. So if you don't want to comply with that we can provide you a commercial
  9. license (in this case please email at support@jet.geex-arts.com). The commercial license
  10. is designed for using Django JET in commercial products and applications without the provisions of the GPLv2.
  11. .. image:: https://raw.githubusercontent.com/geex-arts/jet/static/logo.png
  12. :width: 500px
  13. :height: 500px
  14. :scale: 50%
  15. :alt: Screenshot #1
  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. * PyPI: https://pypi.python.org/pypi/django-jet
  21. * Support: support@jet.geex-arts.com
  22. Screenshots
  23. ===========
  24. .. image:: https://raw.githubusercontent.com/geex-arts/jet/static/screen1_720.png
  25. :alt: Screenshot #1
  26. :align: center
  27. :target: https://raw.githubusercontent.com/geex-arts/jet/static/screen1.png
  28. .. image:: https://raw.githubusercontent.com/geex-arts/jet/static/screen2_720.png
  29. :alt: Screenshot #1
  30. :align: center
  31. :target: https://raw.githubusercontent.com/geex-arts/jet/static/screen2.png
  32. .. image:: https://raw.githubusercontent.com/geex-arts/jet/static/screen3_720.png
  33. :alt: Screenshot #1
  34. :align: center
  35. :target: https://raw.githubusercontent.com/geex-arts/jet/static/screen3.png
  36. Beta
  37. ====
  38. Current version is still in beta phase. Use it at your own risk (though may be already enough workable).
  39. License
  40. =======
  41. Django JET is licensed under a
  42. The GNU General Public License, Version 2
  43. Installation
  44. ============
  45. * Download and install latest version of Django JET:
  46. .. code:: python
  47. pip install django-jet
  48. # or
  49. easy_install django-jet
  50. * Add 'jet' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'django.contrib.admin'):
  51. .. code:: python
  52. INSTALLED_APPS = (
  53. ...
  54. 'jet',
  55. 'django.contrib.admin',
  56. )
  57. * Make sure ``django.template.context_processors.request`` context processor is enabled in settings.py (Django 1.8+ way):
  58. .. code:: python
  59. TEMPLATES = [
  60. {
  61. 'BACKEND': 'django.template.backends.django.DjangoTemplates',
  62. 'DIRS': [],
  63. 'APP_DIRS': True,
  64. 'OPTIONS': {
  65. 'context_processors': [
  66. ...
  67. 'django.template.context_processors.request',
  68. ...
  69. ],
  70. },
  71. },
  72. ]
  73. .. warning::
  74. 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``.
  75. .. code:: python
  76. from django.conf import global_settings
  77. TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
  78. 'django.core.context_processors.request',
  79. )
  80. * Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):
  81. .. code:: python
  82. urlpatterns = patterns(
  83. '',
  84. url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS
  85. url(r'^admin/', include(admin.site.urls)),
  86. ...
  87. )
  88. * Create database tables:
  89. .. code:: python
  90. python manage.py migrate jet
  91. # or
  92. python manage.py syncdb
  93. * Collect static if you are in production environment:
  94. .. code:: python
  95. python manage.py collectstatic
  96. * Clear your browser cache
  97. Dashboard installation
  98. ======================
  99. .. note:: Dashboard is located into a separate application. So after a typical JET installation it won't be active.
  100. To enable dashboard application follow these steps:
  101. * Add 'jet.dashboard' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'jet'):
  102. .. code:: python
  103. INSTALLED_APPS = (
  104. ...
  105. 'jet.dashboard',
  106. 'jet',
  107. 'django.contrib.admin',
  108. ...
  109. )
  110. * Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):
  111. .. code:: python
  112. urlpatterns = patterns(
  113. '',
  114. url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS
  115. url(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
  116. url(r'^admin/', include(admin.site.urls)),
  117. ...
  118. )
  119. * **For Google Analytics widgets only** install python package:
  120. .. code::
  121. pip install google-api-python-client
  122. * Create database tables:
  123. .. code:: python
  124. python manage.py migrate dashboard
  125. # or
  126. python manage.py syncdb
  127. * Collect static if you are in production environment:
  128. .. code:: python
  129. python manage.py collectstatic