Skip to main content

A simple Django url track and show on home page.

Project description

==========
urlcompass
==========

urlcompass is a simple Django app to display active trail of url visited.

Detailed documentation is in the "docs" directory.

Quick start
===========

1. Add "polls" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'urlcompass',
]

2. URLCOMPASS={'root_name':'name-or-root-view',
'start':'[&nbsp',
'end':'&nbsp]',
'sep':'&nbsp>&nbsp',
'html_id': 'name-of-my-app',
'html_class':'compass bar class',
'rename': lambda x: x.replace('_', ' ')
}

3. In base template add reference to compass:

{% load urlcompass %}

<div>
{% urlcompass_show %}
</div>


4. urlcompass will now be shown.

Example
=======

github link has and example folder for a mimimal django website using urlcompass.

to use the example, activate it virtualenv and run django manager "python manager.py runserver"

Links
=====

github: https://github.com/Acrisel/django-urlcompass

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

django-urlcompass-0.9.2.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file django-urlcompass-0.9.2.tar.gz.

File metadata

File hashes

Hashes for django-urlcompass-0.9.2.tar.gz
Algorithm Hash digest
SHA256 2c0e28e27198afa258687ab21febcf1e3952c3e3020bc414fe124e7afb236a04
MD5 0d50584157f55c882ece43a5644b6a64
BLAKE2b-256 a03d340cf132daff64a14a4241e70df0a124f6791407bfbe83933db074503b9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page