Reusable django app to handle /favicon.ico for your site
Project description
A reusable app to add simple favicon.ico handling for your site.
Installation
Install “django-favicon” using pip or easy_install:
pip install django-favicon
Add “favicon” to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = ( ... 'favicon', )
Add favicon URL patterns to urls.py:
urlpatterns = patterns('', ... url(r'^', include('favicon.urls')), )
Usage
Put favicon.ico into your STATIC_ROOT. and you good to go, /favicon.ico will automatically redirect to /static/favicon.ico if your STATIC_URL = ‘/static/’.
Otherwise you can set a custom path to your favicon using FAVICON_PATH setting. For example:
FAVICON_PATH = STATIC_URL + 'images/favicon.png'
Running the Tests
You can run the tests with via:
python setup.py test
or:
python runtests.py
Contribute
- PyPI (Downloads)
- Official repository
- Issue tracker
Credits
Developed and maintained under supervision of Evgeny Demchenko
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
Built Distributions
File details
Details for the file django-favicon-0.1.4.tar.gz
.
File metadata
- Download URL: django-favicon-0.1.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 651316bda1ab3d47f199b59d1132d2e4ac7bbc4a84b0f7ec9ce323050ff9b344 |
|
MD5 | 535ee401fbc105f6f81000bd0d11cc2c |
|
BLAKE2b-256 | 7c348f713c27d2a8f13dd657ba74e932362c4215cef98bba65f545b0dc097077 |
File details
Details for the file django_favicon-0.1.4-py3.9.egg
.
File metadata
- Download URL: django_favicon-0.1.4-py3.9.egg
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d74c64e62ee888705e68f1db2b32d08ce211e8c422239b0d37c058df717ddb80 |
|
MD5 | 896a624b494070ec8d3ecad6b5eeb8a7 |
|
BLAKE2b-256 | 46d608233ccee81570180c3ce0d34f7727229b5c80fc11bbeca67029d6fbf9e5 |
File details
Details for the file django_favicon-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: django_favicon-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f40655411d1ba442fe11f76a55954316c2fbdf3e95a5bb7bd218d8bc0fec9a5 |
|
MD5 | 961b91ab38372943ca0fd5af45b483a5 |
|
BLAKE2b-256 | aade853bbd196919b459ebe34220abac09ff119c497872b64b5d080fb96b5f6e |