Browse Source

Made Misago's URL config easier to modify as part of #138

Ralfp 12 years ago
parent
commit
30091c5a98
2 changed files with 12 additions and 0 deletions
  1. 3 0
      deployment/settings.py
  2. 9 0
      deployment/urls.py

+ 3 - 0
deployment/settings.py

@@ -143,6 +143,9 @@ MOBILE_SUBDOMAIN = ''
 # Templates used by mobile version
 MOBILE_TEMPLATES = ''
 
+# Name of root urls configuration
+ROOT_URLCONF = 'deployment.urls'
+
 # Python dotted path to the WSGI application used by Django's runserver.
 WSGI_APPLICATION = 'deployment.wsgi.application'
 

+ 9 - 0
deployment/urls.py

@@ -0,0 +1,9 @@
+from misago.urls import *
+
+# Your deployment urls configuration
+# This configuration already contains Misago urls configuration
+# If you want to add 3rd party apps urls to your Misago deployment
+# Uncomment bottom lines and use them to register custom url's
+# urlpatterns += patterns('',
+#    (r'^', include('somewhere.urls')),
+#)