2011-08-31 03:46:55 +00:00
|
|
|
from django.conf.urls.defaults import *
|
2011-09-29 01:54:50 +00:00
|
|
|
from django.views.generic.simple import direct_to_template
|
2011-09-29 06:23:50 +00:00
|
|
|
from django.views.generic.base import TemplateView
|
2011-10-11 17:03:40 +00:00
|
|
|
from django.views.generic import ListView, DetailView
|
2011-10-29 22:40:00 +00:00
|
|
|
from django.contrib.auth.decorators import login_required
|
2011-10-11 17:03:40 +00:00
|
|
|
|
|
|
|
from regluit.core.models import Campaign
|
2011-10-25 01:29:01 +00:00
|
|
|
from regluit.frontend.views import CampaignFormView, GoodreadsDisplayView
|
2011-08-31 03:46:55 +00:00
|
|
|
|
|
|
|
urlpatterns = patterns(
|
|
|
|
"regluit.frontend.views",
|
|
|
|
url(r"^$", "home", name="home"),
|
2011-10-20 03:31:16 +00:00
|
|
|
url(r"work/(?P<work_id>.+)/$", "work", name="work"),
|
2011-09-12 18:20:36 +00:00
|
|
|
url(r"^supporter/(?P<supporter_username>.+)/$", "supporter", name="supporter"),
|
2011-09-29 01:36:47 +00:00
|
|
|
url(r"^search/$", "search", name="search"),
|
2011-09-29 06:23:50 +00:00
|
|
|
url(r"^privacy/$", TemplateView.as_view(template_name="privacy.html"),
|
2011-09-29 01:54:50 +00:00
|
|
|
name="privacy"),
|
2011-10-03 16:51:30 +00:00
|
|
|
url(r"^rightsholders/$", TemplateView.as_view(template_name="rhtools.html"),
|
2011-10-12 17:47:48 +00:00
|
|
|
name="rightsholders"),
|
2011-09-29 06:23:50 +00:00
|
|
|
url(r"^wishlist/$", "wishlist", name="wishlist"),
|
2011-10-11 17:03:40 +00:00
|
|
|
url(r"^campaigns/$", ListView.as_view(
|
|
|
|
model=Campaign,template_name="campaign_list.html", context_object_name="campaign_list")),
|
2011-10-25 01:29:01 +00:00
|
|
|
url(r"^campaigns/(?P<pk>\d+)/$",CampaignFormView.as_view(), name="campaign_by_id"),
|
2011-10-29 22:40:00 +00:00
|
|
|
url(r"^goodreads/$", login_required(GoodreadsDisplayView.as_view()), name="goodreads_display"),
|
2011-10-25 01:29:01 +00:00
|
|
|
url(r"^goodreads/auth_cb/$", "goodreads_cb", name="goodreads_cb"),
|
|
|
|
url(r"^goodreads/flush/$","goodreads_flush_session", name="goodreads_flush_session")
|
2011-08-31 03:46:55 +00:00
|
|
|
)
|