# 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
```shell
$ pip install django-staff-view
```
## Usage
Add `staff_views` to `INSTALLED_APPS`.
Import the view class from the package, and subclass it like this:
```python
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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/bboogaard/django-staff-view",
"name": "django-staff-view",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Django Staff views",
"author": "Bram Boogaard",
"author_email": "padawan@hetnet.nl",
"download_url": "https://files.pythonhosted.org/packages/77/2b/edd31b33e85de9c7993823ef8bd0430d9a9422a489fb4bb583849784262e/django-staff-view-1.0.2.tar.gz",
"platform": null,
"description": "# django-staff-view\n\nGeneric non-model related admin views for Django.\n\n## Rationale\n\nDefine admin views for Django admin not tied to a ModelAdmin.\n\n## Support\n\nSupports: Python 3.10.\n\nSupports Django Versions: 4.2.9\n\n## Installation\n\n```shell\n$ pip install django-staff-view\n```\n\n## Usage\n\nAdd `staff_views` to `INSTALLED_APPS`.\n\nImport the view class from the package, and subclass it like this:\n\n```python\nfrom django import forms\nfrom staff_view.views import StaffView\n\n\nclass MyForm(forms.Form):\n \n text = forms.CharField()\n \n \nclass MyView(StaffView):\n\n form_class = MyForm\n\n def form_valid(self, form):\n ... # Return a response object\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Staff views for Django",
"version": "1.0.2",
"project_urls": {
"Homepage": "https://github.com/bboogaard/django-staff-view"
},
"split_keywords": [
"django",
"staff",
"views"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "75c231d4b58611f45d18630d49352622f82db11db1abfe104c8431882f6b3505",
"md5": "6fbb1d2de76ecf36418eb66d16a1dc2b",
"sha256": "abaf2f7b9cf954061febc7e4f383cedf4837614eb3dc0d89cbeb5a058cffc8b6"
},
"downloads": -1,
"filename": "django_staff_view-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6fbb1d2de76ecf36418eb66d16a1dc2b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3477,
"upload_time": "2024-02-14T13:53:53",
"upload_time_iso_8601": "2024-02-14T13:53:53.411692Z",
"url": "https://files.pythonhosted.org/packages/75/c2/31d4b58611f45d18630d49352622f82db11db1abfe104c8431882f6b3505/django_staff_view-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "772bedd31b33e85de9c7993823ef8bd0430d9a9422a489fb4bb583849784262e",
"md5": "8e66e36906f86d842b7c6de654a71dbd",
"sha256": "dc700b208ed7e1a8989d8720980ad2ec63f93058f8d3f1339a0a0a9a1d4bb848"
},
"downloads": -1,
"filename": "django-staff-view-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "8e66e36906f86d842b7c6de654a71dbd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3124,
"upload_time": "2024-02-14T13:53:54",
"upload_time_iso_8601": "2024-02-14T13:53:54.871462Z",
"url": "https://files.pythonhosted.org/packages/77/2b/edd31b33e85de9c7993823ef8bd0430d9a9422a489fb4bb583849784262e/django-staff-view-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-14 13:53:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bboogaard",
"github_project": "django-staff-view",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "django-staff-view"
}