david / django-modelviews

Backup of an old repository with useful ideas. Initial goal: integrating REST to django admin (class-based views).

Clone this repository (size: 85.7 KB): HTTPS / SSH
$ hg clone http://code.welldev.org/django-modelviews/
commit 33: ac22b9f76f20
parent 32: e608ece7917f
branch: default
Updates urls.py to allow regexs for xml and yaml responders.
Will Larson
21 months ago

Changed (Δ9 bytes):

raw changeset »

tests/urls.py (1 lines added, 1 lines removed)

Up to file-list tests/urls.py:

@@ -11,6 +11,6 @@ rw_articles = ModelView(Article.objects.
11
11
                        methods=('GET', 'POST', 'PUT', 'DELETE'))
12
12
                     
13
13
urlpatterns = patterns('',
14
    ('^articles/(?P<slug>[-\w]+)?/?(?P<format>(html|json))?/?$', articles),
14
    ('^articles/(?P<slug>[-\w]+)?/?(?P<format>(html|json|xml|yaml))?/?$', articles),
15
15
    ('^rw-articles/(?P<slug>[-\w]+)?/?$', rw_articles),
16
16
)