File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
4550MIDDLEWARE = [
124129PDF_ROOT = os .path .join (BASE_DIR , 'pyconbalkan/core/static/pdf/' )
125130MEDIA_ROOT = os .path .join (BASE_DIR , 'pyconbalkan/core/' )
126131MEDIA_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+ }
You can’t perform that action at this time.
0 commit comments