<reponame>fbreversg/django_playing<gh_stars>0
from django.conf.urls import patterns, url, include
from django.contrib import admin
from views import hello, current_datetime, hours_ahead, current_datetime_render, display_meta, requires_login
from books import views
from contact import views as cviews

admin.autodiscover()

urlpatterns = patterns('',
                       (r'^admin/', include(admin.site.urls)),
                       # requiring login
                       url(r'^hello/$', requires_login(hello)),
                       url(r'^time/plus/(\d{1,2})/$', hours_ahead),
                       url(r'^time/$', current_datetime),
                       url(r'^timeRender/$', current_datetime_render),
                       url(r'^$', hello),
                       url(r'^meta/$', display_meta),
                       (r'^search/$', views.search),
                       url(r'^contact/$', cviews.contact),
                       url(r'^contact/thanks/$', cviews.thanks),
                       (r'^somepage/$', views.some_page),
                       (r'^somepage/$', views.method_splitter, {'GET': views.some_page_get, 'POST': views.some_page_post}),


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

                       # Uncomment the admin/doc line below to enable admin documentation:
                       # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

                       # Uncomment the next line to enable the admin:
                       # url(r'^admin/', include(admin.site.urls)),
                       )

from django.conf.urls import patterns, url, include
from django.contrib import admin
from views import hello, current_datetime, hours_ahead, current_datetime_render, display_meta, requires_login
from books import views
from contact import views as cviews

admin.autodiscover()

urlpatterns = patterns('',
                       (r'^admin/', include(admin.site.urls)),
                       # requiring login
                       url(r'^hello/$', requires_login(hello)),
                       url(r'^time/plus/(\d{1,2})/$', hours_ahead),
                       url(r'^time/$', current_datetime),
                       url(r'^timeRender/$', current_datetime_render),
                       url(r'^$', hello),
                       url(r'^meta/$', display_meta),
                       (r'^search/$', views.search),
                       url(r'^contact/$', cviews.contact),
                       url(r'^contact/thanks/$', cviews.thanks),
                       (r'^somepage/$', views.some_page),
                       (r'^somepage/$', views.method_splitter, {'GET': views.some_page_get, 'POST': views.some_page_post}),


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

                       # Uncomment the admin/doc line below to enable admin documentation:
                       # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

                       # Uncomment the next line to enable the admin:
                       # url(r'^admin/', include(admin.site.urls)),
                       )
# requiring login # Examples: # url(r'^$', 'book.views.home', name='home'), # url(r'^book/', include('book.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # url(r'^admin/', include(admin.site.urls)),