Skip to content

Commit

Permalink
Add Django REST Framework to settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcantelon committed Apr 14, 2016
1 parent a8c54e8 commit dc0f0a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions storage_service/storage_service/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def get_env_variable(var_name):
)

THIRD_PARTY_APPS = (
'rest_framework', # REST framework
'tastypie', # REST framework
)

Expand All @@ -213,6 +214,12 @@ def get_env_variable(var_name):
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
########## END APP CONFIGURATION

REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
),
'PAGE_SIZE': 10
}

########## LOGIN REQUIRED MIDDLEWARE CONFIGURATION

Expand Down

0 comments on commit dc0f0a9

Please sign in to comment.