erreur d'ACL

This commit is contained in:
root 2018-03-12 00:26:14 +01:00
parent 9fc03bd511
commit c702bdf519
2 changed files with 1 additions and 6 deletions

View file

@ -66,10 +66,6 @@ class StaticPageView(DetailView):
template_name = "settings/static_page.html" template_name = "settings/static_page.html"
model = StaticPage model = StaticPage
fields = '__all__' 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): def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs) context = super().get_context_data(**kwargs)

View file

@ -1,10 +1,9 @@
import os import os
import sys import sys
VIRTUALENV_LOC = '/var/www/site_tps/env_site'
# Activation de l'environnement virtuel # 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}) exec(compile(open(activate_env, "rb").read(), activate_env, 'exec'), {'__file__':activate_env})
# Ajout du répertoire du site au PATH # Ajout du répertoire du site au PATH