Staff views for Django
Project description
django-staff-view
Generic non-model related admin views for Django.
Rationale
Define admin views for Django admin not tied to a ModelAdmin.
Support
Supports: Python 3.10.
Supports Django Versions: 4.2.9
Installation
$ pip install django-staff-view
Usage
Add staff_views
to INSTALLED_APPS
.
Import the view class from the package, and subclass it like this:
from django import forms
from staff_view.views import StaffView
class MyForm(forms.Form):
text = forms.CharField()
class MyView(StaffView):
form_class = MyForm
def form_valid(self, username, email):
... # Return a response object
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
Built Distribution
Close
Hashes for django_staff_view-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e61bc549d0651a6936ef25dd72eebeaba3e44d4cce8e6a0f12214a4cca12096b |
|
MD5 | f6f30a4daf63db888d0e39d3ca1c3535 |
|
BLAKE2b-256 | 8516fd210954ebacb40305562c5da1ff07632f228bb05b3215883431207fbcff |