Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-staff-view-1.0.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

django_staff_view-1.0.2-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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