Skip to main content

Django Theme

Django theme 是一个自定义系统主题风格的库,可以生成前端所需要的配置信息。

安装

pip install django-sca-theme

配置

一. 将 django_theme 添加到 INSTALLED_APPS,就像这样:

INSTALLED_APPS = [
    ...
    'django_theme',
]

二. 将 django_theme 的 URL 配置到项目的 urls.py 中:

path("", include("django_theme.urls")),

三. 将设置好 MEDIA_ROOT 和 MEDIA_URL 到 settings.py:

MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR / '/media'

四. 运行 python manage.py migrate 应用数据库修改

五. 运行 python manage.py runserver,创建一个配置.

六. 请求 http://localhost:5000/api/system/theme 获取主题

Metadata

Release files for django-sca-theme 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sca-theme 0.2.0
File Size Uploaded Provenance Actions
django_sca_theme-0.2.0.tar.gz 7.4 kB Without provenance Details for django_sca_theme-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-sca-theme 0.2.0
File Interpreter ABI Platform Actions
django_sca_theme-0.2.0-py3-none-any.whl Python 3 none any Details for django_sca_theme-0.2.0-py3-none-any.whl

Total release size: 18.9 kB

Release files / django_sca_theme-0.2.0.tar.gz

Download URL django_sca_theme-0.2.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f1710130691353601a14fab9948b2044e179f7fe6d7c11fc2884e975c7d0662a
BLAKE2b-256 checksum
How to use checksums
d72cc0d6af0f84e514eb5093dff1a7f12a77310c427fd784c1c3a59184852b93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Release files / django_sca_theme-0.2.0-py3-none-any.whl

Download URL django_sca_theme-0.2.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b12b0fb2b196914f89a65ae15ddf338097608b90303e8469f0cd92ffb96f1da7
BLAKE2b-256 checksum
How to use checksums
16fd6640d30b11ad36b62264d5521c496eaa5d990d4b1ac5970e347b08243a4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Security for django-sca-theme 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page