Skip to content

Instantly share code, notes, and snippets.

@camilosanchez
Created January 7, 2014 10:09
Show Gist options
  • Save camilosanchez/8297305 to your computer and use it in GitHub Desktop.
Save camilosanchez/8297305 to your computer and use it in GitHub Desktop.
urls.py
from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from offers.views import *
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'thesocialbrand.views.home', name='home'),
# url(r'^thesocialbrand/', include('thesocialbrand.foo.urls')),
url(r'^dashboard/', OfferListView.as_view(), name='dashboard'),
url(r'^dashboard/edit/(?P<pk>\d+)/$', OfferUpdateView.as_view(), name="edit"),
# url(r'^dashboard/(?P<pk>\d+)/$', dashboard_offer_detail),
# url(r'^app/', app_public, name='app'),
url(r'^app/(?P<pk>\d+)/$', app_public),
url(r'^login/', login_usr, name='login'),
url(r'^logout/', logout_usr, name='logout'),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment