REST FRAMEWORK Permission
This commit is contained in:
@@ -189,8 +189,7 @@ USE_TZ = True
|
||||
STATIC_URL = '/assets/'
|
||||
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, "static"),
|
||||
os.path.join(BASE_DIR, "static_design1"),
|
||||
os.path.join(BASE_DIR, "static")
|
||||
]
|
||||
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'files/')
|
||||
@@ -236,6 +235,13 @@ EMAIL_HOST = 'buran.htu.tuwien.ac.at'
|
||||
EMAIL_PORT = 587
|
||||
EMAIL_USE_TLS = True
|
||||
|
||||
REST_FRAMEWORK={
|
||||
'DEFAULT_PERMISSION_CLASSES_CLASSES':[
|
||||
'rest_framework.permissions.AllowAny',
|
||||
],
|
||||
'DEFAULT_AUTHENTICATION_CLASSES':()
|
||||
}
|
||||
|
||||
# CRON JOBS
|
||||
CRONJOBS = [
|
||||
('0 16 * * *', 'posts.cronjobs.check_to_send_agenda_mail'),
|
||||
|
||||
Reference in New Issue
Block a user