Skip to main content

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 添加到路由

#将应用路由添加到Django项目的根urls.py文件中

urlpatterns = [
    ...
    path('nav/', include(('webstack.urls', 'webstack'), namespace='webstack')),
]

step 5 前往管理界面添加数据即可显示到前台

原项目地址

本项目是基于Webstack网址导航项目改变而来,将静态导航网站改成了有后台的Django项目,原项目地址如下:

https://github.com/WebStackPage/WebStackPage.github.io

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-webstack-0.0.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_webstack-0.0.0-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file django-webstack-0.0.0.tar.gz.

File metadata

  • Download URL: django-webstack-0.0.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for django-webstack-0.0.0.tar.gz
Algorithm Hash digest
SHA256 86a3dbb2d7d010e439edac7e1d705d28c0e1cfa888cd3ae527cf531802abc4c4
MD5 160ca30472a5b9ed43822ea8772e1c6f
BLAKE2b-256 276b46882d13912b83352ac118a720b2307217cf67c9bf09ce4e93c4e740ac69

See more details on using hashes here.

File details

Details for the file django_webstack-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_webstack-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce038df139be60569aa943ae85f18f9da9cdf279c434408783751e9ba52a93e4
MD5 d6962f0ec3503aa83dd5422849eb8949
BLAKE2b-256 fe0072c9bec442a41e12e288298b13ebe3323d6fb9fd2bab969f3b46c50dbbb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page