Skip to content

Commit a41ce53

Browse files
author
Kátia Nakamura
committed
settings: add config and installed apps
1 parent 9ed627a commit a41ce53

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

pyconbalkan/settings.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@
3939
'django.contrib.sessions',
4040
'django.contrib.messages',
4141
'django.contrib.staticfiles',
42+
# apps
4243
'pyconbalkan.core',
44+
'pyconbalkan.conference',
45+
# others
46+
'rest_framework',
47+
'django_countries',
4348
]
4449

4550
MIDDLEWARE = [
@@ -124,3 +129,14 @@
124129
PDF_ROOT = os.path.join(BASE_DIR, 'pyconbalkan/core/static/pdf/')
125130
MEDIA_ROOT = os.path.join(BASE_DIR, 'pyconbalkan/core/')
126131
MEDIA_URL = '/img/'
132+
133+
134+
REST_FRAMEWORK = {
135+
# Use Django's standard `django.contrib.auth` permissions,
136+
# or allow read-only access for unauthenticated users.
137+
'DEFAULT_PERMISSION_CLASSES': [
138+
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
139+
],
140+
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
141+
'PAGE_SIZE': 10
142+
}

0 commit comments

Comments
 (0)