2015-03-14 22:38:12 +01:00
|
|
|
from django.conf.urls import patterns, include, url
|
|
|
|
from django.conf.urls.static import static
|
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
from idre import settings
|
|
|
|
import label.views
|
|
|
|
|
|
|
|
|
|
|
|
admin.autodiscover()
|
|
|
|
|
|
|
|
urlpatterns = patterns("",
|
|
|
|
url(r"^$", label.views.home, name = "home"),
|
|
|
|
url(r"^artists/$", "label.views.artists", name = "artists"),
|
2015-05-02 14:28:07 +02:00
|
|
|
url(r"^artists/(?P<slug>\S+)$", "label.views.artist", name = "artist"),
|
2015-03-14 22:38:12 +01:00
|
|
|
url(r"^releases/$", "label.views.releases", name = "releases"),
|
2015-05-02 14:28:07 +02:00
|
|
|
url(r"^releases/(?P<tag>\S+)$", "label.views.release", name = "release"),
|
2015-03-14 22:38:12 +01:00
|
|
|
url(r"^admin/", include(admin.site.urls)),
|
|
|
|
)
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
urlpatterns += static(
|
|
|
|
settings.MEDIA_URL,
|
|
|
|
document_root = settings.MEDIA_ROOT
|
|
|
|
)
|