Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

another admin template for django with bootstrap4.0 and sass.

Project Description

another admin template for django with bootstrap4.0 and sass

It is not unavailable now

Install

use pip to install django-zadmin.

pip install django-zadmin

How to use django-zadmin?

  1. Anytime, open settings.py, and add app zadmin to INSTALLED_APPS

python   INSTALLED_APPS = [       # keep 'django.contrib.admin' here.       'django.contrib.admin',       'django.contrib.auth',       'django.contrib.contenttypes',       'django.contrib.sessions',       'django.contrib.messages',       'django.contrib.staticfiles',       'zadmin',       # other app   ]

  1. Set STATIC_ROOT and TEMPLATES in settings.py
```python
STATIC_ROOT = os.path.join(BASE_DIR, ‘static’)
...

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
            # Here
            os.path.join(BASE_DIR, 'templates')
        ],
        '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',
            ],
        },
    },
]

```

  1. Run python manage.py copy_templates_and_static to copy admin’s template files and static files

    python manage.py copy_templates_and_static

  2. That’s OK

    python manage.py runserver

try example

When you have this repository downloaded, you can play with example immediately.

  1. Open example directory.

  2. export environment variable named as PYTHONPATH

    export PYTHONPATH=/repo_path/zadmin

please replace repo_path to your repository path.

  1. run python manage.py runserver
Release History

Release History

This version
History Node

0.1.1

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-zadmin-0.1.1.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source Jul 18, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting