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 /djangorestframework/utils.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 'djangorestframework/utils.py')
| -rw-r--r-- | djangorestframework/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/djangorestframework/utils.py b/djangorestframework/utils.py index bc797d60..266d1ca6 100644 --- a/djangorestframework/utils.py +++ b/djangorestframework/utils.py @@ -3,12 +3,18 @@ import xml.etree.ElementTree as ET from django.utils.encoding import smart_unicode from django.utils.xmlutils import SimplerXMLGenerator from django.core.urlresolvers import resolve +from django.conf import settings try: import cStringIO as StringIO except ImportError: import StringIO +#def admin_media_prefix(request): +# """Adds the ADMIN_MEDIA_PREFIX to the request context.""" +# return {'ADMIN_MEDIA_PREFIX': settings.ADMIN_MEDIA_PREFIX} + + def as_tuple(obj): """Given obj return a tuple""" if obj is None: |
