README.rst 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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.core.context_processors.request' context processor is enabled in settings.py:
  58. .. code:: python
  59. from django.conf import global_settings
  60. TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
  61. 'django.core.context_processors.request',
  62. )
  63. * Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):
  64. .. code:: python
  65. urlpatterns = patterns(
  66. '',
  67. url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS
  68. url(r'^admin/', include(admin.site.urls)),
  69. ...
  70. )
  71. * Create database tables:
  72. .. code:: python
  73. python manage.py migrate jet
  74. # or
  75. python manage.py syncdb
  76. * Collect static if you are in production environment:
  77. .. code:: python
  78. python manage.py collectstatic
  79. * Clear your browser cache
  80. Dashboard installation
  81. ======================
  82. .. note:: Dashboard is located into a separate application. So after a typical JET installation it won't be active.
  83. To enable dashboard application follow these steps:
  84. * Add 'jet.dashboard' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'jet'):
  85. .. code:: python
  86. INSTALLED_APPS = (
  87. ...
  88. 'jet.dashboard',
  89. 'jet',
  90. 'django.contrib.admin',
  91. ...
  92. )
  93. * Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):
  94. .. code:: python
  95. urlpatterns = patterns(
  96. '',
  97. url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS
  98. url(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
  99. url(r'^admin/', include(admin.site.urls)),
  100. ...
  101. )
  102. * **For Google Analytics widgets only** install python package:
  103. .. code::
  104. pip install google-api-python-client
  105. * Create database tables:
  106. .. code:: python
  107. python manage.py migrate dashboard
  108. # or
  109. python manage.py syncdb
  110. * Collect static if you are in production environment:
  111. .. code:: python
  112. python manage.py collectstatic