Skip to content

Instantly share code, notes, and snippets.

@rdegges
Created February 18, 2010 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rdegges/307868 to your computer and use it in GitHub Desktop.
Save rdegges/307868 to your computer and use it in GitHub Desktop.
from django_consultants.views import *
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^$', main_page),
# Login / logout.
(r'^login/$', 'django.contrib.auth.views.login'),
(r'^logout/$', logout_page),
# Web portal.
(r'^portal/', include('portal.urls')),
# Serve static content.
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': 'static'}),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment