Skip to main content

Django App to easily manage project sponsors

Project description

Django App to easily manage Django projects sponsors


The full documentation is at


Install Django Sponsors:

  1. Using pip:

    pip install django-sponsors
  2. Add the sponsors application to INSTALLED_APPS in your settings file:

  3. Sync database:

    ``$ ./ syncdb``  and
    ``$ ./ migrate``

Important: South 1.0 or greater is required to run migrations.

  1. Run the collectstatic management command:

    ``$ / collectstatic``

This will copy static sponsors.css into the directory given by the STATIC_ROOT setting.

  1. Load in your template the sponsors.css file like this:

    <link rel="stylesheet" href="{% static "sponsors/css/sponors.css" %}">

This will copy static sponsors.css into the directory given by the STATIC_ROOT setting.

  1. [OPTIONAL] Add sponsors urls into your project’s file:

    (r'^sponsors/', include('sponsors.urls')),

This will give url access to sponsors’ views, not many in the very firsts versions :-(


Then use it in a project:

To show all sponsors in uncategorized way:

{% show_sponsors %}

To show only platinum sponsors with its default platinum styles (see sponsors.css):

{% show_sponsors 'platinum' %}

To show gold and silver sponsors with their default gold and silver styles (see sponsors.css):

{% show_sponsors 'gold,silver' %}




  • Template Tags
  • Models


To run the tests on ‘sponsors’ application, simply type the following command:

$ python test sponsors


  • add more kind of representations (columns, with descriptions, titles, …)
  • coverage 100%
  • test logo custom sizes
  • test logo sizes by cats
  • test background colors by cats
  • Become a Sponsor View
  • Become a Sponsor Form
  • Custom logo size and create thumbnail automatically


Check the tips at CONTRIBUTING.

Change log

Check the history changes CHANGELOG.


MIT License. See LICENSE.


0.1.2 (2015-07-04)

  • Renaming ‘type’ field to ‘category’

0.1.1 (2015-05-28)

  • First REAL release on PyPI :-)

0.1.0 (2015-05-27)

  • First release on PyPI.
  • Basic Sponsor model
  • First version of templatetag
  • Some tests on model, view and templatetag
  • Optional default logo’s width and height in settings
  • Basic styles
  • Admin customized
  • Includes a ListView of Sponsors

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-sponsors-0.1.2.tar.gz (11.9 kB view hashes)

Uploaded source

Supported by

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