Source

Lightning Talks / lightning / urls.py

from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

from django.contrib import admin
admin.autodiscover()

from common.views import CreateUpdateProfileView

urlpatterns = patterns('',
    url(r'^logout/$', 'common.views.logout_view', name='logout'),
    url(r'^profile/$', CreateUpdateProfileView.as_view(), name='profile'),
    url(r'^talks/', include('talks.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'', include('social_auth.urls')),
    url(r'^$', 'django.views.generic.simple.direct_to_template', {
        'template': 'index.html'}, name='home'),
)

urlpatterns += staticfiles_urlpatterns()