REST FRAMEWORK Permission

This commit is contained in:
root (lxc-fetsite-04)
2020-10-17 22:30:23 +02:00
parent cde61a7fbc
commit e2954f3c7e

View File

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