settings changes

This commit is contained in:
Asif Saif Uddin 2018-11-02 15:18:28 +06:00
parent 93a7a213df
commit ccdbfdd013

View file

@ -15,6 +15,8 @@ import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.environ['DJANGO_SETTINGS_MODULE'] = 'example.settings'
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
@ -145,6 +147,11 @@ MEDIA_URL = "/media/"
REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 10
'PAGE_SIZE': 10,
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
]
}
ADMIN2_THEME_DIRECTORY = "djadmin2theme_bootstrap3"
ADMIN2_THEME_DIRECTORY = "djadmin2theme_bootstrap3"