associate page static files provided by local_settings
This commit is contained in:
parent
4745ded659
commit
880a98346c
5
README
5
README
|
@ -81,6 +81,11 @@ Example of local_settings.py
|
|||
SITE_SCRIPTS = [
|
||||
'js/example.com.js',
|
||||
]
|
||||
|
||||
SITE_ASSOCIATE_STATIC = {
|
||||
'css': 'css/example_associate.css',
|
||||
'js': 'js/example_associate.js',
|
||||
}
|
||||
|
||||
# Mellon Settings
|
||||
MELLON_IDENTITY_PROVIDERS = [
|
||||
|
|
|
@ -2,4 +2,4 @@ mandayejs (0.1-1) unstable; urgency=low
|
|||
|
||||
* Initial release
|
||||
|
||||
-- Jérôme Schneider <jschneider@entrouvert.com> Tue, 17 Feb 2015 15:50:44 +0100
|
||||
-- Josue Kouka <jkouka@entrouvert.org> Tue, 17 Feb 2015 15:50:44 +0100
|
||||
|
|
|
@ -11,7 +11,7 @@ Architecture: all
|
|||
Depends: ${misc:Depends}, ${python:Depends},
|
||||
python-django (>= 1.7),
|
||||
python-gadjo,
|
||||
python-jsonfield,
|
||||
python-django-jsonfield,
|
||||
python-ldap
|
||||
Recommends: python-django-mellon
|
||||
Description: Authentication Reverse Proxy
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
# Should-stop: postgresql
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Portal Management System
|
||||
# Description: Portal Management System
|
||||
# Short-Description: Authentication Reverse Proxy
|
||||
# Description: Authentication Reverse Proxy
|
||||
### END INIT INFO
|
||||
|
||||
# Author: Entr'ouvert <info@entrouvert.com>
|
||||
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
DESC="Portal Management System"
|
||||
DESC="Authentication Reverse Proxy"
|
||||
NAME=mandayejs
|
||||
DAEMON=/usr/bin/gunicorn
|
||||
RUN_DIR=/run/$NAME
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="{% xstatic 'jquery' 'jquery.min.js' %}"></script>
|
||||
<script src="{% static 'js/associate.js' %}" type="text/javascript"></script>
|
||||
<link rel="stylesheety" href="{% static associate_static.css %}"/>
|
||||
<script src="{% static associate_static.js %}" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main-div">
|
||||
|
|
|
@ -97,7 +97,10 @@ def associate(request, *args, **kwargs):
|
|||
return render(request, 'mandaye/associate.html', {
|
||||
'form': form,
|
||||
'submit': _('submit'),
|
||||
'associate': _('associate your account')
|
||||
'associate': _('associate your account'),
|
||||
'associate_static': getattr(settings,
|
||||
'SITE_ASSOCIATE_STATIC',
|
||||
{'css':'', 'js':''})
|
||||
})
|
||||
try:
|
||||
credentials.save()
|
||||
|
|
Reference in New Issue