Permalink
Browse files

Fix docs creation

  • Loading branch information...
1 parent 4ffd8e0 commit d034ae6c358f8624c7d75b25677b0c9b3d9648b3 @klen committed Oct 3, 2012
Showing with 5 additions and 2 deletions.
  1. +1 −1 Makefile
  2. +2 −1 adrest/resources/map.py
  3. +2 −0 adrest/settings.py
View
@@ -25,7 +25,7 @@ register:
.PHONY: upload
# target: upload - Upload module on PyPi
-upload: doc
+upload: docs
@python setup.py sdist upload || echo 'Upload already'
.PHONY: test
View
@@ -1,6 +1,7 @@
from django.forms.models import ModelChoiceField
from django.utils.encoding import smart_unicode
+from ..settings import MAP_TEMPLATE
from ..utils.auth import AnonimousAuthenticator
from ..utils.emitter import HTMLTemplateEmitter, JSONEmitter
from ..views import ResourceView
@@ -12,7 +13,7 @@ class MapResource(ResourceView):
log = False
emitters = HTMLTemplateEmitter, JSONEmitter
authenticators = AnonimousAuthenticator
- template = 'api/map.html'
+ template = MAP_TEMPLATE
url_regex = r'^map$'
View
@@ -31,3 +31,5 @@
# We do not restrict access for OPTIONS request.
ALLOW_OPTIONS = getattr(settings, 'ADREST_ALLOW_OPTIONS', False)
+
+MAP_TEMPLATE = getattr(settings, 'ADREST_MAP_TEMPLATE', 'api/map.html')

0 comments on commit d034ae6

Please sign in to comment.