django soho ui base
Project description
django admin ui
1、在INSTALLED_APPS中添加django_sohoui
INSTALLED_APPS = [
'django_sohoui',
'django.contrib.admin',
....
]
2、克隆静态资源到项目的静态目录
python manage.py collectstatic
3、执行makemigrations
python manage.py makemigrations
python manage.py migrate
4、在TEMPLATES中添加context_processor
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
## 添加custom_context
'django_sohoui.context_processors.custom_context',
]
5、在project/urls.py中添加django_sohoui
from django_sohoui.adminsite import adminsite
urlpatterns = [
## 添加django_sohoui
path('admin/', adminsite.urls),
path('django_sohoui/', include('django_sohoui.urls')),
]
6、 在project/settings.py中添加LOGIN_BG_IMAGE(自定义登录页背景图片)
SOHO_LOGIN_BG_IMAGE = '/static/custom/images/logo_bg.jpg'
7、 在project/settings.py中添加SOHO_MENU_LIST
SOHO_MENU_LIST = {
'show_system_menu': True,
}
X_FRAME_OPTIONS = 'SAMEORIGIN'
LOGIN_REDIRECT_URL = '/django_sohoui/home/'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_sohoui-1.3.3.tar.gz
(6.8 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_sohoui-1.3.3.tar.gz.
File metadata
- Download URL: django_sohoui-1.3.3.tar.gz
- Upload date:
- Size: 6.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efa08f21b2a630aadf248235efc1fe396d0aeb595017c397f7a700cdc063b6da
|
|
| MD5 |
67ba858d9e993f911f3a1c2be2836e4e
|
|
| BLAKE2b-256 |
01d8020e92ad462145288ffaa3669e03c5022395bb5e82ce7b118c6542a25f69
|
File details
Details for the file django_sohoui-1.3.3-py3-none-any.whl.
File metadata
- Download URL: django_sohoui-1.3.3-py3-none-any.whl
- Upload date:
- Size: 6.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99bba967323440702cf2ef38cc8e1a0d3ad2972971c18f97fbf3699fb0bf9d6c
|
|
| MD5 |
ff0b8d76af9456e8581af4be73bf995c
|
|
| BLAKE2b-256 |
16bb91f7b1acca2576c693a7ef05c742cfbe146f5e16d8cec9d2b035afc0d573
|