Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating viewer to pass in versions to mako files

  • Loading branch information...
commit 0faffdcba95fb4a62176575296dd06415a14f3de 1 parent 9ecdd93
@anutron authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 frontend_dev/views.py
View
4 frontend_dev/views.py
@@ -100,7 +100,9 @@ def demo(request, version):
request.path = request.META.get('PATH_INFO')
if request.META.get('QUERY_STRING') and len(request.META.get('QUERY_STRING')) > 0:
request.path += "?" + request.META.get('QUERY_STRING')
- def get_asset_url(project, path):
+ def get_asset_url(project, path, version=None):
+ if version is None:
+ version = settings.DEFAULT_VERSION
return "/" + version + "/asset/" + project + "/" + path
source = Template(test_source).render(
post_vars = post_vars,
Please sign in to comment.
Something went wrong with that request. Please try again.