Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (32 sloc) 1.508 kb
from django.conf.urls.defaults import *
from django.conf import settings
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
#from twitterauth.views import twitter_signin, twitter_return
#from feed.views import twitter_feed
from feed.views import friendfeed_vote, friendfeed_results, friendfeed_do_vote
from views import start
urlpatterns = patterns('',
# Example:
# (r'^doubleblind/', include('doubleblind.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/(.*)', admin.site.root),
url(r'^$', start, name='start'),
url(r'^start/$', start, name='start'),
url(r'^login/$','doubleblind.ffauth.views.login',name='login'),
url(r'^logout/$','doubleblind.ffauth.views.logout',name='logout'),
# url('^login/$', twitter_signin, name='login'),
# url('^return/$', twitter_return, name='return'),
# url('^feed/([^/]+)$', twitter_feed, name='feed'),
url('^vote/$', friendfeed_vote, name='vote'),
url('^vote/(?P<rating>[^\/]+)$', friendfeed_do_vote, name='vote'),
url('^results/', friendfeed_results, name='results'),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)
Jump to Line
Something went wrong with that request. Please try again.