summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-10-17 01:34:04 +0200
committerGravatar Tom Willemsen2011-10-17 01:34:04 +0200
commit4b29603d79cc1f79c66786684f27ec9abfbaa825 (patch)
tree655c321b7ee3b0cc919ab3b7bf937b50fc13c69c /urls.py
downloaddotfiles-4b29603d79cc1f79c66786684f27ec9abfbaa825.tar.gz
dotfiles-4b29603d79cc1f79c66786684f27ec9abfbaa825.zip
Initial commit
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/urls.py b/urls.py
new file mode 100644
index 0000000..1c46129
--- /dev/null
+++ b/urls.py
@@ -0,0 +1,19 @@
+from django.conf.urls.defaults import *
+from settings import DEPLOY_PATH, DEBUG
+
+# Uncomment the next two lines to enable the admin:
+from django.contrib import admin
+admin.autodiscover()
+
+urlpatterns = patterns('',
+ (r'^blog/', include("blog.urls")),
+ (r'^projects/', include("projects.urls")),
+ (r'^links/', include("links.urls")),
+ (r'^admin/', include(admin.site.urls)),
+ (r'^', include("main.urls")),
+)
+
+if DEBUG:
+ urlpatterns += patterns('',
+ (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '%s/static' % DEPLOY_PATH})
+)