You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, I'm using django-hosts in my project to route to different sub-domains.
It is working quite well on my loca machine, windows 10, but on server( linux, centos 7) it is throwing an error.
I've deployed my django app with mod_wsgi-express.
hosts.py
#hosts.py
from django.conf import settings
from django_hosts import patterns, host
host_patterns = patterns('',
host(r'www', settings.ROOT_URLCONF, name='www'),
host(r'campus', 'Portal.urls', name='portal'),
)
portal urls.py
from django.conf.urls import url, include
from django.contrib.auth import views as auth_views
from .import views
urlpatterns = [
url(r'^$', auth_views.LoginView.as_view(template_name='Portal/login.html'), name='home'),
]
This set of codes are working cool, when i hit campus.localhost:8000 on local machine the desired pages are showing up. but when the same app is deployed, campus.example.com says This site cant be reached.
I'm a new to webservers, if i have to change anything like host configurations on my server or anything related to DNS please give me inputs, I have very limited knowledge on these things,
I'd really appreciate your contribution. Thank you !
The text was updated successfully, but these errors were encountered:
hello, I'm using django-hosts in my project to route to different sub-domains.
It is working quite well on my loca machine, windows 10, but on server( linux, centos 7) it is throwing an error.
I've deployed my django app with mod_wsgi-express.
hosts.py
portal urls.py
This set of codes are working cool, when i hit campus.localhost:8000 on local machine the desired pages are showing up. but when the same app is deployed, campus.example.com says This site cant be reached.
I'm a new to webservers, if i have to change anything like host configurations on my server or anything related to DNS please give me inputs, I have very limited knowledge on these things,
I'd really appreciate your contribution. Thank you !
The text was updated successfully, but these errors were encountered: