From e2954f3c7e473c6b331bf88b80f390ce171e6a94 Mon Sep 17 00:00:00 2001 From: "root (lxc-fetsite-04)" Date: Sat, 17 Oct 2020 22:30:23 +0200 Subject: [PATCH] REST FRAMEWORK Permission --- fet2020/fet2020/settings.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fet2020/fet2020/settings.py b/fet2020/fet2020/settings.py index 546116d7..0ec99b63 100644 --- a/fet2020/fet2020/settings.py +++ b/fet2020/fet2020/settings.py @@ -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'),