This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
  • install using pip:
pip install django-site-navigation
  • add “site_navigation” to your INSTALLED_APPS:
INSTALLED_APPS = (
    ...
    'site_navigation'
)
  • add “site_navigation.context_processors.getNavigationProperties” to your TEMPLATE_CONTEXT_PROCESSORS:
TEMPLATE_CONTEXT_PROCESSORS = (
    ...
    'site_navigation.context_processors.getNavigationProperties'
)
  • add “site_navigation.middleware.RedirectMiddleware” to your MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES = (
    ...
    'site_navigation.middleware.RedirectMiddleware'
)
  • add in urls.py:
from navigation.utils import addUrl
urlpatterns += addUrl('default_page.html')
  • create table:
python ./manage.py migrate
  • create templates: default_page.html
{% load site-navigation %}
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="description" content="{{ NAVIGATION_SUBDIVISION.description|default_if_none:'' }}">
    <meta name="keywords" content="{{ NAVIGATION_SUBDIVISION.keywords|default_if_none:'' }}">
    <title>
        <title>
            {% if NAVIGATION_SUBDIVISION.title %}{{ NAVIGATION_SUBDIVISION.title }}
            {% elif NAVIGATION_SUBDIVISION.pageTitle %} {{ NAVIGATION_SUBDIVISION.pageTitle }}
            {% elif NAVIGATION_SUBDIVISION.name %}{{ NAVIGATION_SUBDIVISION.name }}
            {% else %}{{ SITE_OPTIONS.title }}{% endif %}
        </title>
    </title>
</head>
<body>

{% breadcrumbs %}

<h1>
    {% if NAVIGATION_SUBDIVISION.pageTitle %}
        {{ NAVIGATION_SUBDIVISION.pageTitle }}
    {% else %}
        {{ NAVIGATION_SUBDIVISION.name }}
    {% endif %}
</h1>


{% block beforecontent %}
    {{ NAVIGATION_SUBDIVISION.before|default_if_none:''|safe }}
{% endblock %}

{% block content %}{% endblock %}

{% block aftercontent %}
    {{ NAVIGATION_SUBDIVISION.after|default_if_none:''|safe }}
{% endblock %}

</body>
</html>

menu.html

{% for sub in subdivisions|dictsortreversed:"priority" %}
    <li {% if sub == NAVIGATION_SUBDIVISION %} class="active" {% endif %}>
        <a href="{{ sub.getUrl }}" >
            {{ sub }}
        </a>
    </li>
{% endfor %}

breadcrumbs.html

<ul>
    <li><a href="/">Home</a></li>
    {% for s in NAVIGATION_BRANCH %}
        <li>{% if not forloop.last %}
                <a href="{{ s.getUrl }}">{{ s.name }}</a>
             {% else %}
                {{ s.name }}
             {% endif %}
        </li>
    {% endfor %}
</ul>
Release History

Release History

0.0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-site-navigation-0.0.2.tar.gz (1.9 kB) Copy SHA256 Checksum SHA256 Source Sep 27, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting