From c702bdf51942d8ad528b1440122541e4a1a74ea5 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 12 Mar 2018 00:26:14 +0100 Subject: [PATCH] erreur d'ACL --- settings/views.py | 4 ---- site_tps/wsgi.py | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/settings/views.py b/settings/views.py index 7ce5dab..4524fbb 100644 --- a/settings/views.py +++ b/settings/views.py @@ -66,10 +66,6 @@ class StaticPageView(DetailView): template_name = "settings/static_page.html" model = StaticPage fields = '__all__' - @classmethod - def as_view(self, *args, **kwargs): - view = super().as_view(*args, **kwargs) - return staff_member_required(view) def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) diff --git a/site_tps/wsgi.py b/site_tps/wsgi.py index 90123c0..dc9c2ca 100644 --- a/site_tps/wsgi.py +++ b/site_tps/wsgi.py @@ -1,10 +1,9 @@ import os import sys -VIRTUALENV_LOC = '/var/www/site_tps/env_site' # Activation de l'environnement virtuel -activate_env=os.path.join(VIRTUALENV_LOC, 'bin/activate_this.py') +activate_env=os.path.join('/var/www/site_tps/env_site', 'bin/activate_this.py') exec(compile(open(activate_env, "rb").read(), activate_env, 'exec'), {'__file__':activate_env}) # Ajout du répertoire du site au PATH