Skip to main content

Django plgooge practice modules.

Project description

https://badge.fury.io/py/django-dj-plugin.svg https://travis-ci.org/daimon99/django-dj-plugin.svg?branch=master https://codecov.io/gh/daimon99/django-dj-plugin/branch/master/graph/badge.svg

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.

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-dj-plugin-0.10.0.tar.gz (14.0 kB view details)

Uploaded Source

File details

Details for the file django-dj-plugin-0.10.0.tar.gz.

File metadata

  • Download URL: django-dj-plugin-0.10.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django-dj-plugin-0.10.0.tar.gz
Algorithm Hash digest
SHA256 e0555c7527198cba3441ccd870746db53c5a9c4dab0d4a49ef90cf008876a875
MD5 5f692a5da1df6d4d98835c1060a86fde
BLAKE2b-256 bbbf6dd4fbe4ba8a57ddf8b28cc6789e9bd3e75820a953cedd8749f8e6341fdc

See more details on using hashes here.

Supported by

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