diff --git a/med/settings.py b/med/settings.py index 865a6b2..3f24651 100644 --- a/med/settings.py +++ b/med/settings.py @@ -16,7 +16,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'CHANGE_ME_IN_LOCAL_SETTINGS!' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True ADMINS = ( # ('Admin', 'webmaster@example.com'), @@ -144,7 +144,7 @@ USE_TZ = True # Don't put anything in this directory yourself; store your static files # in apps' "static/" subdirectories and in STATICFILES_DIRS. # Example: "/var/www/example.com/static/" -STATIC_ROOT = os.path.join(BASE_DIR, 'static_files') +STATIC_ROOT = os.path.join(BASE_DIR, 'static') # URL prefix for static files. # Example: "http://example.com/static/", "http://static.example.com/" @@ -152,6 +152,8 @@ STATIC_URL = '/static/' # Django REST Framework REST_FRAMEWORK = { + 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', + 'PAGE_SIZE': 10, 'DEFAULT_PERMISSION_CLASSES': [ 'med.permissions.DjangoViewModelPermissions', ]