mtg-web/urls.py

25 lines
932 B
Python
Raw Normal View History

2010-07-01 19:37:43 +00:00
from django.conf.urls.defaults import *
from django.views.generic import list_detail
from mtgweb.analyzer.models import Card
2010-07-01 19:37:43 +00:00
# Uncomment the next two lines to enable the admin:
2010-09-16 15:28:31 +00:00
from django.contrib import admin
admin.autodiscover()
2010-07-01 19:37:43 +00:00
urlpatterns = patterns('',
# Example:
# (r'^mtgweb/', include('mtgweb.foo.urls')),
2010-09-21 05:49:22 +00:00
(r'^$', 'mtgweb.analyzer.views.index'),
(r'^cards/$', list_detail.object_list, {'queryset': Card.objects.all(), 'paginate_by': 20}),
2010-08-26 03:43:19 +00:00
(r'^cards/(?P<name>.*?)/$', 'mtgweb.cards.views.display'),
(r'^decks/$', 'mtgweb.decks.views.index'),
(r'^decks/(?P<id>\d+)/$', 'mtgweb.decks.views.detail'),
2010-07-01 19:37:43 +00:00
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
2010-09-16 15:28:31 +00:00
(r'^admin/', include(admin.site.urls)),
2010-07-01 19:37:43 +00:00
)