Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Simple and generic application for Django projects to attach and handle links for any object

Project description


Simple app to attach links to any Django model. Compatible with Django 1.1x, 2.x and 3.x :)


  • Model Admin
  • Generic inline admin
  • A template tag to get all links for a given model instance


Installing django-generic-links is fairly easy. You can...

pip install django-generic-links

...or, you can clone the repo and install it the old fashioned way.

git clone git://
cd django-generic-links
sudo python install

then add generic_links to your

        # ...

and then run the migrations!

# python migrate


Using django-generic-links models

Imagine you have a music app in your project where you store Artist data. And you would like to store and display links for each artist, say his facebook page, his profile, his youtube artist page and the like:

Generic Links Inline Admin

Since a GenericLink instance will be associated to another object you usally wish to show an inline model admin form in that model form.

Using django-generic-links templatetags

Now imagine you have an artist page. You're passing artist object using template context and you want to get all the links for it:

Development / Contributions

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Development commands

pip install -r requirements_dev.txt
invoke -l

Want to help?

If you'd like to help, write example code, contribute patches, document things on the wiki your help is always appreciated! Just fork the project, clone your repo, commit, push and send me a pull request


The full documentation is at


django-generic-links is released under an BSD License - see the LICENSE file for more information.


Tools used in building this package:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-generic-links, version 0.7.1
Filename, size File type Python version Upload date Hashes
Filename, size django_generic_links-0.7.1-py2.py3-none-any.whl (11.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-generic-links-0.7.1.tar.gz (9.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page