django-staff-view


Namedjango-staff-view JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/bboogaard/django-staff-view
SummaryStaff views for Django
upload_time2024-06-21 18:46:12
maintainerNone
docs_urlNone
authorBram Boogaard
requires_pythonNone
licenseMIT License
keywords django staff views
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "Django Staff views",
    "author": "Bram Boogaard",
    "author_email": "padawan@hetnet.nl",
    "download_url": "https://files.pythonhosted.org/packages/e2/6f/5785fae86213b09130aa335296b0da860bcbd279d3864386b5175aa61e68/django_staff_view-1.0.3.tar.gz",
    "platform": null,
    "description": "# django-staff-view\r\n\r\nGeneric non-model related admin views for Django.\r\n\r\n## Rationale\r\n\r\nDefine admin views for Django admin not tied to a ModelAdmin.\r\n\r\n## Support\r\n\r\nSupports: Python 3.10.\r\n\r\nSupports Django Versions: 4.2.9\r\n\r\n## Installation\r\n\r\n```shell\r\n$ pip install django-staff-view\r\n```\r\n\r\n## Usage\r\n\r\nAdd `staff_views` to `INSTALLED_APPS`.\r\n\r\nImport the view class from the package, and subclass it like this:\r\n\r\n```python\r\nfrom django import forms\r\nfrom staff_view.views import StaffView\r\n\r\n\r\nclass MyForm(forms.Form):\r\n    \r\n    text = forms.CharField()\r\n    \r\n    \r\nclass MyView(StaffView):\r\n\r\n    form_class = MyForm\r\n\r\n    def form_valid(self, form):\r\n        ...  # Return a response object\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Staff views for Django",
    "version": "1.0.3",
    "project_urls": {
        "Homepage": "https://github.com/bboogaard/django-staff-view"
    },
    "split_keywords": [
        "django",
        "staff",
        "views"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a566e560bb728f9e5374de37af5bee297dc75e69df17a49d74375533edbef74c",
                "md5": "804775d2c02094fd9f04a8c5168823f7",
                "sha256": "0c1fbf1aeff22b240c7dc6e0b8e35e138e3a244490661ab258e7ddf7e76a6fe7"
            },
            "downloads": -1,
            "filename": "django_staff_view-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "804775d2c02094fd9f04a8c5168823f7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3487,
            "upload_time": "2024-06-21T18:46:10",
            "upload_time_iso_8601": "2024-06-21T18:46:10.476874Z",
            "url": "https://files.pythonhosted.org/packages/a5/66/e560bb728f9e5374de37af5bee297dc75e69df17a49d74375533edbef74c/django_staff_view-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e26f5785fae86213b09130aa335296b0da860bcbd279d3864386b5175aa61e68",
                "md5": "fe44ceda12ad5ba99ebec86d9724438e",
                "sha256": "3ba6d36f96c2cfc6f8398dc0f67fd3a05a717b9ef1bd719de0b8b975cffd81d0"
            },
            "downloads": -1,
            "filename": "django_staff_view-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "fe44ceda12ad5ba99ebec86d9724438e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3150,
            "upload_time": "2024-06-21T18:46:12",
            "upload_time_iso_8601": "2024-06-21T18:46:12.617181Z",
            "url": "https://files.pythonhosted.org/packages/e2/6f/5785fae86213b09130aa335296b0da860bcbd279d3864386b5175aa61e68/django_staff_view-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-21 18:46:12",
    "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"
}
        
Elapsed time: 5.95207s