Source

FluidInYourEar / fluidocalypse / urls.py

1
2
3
4
5
6
7
8
from django.conf.urls.defaults import *

urlpatterns = patterns('',
   ( r"^search/(?P<entity>band|genre)/?$", "fluidocalypse.views.show_search" ),
   ( r"^band/(?P<band>.+?)/?$",            "fluidocalypse.views.show_band" ),
   ( r"^genre/(?P<genre>\w+)/?$",          "fluidocalypse.views.show_genre" ),
   ( r"^/?$",                              "fluidocalypse.views.redirect_search" ),
)