Skip to content

howiworkdaily/django-site_info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Simple context processor that adds SITE_NAME, SITE_URL, SITE_DOMAIN to the active request context.

Instructions
------------

1) Add SITE_NAME, SITE_URL, SITE_DOMAIN variables to your settings file.

Example:

SITE_URL = 'something here'
SITE_DOMAIN = 'something here'
SITE_NAME = 'something here'

2) Add the site_info project to your PYTHONPATH

3) Add the processor to your settings file's TEMPLATE_CONTEXT_PROCESSORS

Example:

TEMPLATE_CONTEXT_PROCESSORS = (
    ...
    'site_info.context.processors.site_info',
)

About

Adds site_name, site_url, site_domain to the active context.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages