Questions tagged [django-subdomains]

Django Subdomains is a package aimed at allowing subdomains to be used with the django webframework

The package works by placing a subdomain urlconfs in your settings:

SUBDOMAIN_URLCONFS = {
    None: 'myproject.urls.frontend',  # no subdomain, e.g. ``example.com``
    'www': 'myproject.urls.frontend',
    'api': 'myproject.urls.api',
}

With a key per subdomain.

Other utilities are provided for reversing urls on subdomains.

18 questions
0
votes
1 answer

How to set subdomains with django?

I've deployed my site on pythonanywhere.com, now I'd like to configure subdomains on some pages and I was wondering what I'm doing wrong using django-subdomains package ? Here is what my code looks like : settings.py : ... (already installed…
Horai Nuri
  • 5,358
  • 16
  • 75
  • 127
0
votes
1 answer

Exception occurred processing WSGI script :: ImportError: No module named 'subdomains'

I am running an app in apache2 with wsgi, but I am getting this error: > mod_wsgi (pid=26904): Exception occurred processing WSGI script > '/var/www/multidb/multidb/wsgi.py'. Traceback (most recent call last): > File…
-1
votes
1 answer

Adding a domain to a django webapp running on digital ocean

I have a Django Web App that is currently live on digital ocean with an IP address say w.x.y.z, I have also bought a domain name say example.com, how can i add this to my app so that, when i go to example.com , I get to my website which currently is…
user6714507
  • 63
  • 1
  • 9
1
2