Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 852 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 852 Bytes

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 %}