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, form):
... # 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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abaf2f7b9cf954061febc7e4f383cedf4837614eb3dc0d89cbeb5a058cffc8b6 |
|
MD5 | 6fbb1d2de76ecf36418eb66d16a1dc2b |
|
BLAKE2b-256 | 75c231d4b58611f45d18630d49352622f82db11db1abfe104c8431882f6b3505 |