django-dj-plugin
Django plgooge practice modules.
Documentation
The full documentation is at https://django-dj-plugin.readthedocs.io.
Quickstart
Install django-dj-plugin:
pip install django-dj-plugin
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django_dj_plugin.apps.DjangoDjPluginConfig',
...
)
Add django-dj-plugin’s URL patterns:
from django_dj_plugin import urls as django_dj_plugin_urls
urlpatterns = [
...
url(r'^', include(django_dj_plugin_urls)),
...
]
If you want to sort menu or hidden menu, replace ‘django.contrib.admin’ with ‘custadmin’ in your INSTALLED_APPS:
INSTALLED_APPS = (
...
# 'django.contrib.admin',
'custadmin',
...
)
Add attribute(menu_hidden/menu_index) to your modelAdmin:
from django.contrib import admin
@admin.register(XXXModel)
class XXXModelAdmin(admin.ModelAdmin):
menu_hidden = True # True:hidden the menu
menu_index = 1 # type is int, The lower the value, the higher the rank
If you want add self-defined menu, Add it to your INSTALLED_APPS and execute: python manage.py migrate:
INSTALLED_APPS = (
...
'custmenu',
...
)
execute: python manage.py migrate
Features
TODO
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Credits
Tools used in rendering this package:
History
0.1.0 (2020-01-22)
First release on PyPI.
Metadata
Release files for django-dj-plugin 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-dj-plugin-0.10.0.tar.gz | 14.0 kB | Without provenance | Details for django-dj-plugin-0.10.0.tar.gz |
Release files / django-dj-plugin-0.10.0.tar.gz
| Download URL | django-dj-plugin-0.10.0.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0555c7527198cba3441ccd870746db53c5a9c4dab0d4a49ef90cf008876a875
|
|
BLAKE2b-256 checksum How to use checksums |
bbbf6dd4fbe4ba8a57ddf8b28cc6789e9bd3e75820a953cedd8749f8e6341fdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.6
|
Security for django-dj-plugin 0.10.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.