Skip to content

This app provides a templatetag and a small webpage to track the pip status of a project

License

Notifications You must be signed in to change notification settings

soerenbe/django-pipstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^pipstatus/', include(pipstatus.urls)),
]

Setup own view

Define a view and a template somewhere

def pipconfig2(request):
    return render(request, "my_template.html")
{% extends "base.html" %}
{% block content %}
<h1>My PIP Page</h1>
{% include "pipstatus.html" %}
{% endblock %}

Define your own template structure

{% load pipstatus %}
{% get_pipstatus as config %}
{% for x in config.entries %}
  {% if x.outdated %}
    x.name is outdated!<br>
  {% endif %}
{% endfor %}

About

This app provides a templatetag and a small webpage to track the pip status of a project

Resources

License

Stars

Watchers

Forks

Packages

No packages published