webstack of Django
Project description
django-webstack
一个导航APP,可以直接安装到django当做一个独立的应用,效果可以看我博客 https://tendcode.com/nav/
step 1 安裝包依赖
pip install Pillow==9.3.0
pip install django-imagekit==4.0.2
pip install django-webstack
step 2 配置中添加应用
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'webstack',
]
step 3 生成数据表
python manage.py makemigrations
python manage.py migrate
step 4 添加到路由
urlpatterns = [
path('nav/', include(('webstack.urls', 'webstack'), namespace='webstack')),
]
step 5 前往管理界面添加数据即可显示到前台
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-webstack-1.2.2.tar.gz
(1.6 MB
view hashes)
Built Distribution
Close
Hashes for django_webstack-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 402f141e6719dd8de763f1b4f5566cc2c5f5302e023e08b58930ca78df081663 |
|
MD5 | 95fd3032a278cec01a7f4905f3662314 |
|
BLAKE2b-256 | f6b50a66d4d335b142893b2a25dc6145609997e2c1b5d08df093e569325b6573 |