Skip to content

agiliq/django-subdomain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

STEPS:

  1. Include 'subdomains' in installed apps.

  2. Middlewares a. subdomains.middleware.GetSubdomainMiddleware b. subdomains.middleware.ThreadLocals c. subdomains.middleware.RedirectOnInvalidSubdomain

  3. include subdomains urls in urls.py

    url(r'^', include('subdomains.urls')),

  4. create the subdomain table python manage.py syncdb

*. matched subdomain/domain object is available via thread locals, from subdomains.middleware import get_current_subdomain subdomain_obj = get_current_subdomain()

About

app to provide subdomain functionality in django project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 72.1%
  • Python 27.9%