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?
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 ]
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',
],
},
},
]
```
Run python manage.py copy_templates_and_static to copy admin’s
template files and static files
python manage.py copy_templates_and_static
That’s OK
python manage.py runserver
try example
When you have this repository downloaded, you can play with example
immediately.
Open example directory.
export environment variable named as PYTHONPATH
export PYTHONPATH=/repo_path/zadmin
please replace repo_path to your repository path.
run python manage.py runserver
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-zadmin-0.1.1.tar.gz
.
File metadata
-
Download URL:
django-zadmin-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
-
Uploaded using Trusted Publishing? No
File hashes
Hashes for django-zadmin-0.1.1.tar.gz
Algorithm |
Hash digest |
|
SHA256 |
26859550923a3ed9d55ec7422229fe27f587560975afc1b16c0ae566178e053e |
|
MD5 |
9ebb10da3b5253e2520a056510488869 |
|
BLAKE2b-256 |
c9a525b9a899b144e33660103b8834203405a30551b9b4b1458b47a61949b05d |
|
See more details on using hashes here.
Provenance