diff options
| author | tom christie tom@tomchristie.com | 2011-02-19 10:26:27 +0000 | 
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-02-19 10:26:27 +0000 | 
| commit | 805aa03ec1871f6a766d9052b348ddce9e9843c3 (patch) | |
| tree | 8ab5b6a7396236aa45bbc61e8404cc77fc75a9c5 /examples/resourceexample/urls.py | |
| parent | b749b950a1b4bede76b7e3900a6385779904902d (diff) | |
| download | django-rest-framework-805aa03ec1871f6a766d9052b348ddce9e9843c3.tar.bz2 | |
Yowzers.  Final big bunch of refactoring for 0.1 release.  Now support Django 1.3's views, admin style api is all polished off, loads of tests, new test project for running the test.  All sorts of goodness.  Getting ready to push this out now.
Diffstat (limited to 'examples/resourceexample/urls.py')
| -rw-r--r-- | examples/resourceexample/urls.py | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/examples/resourceexample/urls.py b/examples/resourceexample/urls.py index 828caef2..cb6435bb 100644 --- a/examples/resourceexample/urls.py +++ b/examples/resourceexample/urls.py @@ -1,6 +1,7 @@  from django.conf.urls.defaults import patterns, url +from resourceexample.views import ExampleResource, AnotherExampleResource -urlpatterns = patterns('resourceexample.views', -    url(r'^$',                 'ExampleResource'), -    url(r'^(?P<num>[0-9]+)/$', 'AnotherExampleResource'), +urlpatterns = patterns('', +    url(r'^$',                 ExampleResource.as_view(), name='example-resource'), +    url(r'^(?P<num>[0-9]+)/$', AnotherExampleResource.as_view(), name='another-example-resource'),  ) | 
