Skip to content

Instantly share code, notes, and snippets.

@bigoper
Last active June 22, 2018 19:02
Show Gist options
  • Save bigoper/1ee55730b3ee36642e440a027495b8cf to your computer and use it in GitHub Desktop.
Save bigoper/1ee55730b3ee36642e440a027495b8cf to your computer and use it in GitHub Desktop.
settings.py
SERVER_NAME = None
DEBUG = True
ENV = 'development'
URL_PREFIX = 'api'
API_VERSION = 'v1'
SORTING = True
# PAGINATION_DEFAULT = 25
# PAGINATION_LIMIT = 50
CACHE_CONTROL = 'max-age=15,must-revalidate'
CACHE_EXPIRES = 15
RATE_LIMIT_GET = (60, 60 * 1)
RENDERERS = ['eve.render.JSONRenderer']
# CORS support
X_DOMAINS = '*'
# RESOURCE_METHODS = ['GET', 'POST', 'DELETE']
RESOURCE_METHODS = ['GET']
# ITEM_METHODS = ['GET', 'PATCH', 'PUT', 'DELETE']
ITEM_METHODS = ['GET']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment