ROOT_URLCONF = 'edumed.urls'
+SUBDOMAIN_URLCONFS = {
+ None: 'edumed.urls',
+ 'katalog': 'mil.urls',
+}
+
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'edumed.wsgi.application'
'django.contrib.sessions.middleware.SessionMiddleware'
if "django.contrib.sessions" in INSTALLED_APPS else None,
#'django.middleware.locale.LocaleMiddleware',
+ 'subdomains.middleware.SubdomainURLRoutingMiddleware',
'fnpdjango.middleware.URLLocaleMiddleware',
'django.middleware.common.CommonMiddleware',
--- /dev/null
+from django.conf.urls import patterns, include, url
+from .views import root
+
+
+urlpatterns = patterns('',
+ url(r'^$', root, name="root"),
+)
--- /dev/null
+from django.http import HttpResponse
+
+
+def root(request):
+ return HttpResponse('mil')
\ No newline at end of file
sorl-thumbnail>=11,<12
pyyaml
+django-subdomains>=2.0.4,<2.1