This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try: | |
| import simplejson as json | |
| except ImportError: | |
| import json | |
| from django.views import generic | |
| from django.http import HttpResponse | |
| class JsonView(generic.View): | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from boto.utils import parse_ts | |
| from django.core.files.storage import get_storage_class | |
| from storages.backends.s3boto import S3BotoStorage | |
| """ | |
| make sure you have this setting | |
| AWS_PRELOAD_METADATA = True | |
| and that you have python-dateutils==1.5 installed | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2011 10gen | |
| # | |
| # Modified by Antonin Amand <[email protected]> to work with gevent. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
NewerOlder