semvec/pypi-packages huggingface dataset:
django-meta-tag-view 2020.7.1
Django <meta /> tag view mixin
License: Unlicense
Keywords: django meta

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-meta-tag-view.svg?maxAge=3600)](https://pypi.org/project/django-meta-tag-view/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-meta-tag-view
```

##### `views.py`
```python
from django_meta_tag_view.views import MetaTagMixin

class View(MetaTagMixin,...):
    meta_tags = {'robots': 'noindex'}
```

```python
class View(MetaTagMixin,...):
    def get_meta_tags(self):
        return {
            'description': 'description ...',
            'keywords': 'keywords ...'
        }
```

##### Templates
```html
<head>
{{ meta_tags }}
</head>
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-moderator-required 2020.7.1
Django ModeratorRequiredMixin - request.user.is_moderator==True required
License: Unlicense
Keywords: django moderator

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-moderator-required.svg?maxAge=3600)](https://pypi.org/project/django-moderator-required/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-moderator-required
```

##### `models.py`
```python
class User(AbstractBaseUser):
    is_moderator = models.BooleanField(default=False)
```

##### `views.py`
```python
from django_moderator_required.views import ModeratorRequiredMixin

class MyView(ModeratorRequiredMixin,...):
    ...
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-octicons-context-processor 2020.7.1
Django octicons context processor
License: Unlicense
Keywords: django octicons

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-octicons-context-processor.svg?maxAge=3600)](https://pypi.org/project/django-octicons-context-processor/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-octicons-context-processor
```

##### `settings.py`
```python
TEMPLATES = [
    {
        # …
        'OPTIONS': {
            'context_processors': [
                'django_octicons_context_processor.context_processors.octicons',
            ],
        },
    },
]
```

##### Templates
```html
{{ octions.package_16px }}
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-active-required 2020.7.1
Django ActiveRequiredMixin - request.user.is_active==True required
License: Unlicense
Keywords: django active

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-active-required.svg?maxAge=3600)](https://pypi.org/project/django-active-required/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-active-required
```

##### `views.py`
```python
from django_active_required.views import ActiveRequiredMixin

class MyView(ActiveRequiredMixin,...):
    pass
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-staff-required 2020.7.1
Django StaffRequiredMixin - request.user.is_staff==True required
License: Unlicense
Keywords: django staff

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-staff-required.svg?maxAge=3600)](https://pypi.org/project/django-staff-required/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-staff-required
```

#### Examples
```python
from django_staff_required.views import StaffRequiredMixin

class MyView(StaffRequiredMixin,...):
    ...
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-superuser-required 2020.7.1
Django SuperuserRequiredMixin - request.user.is_superuser==True required
License: Unlicense
Keywords: django superuser

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-superuser-required.svg?maxAge=3600)](https://pypi.org/project/django-superuser-required/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-superuser-required
```

#### Examples
```python
from django_superuser_required.views import SuperuserRequiredMixin

class MyView(SuperuserRequiredMixin,...):
    ...
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-rss-link-view 2020.7.1
Django rss link view mixin
License: Unlicense
Keywords: django rss

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-rss-link-view.svg?maxAge=3600)](https://pypi.org/project/django-rss-link-view/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-rss-link-view
```

##### `views.py`
```python
from django_rss_link_view.views import RssLinkMixin

class MyView(RssLinkMixin,...):
    def get_atom_title(self):
        return 'atom title'

    def get_atom_url(self):
        return 'path/to/atom.xml'

    def get_rss_title(self):
        return 'rss title'

    def get_rss_url(self):
        return 'path/to/rss.xml'
```

```python
class MyView(RssLinkMixin,...):
    atom_title = 'atom title'
    atom_url = 'path/to/atom.xml'
    rss_title = 'rss title'
    rss_url = 'path/to/rss.xml'
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>