Gitlab CSE Unil

Commit 42406af6 authored by M. Chardon's avatar M. Chardon
Browse files

config staging

parent d5b641f8
......@@ -42,6 +42,7 @@
# Protected Media
# ---------------
<Directory "/var/django/projects/adim-dev.django/adim_project/media/ao_images/">
Options +FollowSymLinks +Indexes
<IfVersion >= 2.4>
Require all denied
</IfVersion>
......@@ -79,10 +80,10 @@
WSGIDaemonProcess adim-dev.django user=www-data group=www-data
WSGIScriptAlias /adim-dev "/var/django/projects/adim-dev.django/adim_project/adim_project/wsgi/staging.py"
<Directory "/var/django/projects/adim-dev.django/adim_project/adim_project">
<Directory "/var/django/projects/adim-dev.django/adim_project/adim_project/wsgi">
WSGIProcessGroup adim-dev.django
WSGIPassAuthorization On
<Files wsgi.py>
#<Files wsgi.py>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
......@@ -90,7 +91,7 @@
Order deny,allow
Allow from all
</IfVersion>
</Files>
#</Files>
</Directory>
RedirectMatch ^/adim-dev$ /adim-dev/
......
......@@ -27,7 +27,7 @@ ATTP = {
'CACHE_TIMEOUT': 20, # 30,
},
'moodle': {
'CHECK_URL': "https://tstmoodle.unil.ch/36/mod/adim/checkAccess.php?uuid={uuid}",
'CHECK_URL': "https://tstmoodle.unil.ch/37/mod/adim/checkAccess.php?uuid={uuid}",
'MODE_ID': 16
},
'toto': {
......
from django.conf.urls import include, url, static
from django.conf.urls import include, url, static, re_path
from django.conf import settings
from django.contrib import admin
......@@ -16,7 +16,7 @@ urlpatterns = [
url(r'^s-412-5/admin/', admin.site.urls),
url(r'^shibauth/', include('shibauth.urls')),
#re_path(r'^login/$', auth_views.LoginView.as_view(), name='django.contrib.auth.views.login'),
#re_path(r'^accounts/login/$', views.LoginView.as_view(), {'template_name': "adim/home.html"}, name='django.contrib.auth.views.login'),
url(r'^accounts/login/$', views.LoginView.as_view(), {'template_name': "adim/home.html"}, name='django.contrib.auth.views.login'),
url(r'^accounts/logout/$', views.LogoutView.as_view(), name='logout'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment