Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 69d6d7c452
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.627 kb
from django.conf.urls.defaults import * # pylint: disable-msg=W0401,W0614
from django.shortcuts import redirect
from reviews import views
def redirect_to(request, **kwargs):
return redirect(**kwargs)
urlpatterns = patterns("",
url("^$", redirect_to, {"to": "product-reviews", "permanent": True}),
url("review/products/(?:(?P<product_id>\d+)/)?$", views.product_reviews,
name="product-reviews"),
url("review/(?:(?P<review_id>\d+)/)?$", views.show_review,
name="show-review"),
url("review/create/(?:(?P<product_id>\d+)/)?$", views.add_review,
name="add-review"),
)
Jump to Line
Something went wrong with that request. Please try again.