Source

Lightning Talks / lightning / urls.py

Full commit
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, CreateTalkView, TalksView

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'lightning.views.home', name='home'),
    # url(r'^lightning/', include('lightning.foo.urls')),

    url(r'^logout/$', 'common.views.logout_view', name='logout'),
    url(r'^profile/$', CreateUpdateProfileView.as_view(), name='profile'),
    url(r'^talks/create/$', CreateTalkView.as_view(), name='create_talk'),
    url(r'^talks/$', TalksView.as_view(), name='talks'),
    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()