Skip to main content

A basic model to include administrable linksets in templates.

Project description

## About Linksets

Linksets was originally built as a Django module to administer navigation menus with multiple levels inside templates, but it can also be used for simpler footer linksets, social media linksets, or anywhere you need an administrable list of links, with or without a hierarchy.

## Installation

You can include linksets directly into your site packages via pip:
```
pip install django-linksets
```

Or install as a library in venv/src by adding this line to your requirements.txt file:

```
-e git+https://github.com/gethee2anunnery/django-linksets.git#egg=django-linksets
```

## Configuration

If you installed linksets via your requirements file, you will need to add the venv/src directory to your project path:

```
VENV_SRC_DIR = os.path.join(APP_DIR, 'venv', 'src')
```

Then add linksets into your installed apps:

```
INSTALLED_APPS = (
'linksets',
)
```

Then create the database table:
```
python manage.py syncdb
```

## Implementation

At minimum you will need to implement:

* admin.py
* models.py
* utils.py
* templatetags/links.py

Check the template in the example directory for how to implement linksets in your templates.

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_linksets-2.0.3.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file django_linksets-2.0.3.tar.gz.

File metadata

File hashes

Hashes for django_linksets-2.0.3.tar.gz
Algorithm Hash digest
SHA256 22f7a6d951e16a2f9897a11fe573abcbaf7ed6ad01c215971b075ed925c55493
MD5 bd9403f5744a06d8e6ae479134347b0f
BLAKE2b-256 0e5844e36cce870b8446dd553c953ef4bb0185ba5b941c8306a4742854b144e3

See more details on using hashes here.

Supported by

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