Skip to main content

Django-jet fork with Django@3.0+ support

Project description

Django JET (Django-3 compatible)

Fork from https://github.com/mariusionescu/django-jet

Installation

  • Download and install the Django3 compatible version of Django JET:
    • poetry add cifrazia-django-jet
    • pip install cifrazia-django-jet
    • easy_install cifrazia-django-jet
  • Add 'jet' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'django.contrib.admin'):
INSTALLED_APPS = [
    ...,
    'jet',
    'django.contrib.admin',
]
  • Make sure django.template.context_processors.request context processor is enabled in settings.py (Django 1.8+ way):
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                ...,
                'django.template.context_processors.request',
                ...
            ],
        },
    },
]
  • Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):
urlpatterns = [
    '',
    path('jet/', include('jet.urls', 'jet')),  # Django JET URLS
    path('admin/', include(admin.site.urls)),
    ...
]
  • Create database tables (chose):

    • python manage.py migrate jet
    • python manage.py syncdb
  • Collect static if you are in production environment:

    • python manage.py collectstatic
  • Clear your browser cache

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cifrazia-django-jet-1.1.4.tar.gz (1.6 MB view hashes)

Uploaded Source

Built Distribution

cifrazia_django_jet-1.1.4-py3-none-any.whl (1.1 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page