Django pipstatus
Project description
# django-pipstatus
django-pipstatus provides simple templatetag and page that shows the status of your pip installation.
## Installation
Add 'pipstatus' to your INSTALLED_APP.
## Setup dedicated URL
add pipstatus.url to your urls.py
```python
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^pipstatus/', include(pipstatus.urls)),
]
```
## Setup own view
Define a view and a template somewhere
```python
def pipconfig2(request):
return render(request, "my_template.html")
```
```html
{% extends "base.html" %}
{% block content %}
<h1>My PIP Page</h1>
{% include "pipstatus.html" %}
{% endblock %}
```
## Define your own template structure
```html
{% load pipstatus %}
{% get_pipstatus as config %}
{% for x in config.entries %}
{% if x.outdated %}
x.name is outdated!<br>
{% endif %}
{% endfor %}
```
django-pipstatus provides simple templatetag and page that shows the status of your pip installation.
## Installation
Add 'pipstatus' to your INSTALLED_APP.
## Setup dedicated URL
add pipstatus.url to your urls.py
```python
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^pipstatus/', include(pipstatus.urls)),
]
```
## Setup own view
Define a view and a template somewhere
```python
def pipconfig2(request):
return render(request, "my_template.html")
```
```html
{% extends "base.html" %}
{% block content %}
<h1>My PIP Page</h1>
{% include "pipstatus.html" %}
{% endblock %}
```
## Define your own template structure
```html
{% load pipstatus %}
{% get_pipstatus as config %}
{% for x in config.entries %}
{% if x.outdated %}
x.name is outdated!<br>
{% endif %}
{% endfor %}
```
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
Built Distribution
File details
Details for the file django-pipstatus-0.1.3.tar.gz
.
File metadata
- Download URL: django-pipstatus-0.1.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62189332d1fcdd7689ef3de0ad21162b92f48484f2e3ed51d43342acfaa0cd7c |
|
MD5 | fb26145b837de082d296eaf9ede1449c |
|
BLAKE2b-256 | 80f74a3dab5ee62ab1a55b88a416a3f04c720f972501cc78b6cd23e3493dbdd2 |
File details
Details for the file django_pipstatus-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: django_pipstatus-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91d99f417a410fa50924b74bd37fd3d6e3026385cfc8ceb976470641ba622718 |
|
MD5 | 770b2e00ac1b27fc21288509080912f0 |
|
BLAKE2b-256 | cf4deb09f057f8e4c81504d1e1ba1ce490e5629eae31e9eeedeaf91ee80cc1dc |