Skip to main content

Genrerate adminlte cruds for models

Project description

ajaxlte

Requirements

  • Python = 3
  • Django >= 3.05
  • django-crispy-forms >= 1.9.0

Installation

  • pip install django-grappelli-extras

settings.py

  • Put 'grappelli_extras' before 'grappelli' on INSTALLED_APPS
# Your setting will look like:
INSTALLED_APPS = [
    'ajaxlte',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # continue with your apps
]
  • Put 'applist' in your active context_processors.
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

urls.py

  • Put grappelli extras urls in 'urlpatterns':
# Your urls will look like:
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path('admin/', admin.site.urls),
    path('ajalte/', include('ajaxlte.urls')),
]

Available features:

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

django-ajaxlte-1.0.0.tar.gz (7.8 MB view details)

Uploaded Source

File details

Details for the file django-ajaxlte-1.0.0.tar.gz.

File metadata

  • Download URL: django-ajaxlte-1.0.0.tar.gz
  • Upload date:
  • Size: 7.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for django-ajaxlte-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8d70698db3acb5ffb85c571e0e1d22c4addf1fbbc8079dfce33a137a99048157
MD5 83468b46f8f0852b7691d279c53eae7c
BLAKE2b-256 2e3e9ffde9d37384fb3ce6f5439f0ae1a3428178f9c341e4a0a4d0981d51ad30

See more details on using hashes here.

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