Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Note Kfet 2015 django
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Maxime Bombar
Note Kfet 2015 django
Commits
8d3d5f76
Commit
8d3d5f76
authored
Aug 20, 2017
by
Charlie Jacomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stertchtisation de la note
parent
87710f05
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
179 additions
and
180 deletions
+179
-180
manage.py
manage.py
+15
-9
note/settings.py
note/settings.py
+17
-29
note/templates/handler_base.html
note/templates/handler_base.html
+5
-4
note/templates/note/base.html
note/templates/note/base.html
+6
-6
note/templates/note/boutons.html
note/templates/note/boutons.html
+3
-2
note/templates/note/compte.html
note/templates/note/compte.html
+1
-0
note/templates/note/comptes.html
note/templates/note/comptes.html
+3
-3
note/templates/note/consos.html
note/templates/note/consos.html
+8
-7
note/templates/note/dons.html
note/templates/note/dons.html
+5
-4
note/templates/note/invitation.html
note/templates/note/invitation.html
+3
-2
note/templates/note/readhesions.html
note/templates/note/readhesions.html
+3
-2
note/templates/note/un_compte_historique.html
note/templates/note/un_compte_historique.html
+3
-2
note/urls.py
note/urls.py
+68
-67
note/wsgi.py
note/wsgi.py
+27
-0
urls.py
urls.py
+6
-10
wsgi.py
wsgi.py
+6
-33
No files found.
manage.py
View file @
8d3d5f76
...
@@ -2,19 +2,25 @@
...
@@ -2,19 +2,25 @@
# -*- encoding: utf-8 -*-
# -*- encoding: utf-8 -*-
import
os
import
os
import
sys
import
sys
# À partir de Django 1.7, on doit faire le setup si on veut pouvoir
# À partir de Django 1.7, on doit faire le setup si on veut pouvoir
# importer les modules avant d'avoir chargé toutes les apps
# importer les modules avant d'avoir chargé toutes les apps
# Et on a besoin de connaître le nom du module settings pour cela
# Et on a besoin de connaître le nom du module settings pour cela
import
django
os
.
environ
[
"DJANGO_SETTINGS_MODULE"
]
=
"note.settings"
django
.
setup
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"note.settings"
)
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"note.settings"
)
try
:
from
django.core.management
import
execute_from_command_line
from
django.core.management
import
execute_from_command_line
except
ImportError
:
# The above import may fail for some other reason. Ensure that the
# issue is really that Django is missing to avoid masking other
# exceptions on Python 2.
try
:
import
django
except
ImportError
:
raise
ImportError
(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
)
raise
execute_from_command_line
(
sys
.
argv
)
execute_from_command_line
(
sys
.
argv
)
note/settings.py
View file @
8d3d5f76
...
@@ -24,8 +24,6 @@ else:
...
@@ -24,8 +24,6 @@ else:
DEFAULT_CHARSET
=
"utf-8"
DEFAULT_CHARSET
=
"utf-8"
#: Mode de debug
#: Mode de debug
DEBUG
=
not
PROD
DEBUG
=
not
PROD
#: Debug aussi quand on plante dans le rendering d'un template
TEMPLATE_DEBUG
=
DEBUG
#: Adresse mail à qui envoyer des problèmes durant l'exécution
#: Adresse mail à qui envoyer des problèmes durant l'exécution
...
@@ -129,11 +127,11 @@ MEDIA_URL = os.path.join(NOTE_ROOT_URL, 'media/')
...
@@ -129,11 +127,11 @@ MEDIA_URL = os.path.join(NOTE_ROOT_URL, 'media/')
#: URL prefix for static files.
#: URL prefix for static files.
#: Example: "http://media.lawrence.com/static/"
#: Example: "http://media.lawrence.com/static/"
STATIC_URL
=
'/static/'
STATIC_URL
=
r
'/static/'
#: Additional locations of static files
#: Additional locations of static files
STATICFILES_DIRS
=
(
STATICFILES_DIRS
=
(
ROOT_PATH
+
"static/"
,
os
.
path
.
join
(
PROJECT_PATH
,
'../static/'
)
,
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
# Don't forget to use absolute paths, not relative paths.
...
@@ -150,24 +148,20 @@ STATICFILES_FINDERS = (
...
@@ -150,24 +148,20 @@ STATICFILES_FINDERS = (
from
secrets
import
SECRET_KEY
from
secrets
import
SECRET_KEY
#: List of callables that know how to import templates from various sources.
#: List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS
=
(
'django.template.loaders.filesystem.Loader'
,
'django.template.loaders.app_directories.Loader'
,
# 'django.template.loaders.eggs.Loader',
)
#: A tuple of callables that are used to populate the context in RequestContext.
TEMPLATES
=
[{
#: These callables take a request object as their argument
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
#: and return a dictionary of items to be merged into the context.
'DIRS'
:
[
'templates'
],
TEMPLATE_CONTEXT_PROCESSORS
=
(
'APP_DIRS'
:
True
,
"django.contrib.auth.context_processors.auth"
,
'OPTIONS'
:
{
"django.core.context_processors.debug"
,
'context_processors'
:
[
"django.core.context_processors.i18n"
,
'django.template.context_processors.debug'
,
"django.core.context_processors.media"
,
'django.template.context_processors.request'
,
"django.core.context_processors.static"
,
'django.contrib.auth.context_processors.auth'
,
"django.core.context_processors.request"
,
'django.contrib.messages.context_processors.messages'
,
"django.contrib.messages.context_processors.messages"
],
)
},
}]
#: A tuple of middleware classes to use. See `Middleware <https://docs.djangoproject.com/en/dev/topics/http/middleware/>`_.
#: A tuple of middleware classes to use. See `Middleware <https://docs.djangoproject.com/en/dev/topics/http/middleware/>`_.
MIDDLEWARE_CLASSES
=
(
MIDDLEWARE_CLASSES
=
(
...
@@ -190,15 +184,9 @@ MIDDLEWARE_CLASSES = (
...
@@ -190,15 +184,9 @@ MIDDLEWARE_CLASSES = (
ROOT_URLCONF
=
'urls'
ROOT_URLCONF
=
'urls'
#: Python dotted path to the WSGI application used by Django's runserver.
#: Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION
=
'..wsgi.application'
WSGI_APPLICATION
=
'note.wsgi.application'
#: List of locations of the template source files searched by django.template.loaders.filesystem.Loader, in search order.
TEMPLATE_DIRS
=
(
ROOT_PATH
+
"note/templates/"
,
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
#: A tuple of strings designating all applications that are enabled in this Django installation.
#: A tuple of strings designating all applications that are enabled in this Django installation.
#: Each string should be a full Python path to a Python package that contains a Django application,
#: Each string should be a full Python path to a Python package that contains a Django application,
...
...
note/templates/handler_base.html
View file @
8d3d5f76
{% load note_templatetags %}
{% load note_templatetags %}
{% load i18n %}
{% load i18n %}
{% load static %}
<!DOCTYPE html>
<!DOCTYPE html>
{% get_current_language as LANGUAGE_CODE %}
{% get_current_language as LANGUAGE_CODE %}
...
@@ -10,8 +11,8 @@
...
@@ -10,8 +11,8 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
{% block stylesheets %}
{% block stylesheets %}
<link
rel=
"stylesheet"
href=
"{
{ STATIC_URL }}css/bootstrap.css
"
/>
<link
rel=
"stylesheet"
href=
"{
% static 'css/bootstrap.css' %}
"
/>
<link
rel=
"stylesheet"
href=
"{
{ STATIC_URL }}css/custom/note-bootstrap.css
"
/>
<link
rel=
"stylesheet"
href=
"{
% static 'css/custom/note-bootstrap.css' %}
"
/>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
...
@@ -97,8 +98,8 @@
...
@@ -97,8 +98,8 @@
<!-- Le javascript
<!-- Le javascript
========================================================== -->
========================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- Placed at the end of the document so the pages load faster -->
<script
src=
"{
{ STATIC_URL }}js/jquery.js
"
></script>
<script
src=
"{
% static 'js/jquery.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/bootstrap.js
"
></script>
<script
src=
"{
% static 'js/bootstrap.js' %}
"
></script>
<script>
<script>
/* On peut avoir besoin de ces variables n'importe où dans le Javascript */
/* On peut avoir besoin de ces variables n'importe où dans le Javascript */
var
NOTE_ROOT_URL
=
{{
NOTE_ROOT_URL
}};
var
NOTE_ROOT_URL
=
{{
NOTE_ROOT_URL
}};
...
...
note/templates/note/base.html
View file @
8d3d5f76
{% load note_templatetags %}
{% load note_templatetags %}
{% load i18n %}
{% load i18n %}
{% load static %}
<!DOCTYPE html>
<!DOCTYPE html>
{% get_current_language as LANGUAGE_CODE %}
{% get_current_language as LANGUAGE_CODE %}
<html
lang=
"{{ LANGUAGE_CODE }}"
>
<html
lang=
"{{ LANGUAGE_CODE }}"
>
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
{% block stylesheets %}
{% block stylesheets %}
<link
rel=
"stylesheet"
href=
"{
{ STATIC_URL }}css/bootstrap.css
"
/>
<link
rel=
"stylesheet"
href=
"{
% static 'css/bootstrap.css' %}
"
/>
<link
rel=
"stylesheet"
href=
"{
{ STATIC_URL }}css/custom/note-bootstrap.css
"
/>
<link
rel=
"stylesheet"
href=
"{
% static 'css/custom/note-bootstrap.css' %}
"
/>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
...
@@ -102,12 +102,12 @@
...
@@ -102,12 +102,12 @@
========================================================== -->
========================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- Placed at the end of the document so the pages load faster -->
<script
type=
"text/javascript"
src=
"{% url 'javascript_catalog' %}"
></script>
<script
type=
"text/javascript"
src=
"{% url 'javascript_catalog' %}"
></script>
<script
src=
"{
{ STATIC_URL }}js/jquery.js
"
></script>
<script
src=
"{
% static 'js/jquery.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/bootstrap.js
"
></script>
<script
src=
"{
% static 'js/bootstrap.js' %}
"
></script>
<script>
<script>
/* On peut avoir besoin de ces variables n'importe où dans le Javascript */
/* On peut avoir besoin de ces variables n'importe où dans le Javascript */
var
NOTE_ROOT_URL
=
{{
NOTE_ROOT_URL
}};
var
NOTE_ROOT_URL
=
{{
NOTE_ROOT_URL
}};
var
STATIC_URL
=
{{
STATIC_URL
}}
;
var
STATIC_URL
=
/static/
;
/* Responsiveness des onglets de la note*/
/* Responsiveness des onglets de la note*/
...
...
note/templates/note/boutons.html
View file @
8d3d5f76
{% extends "note/base.html" %}
{% extends "note/base.html" %}
{% load note_templatetags %}
{% load note_templatetags %}
{% load i18n %}
{% load i18n %}
{% load static %}
{% block title %}{% trans "Gestion des boutons" %}{% endblock %}
{% block title %}{% trans "Gestion des boutons" %}{% endblock %}
{% block additional_javascript %}
{% block additional_javascript %}
<script
src=
"{
{ STATIC_URL }}js/custom/getXMLHttpRequest.js
"
></script>
<script
src=
"{
% static 'js/custom/getXMLHttpRequest.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/boutons_dynamiques.js
"
></script>
<script
src=
"{
% static 'js/custom/boutons_dynamiques.js' %}
"
></script>
{% endblock %}
{% endblock %}
{% block applets %}
{% block applets %}
<li
role=
"presentation"
,
class=
"active"
><a
href=
"{{ NOTE_ROOT_URL }}boutons/"
>
{% trans "Boutons" %}
</a></li>
<li
role=
"presentation"
,
class=
"active"
><a
href=
"{{ NOTE_ROOT_URL }}boutons/"
>
{% trans "Boutons" %}
</a></li>
...
...
note/templates/note/compte.html
View file @
8d3d5f76
{% extends "note/base.html" %}
{% extends "note/base.html" %}
{% load i18n %}
{% load i18n %}
{% load static %}
{# Pour ne pas utiliser la taille par défaut de la page #}
{# Pour ne pas utiliser la taille par défaut de la page #}
...
...
note/templates/note/comptes.html
View file @
8d3d5f76
{% extends "note/base.html" %}
{% extends "note/base.html" %}
{% load i18n %}
{% load i18n %}
{% load static %}
{% block title %}{% trans "Comptes" %}{% endblock %}
{% block title %}{% trans "Comptes" %}{% endblock %}
{% block additional_javascript %}
{% block additional_javascript %}
<script
src=
"{
{ STATIC_URL }}js/custom/getXMLHttpRequest.js
"
></script>
<script
src=
"{
% static 'js/custom/getXMLHttpRequest.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/liste_dynamique_search.js
"
></script>
<script
src=
"{
% static 'js/custom/liste_dynamique_search.js' %}
"
></script>
{% endblock %}
{% endblock %}
{% block applets %}
{% block applets %}
<li
role=
"presentation"
class=
"active"
><a
href=
"{{ NOTE_ROOT_URL }}comptes/"
>
{% trans "Recherche" %}
</a></li>
<li
role=
"presentation"
class=
"active"
><a
href=
"{{ NOTE_ROOT_URL }}comptes/"
>
{% trans "Recherche" %}
</a></li>
...
...
note/templates/note/consos.html
View file @
8d3d5f76
{% extends "note/base.html" %}
{% extends "note/base.html" %}
{% load note_templatetags %}
{% load note_templatetags %}
{% load i18n %}
{% load i18n %}
{% load static %}
{% block title %}{% trans "Consos" %}{% endblock %}
{% block title %}{% trans "Consos" %}{% endblock %}
{% block additional_javascript %}
{% block additional_javascript %}
<script
src=
"{
{ STATIC_URL }}js/custom/getXMLHttpRequest.js
"
></script>
<script
src=
"{
% static 'js/custom/getXMLHttpRequest.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/liste_dynamique_quick.js
"
></script>
<script
src=
"{
% static 'js/custom/liste_dynamique_quick.js' %}
"
></script>
<!--Attention, intervertir les deux lignes qui suivent provoque l'apocalypse-->
<!--Attention, intervertir les deux lignes qui suivent provoque l'apocalypse-->
<script
src=
"{
{ STATIC_URL }}js/custom/consos_double_stack.js
"
></script>
<script
src=
"{
% static 'js/custom/consos_double_stack.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/consos_single_stack.js
"
></script>
<script
src=
"{
% static 'js/custom/consos_single_stack.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/consos_base.js
"
></script>
<script
src=
"{
% static 'js/custom/consos_base.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/tabs.js
"
></script>
<script
src=
"{
% static 'js/custom/tabs.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/toggle_transactions.js
"
></script>
<script
src=
"{
% static 'js/custom/toggle_transactions.js' %}
"
></script>
{% endblock %}
{% endblock %}
{% block applets %}
{% block applets %}
...
...
note/templates/note/dons.html
View file @
8d3d5f76
{% extends "note/base.html" %}
{% extends "note/base.html" %}
{% load note_templatetags %}
{% load note_templatetags %}
{% load i18n %}
{% load i18n %}
{% load static %}
{% block title %}{% trans "Virements" %}{% endblock %}
{% block title %}{% trans "Virements" %}{% endblock %}
{% block additional_javascript %}
{% block additional_javascript %}
<script
src=
"{
{ STATIC_URL }}js/custom/getXMLHttpRequest.js
"
></script>
<script
src=
"{
% static 'js/custom/getXMLHttpRequest.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/liste_dynamique_quick.js
"
></script>
<script
src=
"{
% static 'js/custom/liste_dynamique_quick.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/consos_single_stack.js
"
></script>
<script
src=
"{
% static 'js/custom/consos_single_stack.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/consos_base.js
"
></script>
<script
src=
"{
% static 'js/custom/consos_base.js' %}
"
></script>
<script>
<script>
/* Sur la page de dons, il y a certaines données auxquelles on n'a pas accès (le solde, la photo) */
/* Sur la page de dons, il y a certaines données auxquelles on n'a pas accès (le solde, la photo) */
page_dons
=
true
;
page_dons
=
true
;
...
...
note/templates/note/invitation.html
View file @
8d3d5f76
{% extends "note/base.html" %}
{% extends "note/base.html" %}
{% load note_templatetags %}
{% load note_templatetags %}
{% load i18n %}
{% load i18n %}
{% load static %}
{% block title %}{% blocktrans with id=activite.id %}Invitation à l'activité n°{{ id }}{% endblocktrans %}{% endblock %}
{% block title %}{% blocktrans with id=activite.id %}Invitation à l'activité n°{{ id }}{% endblocktrans %}{% endblock %}
{% if isadmin %}
{% if isadmin %}
{% block additional_javascript %}
{% block additional_javascript %}
<script
src=
"{
{ STATIC_URL }}js/custom/getXMLHttpRequest.js
"
></script>
<script
src=
"{
% static 'js/custom/getXMLHttpRequest.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/liste_dynamique_quick.js
"
></script>
<script
src=
"{
% static 'js/custom/liste_dynamique_quick.js' %}
"
></script>
<script>
<script>
/* fonction appelée à la fin du timer (déclenché sur un onkeyup sur le champ de recherche) */
/* fonction appelée à la fin du timer (déclenché sur un onkeyup sur le champ de recherche) */
...
...
note/templates/note/readhesions.html
View file @
8d3d5f76
{% extends "note/base.html" %}
{% extends "note/base.html" %}
{% load i18n %}
{% load i18n %}
{% load static %}
{% block title %}Comptes{% endblock %}
{% block title %}Comptes{% endblock %}
{% block additional_javascript %}
{% block additional_javascript %}
<script
src=
"{
{ STATIC_URL }}js/custom/getXMLHttpRequest.js
"
></script>
<script
src=
"{
% static 'js/custom/getXMLHttpRequest.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/liste_dynamique_search.js
"
></script>
<script
src=
"{
% static 'js/custom/liste_dynamique_search.js' %}
"
></script>
<script>
var
readhesion
=
true
;
</script>
<script>
var
readhesion
=
true
;
</script>
{% endblock %}
{% endblock %}
{% block applets %}
{% block applets %}
...
...
note/templates/note/un_compte_historique.html
View file @
8d3d5f76
{% extends "note/compte.html" %}
{% extends "note/compte.html" %}
{% load i18n %}
{% load i18n %}
{% load static %}
{% block title %}{% blocktrans with idbde=compte.idbde %}Historique des transactions du compte n°{{ idbde }}{% endblocktrans %}{% endblock %}
{% block title %}{% blocktrans with idbde=compte.idbde %}Historique des transactions du compte n°{{ idbde }}{% endblocktrans %}{% endblock %}
...
@@ -8,6 +9,6 @@
...
@@ -8,6 +9,6 @@
{% endblock %}
{% endblock %}
{% block additional_javascript %}
{% block additional_javascript %}
<script
src=
"{
{ STATIC_URL }}js/custom/getXMLHttpRequest.js
"
></script>
<script
src=
"{
% static 'js/custom/getXMLHttpRequest.js' %}
"
></script>
<script
src=
"{
{ STATIC_URL }}js/custom/toggle_transactions.js
"
></script>
<script
src=
"{
% static 'js/custom/toggle_transactions.js' %}
"
></script>
{% endblock %}
{% endblock %}
note/urls.py
View file @
8d3d5f76
...
@@ -5,93 +5,94 @@
...
@@ -5,93 +5,94 @@
est chargée de générer la page correspondante.
est chargée de générer la page correspondante.
"""
"""
from
django.conf.urls
import
patterns
,
include
,
url
from
django.conf.urls
import
include
,
url
# Import pour la traduction du javascript
# Import pour la traduction du javascript
from
django.views.i18n
import
javascript_catalog
from
django.views.i18n
import
javascript_catalog
import
note.views
import
note.ajaj
#: Liste des patterns d'url
#: Liste des patterns d'url
urlpatterns
=
patterns
(
'note.views'
,
urlpatterns
=
[
# pages de base
# pages de base
url
(
ur
'^/*$'
,
'login_page'
),
url
(
ur
'^/*$'
,
note
.
views
.
login_page
,
name
=
'login_page'
),
url
(
ur
'^/index/*$'
,
'index'
),
url
(
ur
'^/index/*$'
,
note
.
views
.
index
,
name
=
'index'
),
url
(
ur
'^/logout/*$'
,
'logout'
),
url
(
ur
'^/logout/*$'
,
note
.
views
.
logout
,
name
=
'logout'
),
# Page pour changer la langue
# Page pour changer la langue
url
(
ur
'^i18n/'
,
include
(
'django.conf.urls.i18n'
)),
url
(
ur
'^i18n/'
,
include
(
'django.conf.urls.i18n'
)),
# consos
# consos
url
(
ur
'^/consos(?P<double>-double)?/*$'
,
'consos'
),
url
(
ur
'^/consos(?P<double>-double)?/*$'
,
note
.
views
.
consos
,
name
=
'consos'
),
# dons
# dons
url
(
ur
'^/(?:virements|dons)/*'
,
'dons'
),
url
(
ur
'^/(?:virements|dons)/*'
,
note
.
views
.
dons
,
name
=
'dons'
),
# les activités et invitations
# les activités et invitations
url
(
ur
'^/(?:activite|invitation)s?(?P<admin>/admin)?(?P<old>/old)?/*$'
,
'activites'
),
url
(
ur
'^/(?:activite|invitation)s?(?P<admin>/admin)?(?P<old>/old)?/*$'
,
note
.
views
.
activites
,
name
=
'activites'
),
url
(
ur
'^/(?:activite|invitation)s?/(?P<idact>[^/]*)/gestion(?P<validation>/validate|/invalidate|/delete)?/*$'
,
'activite_gestion'
),
url
(
ur
'^/(?:activite|invitation)s?/(?P<idact>[^/]*)/gestion(?P<validation>/validate|/invalidate|/delete)?/*$'
,
note
.
views
.
activite_gestion
,
name
=
'activite_gestion'
),
url
(
ur
'^/(?:activite|invitation)s?/(?P<idact>[^/]*)/gestion/modifier/*$'
,
'activite_gestion_modifier'
),
url
(
ur
'^/(?:activite|invitation)s?/(?P<idact>[^/]*)/gestion/modifier/*$'
,
note
.
views
.
activite_gestion_modifier
,
name
=
'activite_gestion_modifier'
),
url
(
ur
'^/(?:activite|invitation)s?/(?P<idact>[^/]*)(?P<admin>/admin)?/*$'
,
'activite'
),
url
(
ur
'^/(?:activite|invitation)s?/(?P<idact>[^/]*)(?P<admin>/admin)?/*$'
,
note
.
views
.
activite
,
name
=
'activite'
),
url
(
ur
'^/(?:activite|invitation)s?/(?P<idact>[^/]*)/del_invite/(?P<idinv>[^/]*)(?P<admin>/admin)?/*$'
,
'del_invite'
),
url
(
ur
'^/(?:activite|invitation)s?/(?P<idact>[^/]*)/del_invite/(?P<idinv>[^/]*)(?P<admin>/admin)?/*$'
,
note
.
views
.
del_invite
,
name
=
'del_invite'
),
# mes_activités = création d'activités
# mes_activités = création d'activités
url
(
ur
'^/mes_activites(?:/(?P<idact>[^/]*))?(?P<delete>/delete)?/*$'
,
'mes_activites'
),
url
(
ur
'^/mes_activites(?:/(?P<idact>[^/]*))?(?P<delete>/delete)?/*$'
,
note
.
views
.
mes_activites
,
name
=
'mes_activites'
),
# la recherche et gestion des comptes
# la recherche et gestion des comptes
url
(
ur
'^/comptes_advanced/*$'
,
'comptes_advanced'
),
url
(
ur
'^/comptes_advanced/*$'
,
note
.
views
.
comptes_advanced
,
name
=
'comptes_advanced'
),
url
(
ur
'^/search_historique_pseudo/*$'
,
'search_historique_pseudo'
),
url
(
ur
'^/search_historique_pseudo/*$'
,
note
.
views
.
search_historique_pseudo
,
name
=
'search_historique_pseudo'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/*$'
,
'comptes'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/*$'
,
note
.
views
.
comptes
,
name
=
'comptes'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/historique/(?P<num_page>\d+)/*$'
,
'historique_transactions'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/historique/(?P<num_page>\d+)/*$'
,
note
.
views
.
historique_transactions
,
name
=
'historique_transactions'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/historique/*$'
,
'historique_transactions'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/historique/*$'
,
note
.
views
.
historique_transactions
,
name
=
'historique_transactions'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/modifier(/listedroits)?/*$'
,
'modifier_compte'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/modifier(/listedroits)?/*$'
,
note
.
views
.
modifier_compte
,
name
=
'modifier_compte'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/supprimer/*$'
,
'supprimer_compte'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/supprimer/*$'
,
note
.
views
.
supprimer_compte
,
name
=
'supprimer_compte'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/modifier/password/*$'
,
'password'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/modifier/password/*$'
,
note
.
views
.
password
,
name
=
'password'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/modifier/photo/*$'
,
'update_photo'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/modifier/photo/*$'
,
note
.
views
.
update_photo
,
name
=
'update_photo'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/aliases/*$'
,
'aliases'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/aliases/*$'
,
note
.
views
.
aliases
,
name
=
'aliases'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/aliases/delete(?P<delall>_all)?/(?P<idalias>[^/]*)/*$'
,
'unalias'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/aliases/delete(?P<delall>_all)?/(?P<idalias>[^/]*)/*$'
,
note
.
views
.
unalias
,
name
=
'unalias'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/historique_pseudo/*$'
,
'historique_pseudo'
),
url
(
ur
'^/comptes/(?P<idbde>[^/]*)/historique_pseudo/*$'
,
note
.
views
.
historique_pseudo
,
name
=
'historique_pseudo'
),
#les réadhésions
#les réadhésions
url
(
ur
'^/readhesions/(?P<idbde>[^/]*)/*$'
,
'readhesions'
),
url
(
ur
'^/readhesions/(?P<idbde>[^/]*)/*$'
,
note
.
views
.
readhesions
,
name
=
'readhesions'
),
# la gestion des boutons
# la gestion des boutons
url
(
ur
'^/boutons/*$'
,
'boutons'
),
url
(
ur
'^/boutons/*$'
,
note
.
views
.
boutons
,
name
=
'boutons'
),
url
(
ur
'^/boutons/(?P<idbouton>[^/]*)(?P<delete>/delete)?/*$'
,
'boutons'
),
url
(
ur
'^/boutons/(?P<idbouton>[^/]*)(?P<delete>/delete)?/*$'
,
note
.
views
.
boutons
,
name
=
'boutons'
),
# les préinscription
# les préinscription
url
(
ur
'^/preinscriptions?/*$'
,
'preinscriptions'
),
url
(
ur
'^/preinscriptions?/*$'
,
note
.
views
.
preinscriptions
,
name
=
'preinscriptions'
),
# les inscriptions
# les inscriptions
url
(
ur
'^/inscriptions?(?:/(?P<preid>[^/]*))?(?P<delete>/delete)?/*$'
,
'inscriptions'
),
url
(
ur
'^/inscriptions?(?:/(?P<preid>[^/]*))?(?P<delete>/delete)?/*$'
,
note
.
views
.
inscriptions
,
name
=
'inscriptions'
),
# Application WEI
# Application WEI
url
(
ur
'^/wei/*$'
,
'WEIaccueil'
),
url
(
ur
'^/wei/*$'
,
note
.
views
.
WEIaccueil
,
name
=
'WEIaccueil'
),
url
(
ur
'^/wei/monInscription/*$'
,
'WEImonInscription'
),
url
(
ur
'^/wei/monInscription/*$'
,
note
.
views
.
WEImonInscription
,
name
=
'WEImonInscription'
),
url
(
ur
'^/wei/1a/*$'
,
'WEI1A'
),
url
(
ur
'^/wei/1a/*$'
,
note
.
views
.
WEI1A
,
name
=
'WEI1A'
),
url
(
ur
'^/wei/vieux/*$'
,
'WEIvieux'
),
url
(
ur
'^/wei/vieux/*$'
,
note
.
views
.
WEIvieux
,
name
=
'WEIvieux'
),
url
(
ur
'^/wei/admin/*$'
,
'WEIAdmin'
),
url
(
ur
'^/wei/admin/*$'
,
note
.
views
.
WEIAdmin
,
name
=
'WEIAdmin'
),
url
(
ur
'^/wei/inscrits/*$'
,
'WEIinscrits'
),
url
(
ur
'^/wei/inscrits/*$'
,
note
.
views
.
WEIinscrits
,
name
=
'WEIinscrits'
),
url
(
ur
'^/wei/inscrits/readherer/(?P<idwei>\d+)/*'
,
'WEIreadherer'
),
url
(
ur
'^/wei/inscrits/readherer/(?P<idwei>\d+)/*'
,
note
.
views
.
WEIreadherer
,
name
=
'WEIreadherer'
),
url
(
ur
'^/wei/inscrits/(?P<idwei>\d+)/*$'
,
'WEIchangeInscription'
),
url
(
ur
'^/wei/inscrits/(?P<idwei>\d+)/*$'
,
note
.
views
.
WEIchangeInscription
,
name
=
'WEIchangeInscription'
),
url
(
ur
'^/wei/inscrits1a/*$'
,
'WEIinscrits1A'
),
url
(
ur
'^/wei/inscrits1a/*$'
,
note
.
views
.
WEIinscrits1A
,
name
=
'WEIinscrits1A'
),
url
(
ur
'^/wei/inscrits1a/(?P<idwei>\d+)/*$'
,
'WEIchangeInscription1A'
),
url
(
ur
'^/wei/inscrits1a/(?P<idwei>\d+)/*$'
,
note
.
views
.
WEIchangeInscription1A
,
name
=
'WEIchangeInscription1A'
),
url
(
ur
'^/wei/inscrits1a/adherer/(?P<idwei>\d+)/*$'
,
'WEIcreerCompte1A'
),
url
(
ur
'^/wei/inscrits1a/adherer/(?P<idwei>\d+)/*$'
,
note
.
views
.
WEIcreerCompte1A
,
name
=
'WEIcreerCompte1A'
),
# interface trésorerie
# interface trésorerie
url
(
ur
'^/tresorerie/*$'
,
'TresorerieAccueil'
),
url
(
ur
'^/tresorerie/*$'
,
note
.
views
.
TresorerieAccueil
,
name
=
'TresorerieAccueil'
),
url
(
ur
'^/tresorerie/cheques/*$'
,
'TresorerieCheques'
),
url
(
ur
'^/tresorerie/cheques/*$'
,
note
.
views
.
TresorerieCheques
,
name
=
'TresorerieCheques'
),
url
(
ur
'^/tresorerie/remises/*$'
,
'TresorerieRemises'
),
url
(
ur
'^/tresorerie/remises/*$'
,
note
.
views
.
TresorerieRemises
,
name
=
'TresorerieRemises'
),
url
(
ur
'^/tresorerie/(?P<idtransaction>[^/]*)/(?P<action>ajout|delete)/*$'
,
'TresorerieAjoutRemise'
),
url
(
ur
'^/tresorerie/(?P<idtransaction>[^/]*)/(?P<action>ajout|delete)/*$'
,
note
.
views
.
TresorerieAjoutRemise
,
name
=
'TresorerieAjoutRemise'
),
url
(
ur
'^/tresorerie/remises/(?P<idremise>[^/]*)?(?P<clore>/clore)?/*$'
,
'TresorerieCloreRemise'
),
url
(
ur
'^/tresorerie/remises/(?P<idremise>[^/]*)?(?P<clore>/clore)?/*$'
,
note
.
views
.
TresorerieCloreRemise
,
name
=
'TresorerieCloreRemise'
),
url
(
ur
'^/tresorerie/facturation/*$'
,
'TresorerieFacturation'
),
url
(
ur
'^/tresorerie/facturation/*$'
,
note
.
views
.
TresorerieFacturation
,
name
=
'TresorerieFacturation'
),
# regeneration du password
# regeneration du password
url
(
ur
'^/regen_pw/(?P<token>[^/]*)/*$'
,
'regen_pw'
),
url
(
ur
'^/regen_pw/(?P<token>[^/]*)/*$'
,
note
.
views
.
regen_pw
,
name
=
'regen_pw'
),
# easter egg
# easter egg
url
(
ur
'^/(?:teapot|the|tea|coffee|cafe)/*$'
,
'teapot'
),
url
(
ur
'^/(?:teapot|the|tea|coffee|cafe)/*$'
,
note
.
views
.
teapot
,
name
=
'teapot'
),
# Page de liste des droits
# Page de liste des droits
url
(
ur
'^/listedroits/*$'
,
'liste_droits'
)
url
(
ur
'^/listedroits/*$'
,
note
.
views
.
liste_droits
,
name
=
'liste_droits'
)
)
]
urlpatterns
+=
patterns
(
'note.ajaj'
,
urlpatterns
+=
[
# les pages de requêtes AJAJ
# les pages de requêtes AJAJ
url
(
ur
'^/quick_search_(?P<mode>basic|dons)/*$'
,
'quick_search'
),
url
(
ur
'^/quick_search_(?P<mode>basic|dons)/*$'
,
note
.
ajaj
.
quick_search
,
name
=
'quick_search'
),
url
(
ur
'^/search/*$'
,
'search'
),
url
(
ur
'^/search/*$'
,
note
.
ajaj
.
search
,
name
=
'search'
),
url
(
ur
'^/search_readhesion/*$'
,
'search_readhesion'
),
url
(
ur
'^/search_readhesion/*$'
,
note
.
ajaj
.
search_readhesion
,
name
=
'search_readhesion'
),
url
(
ur
'^/get_boutons/(?P<flags>[^/]*)/*$'
,
'get_boutons'
),
url
(
ur
'^/get_boutons/(?P<flags>[^/]*)/*$'
,
note
.
ajaj
.
get_boutons
,
name
=
'get_boutons'
),
url
(
ur
'^/get_display_info/*$'
,
'get_display_info'
),
url
(
ur
'^/get_display_info/*$'
,
note
.
ajaj
.
get_display_info
,
name
=
'get_display_info'
),
url
(
ur
'^/get_photo/(?P<idbde>[^/]*)/*$'
,
'get_photo'
),
url
(
ur
'^/get_photo/(?P<idbde>[^/]*)/*$'
,
note
.
ajaj
.
get_photo
,
name
=
'get_photo'
),
url
(
ur
'^/do_conso/*$'
,
'do_conso'
),
url
(
ur
'^/do_conso/*$'
,
note
.
ajaj
.
do_conso
,
name
=
'do_conso'
),
url
(
ur
'^/do_(?P<action>credit|retrait)/*$'
,
'do_credit_retrait'
),
url
(
ur
'^/do_(?P<action>credit|retrait)/*$'
,
note
.
ajaj
.
do_credit_retrait
,
name
=
'do_credit_retrait'
),
url
(
ur
'^/do_transfert/*$'
,
'do_transfert'
),
url
(
ur
'^/do_transfert/*$'
,
note
.
ajaj
.
do_transfert
,
name
=
'do_transfert'
),
url
(
ur
'^/consos/toggle_transaction/*$'
,
'toggle_transaction'
),
url
(
ur
'^/consos/toggle_transaction/*$'
,
note
.
ajaj
.
toggle_transaction
,
name
=
'toggle_transaction'
),
)
]
...
@@ -100,6 +101,6 @@ js_info_dict = {
...
@@ -100,6 +101,6 @@ js_info_dict = {
}
}
# Pour la traduction du javascript
# Pour la traduction du javascript
urlpatterns
+=
patterns
(
''
,
urlpatterns
+=
[
url
(
r
'^jsi18n/$'
,
javascript_catalog
,
js_info_dict
,
name
=
'javascript_catalog'
),
url
(
r
'^jsi18n/$'
,
javascript_catalog
,
js_info_dict
,
name
=
'javascript_catalog'
),
)
]
note/wsgi.py
0 → 100644
View file @
8d3d5f76
"""
WSGI config for plop project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import
os
from
django.core.wsgi
import
get_wsgi_application
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"note.settings"
)
application
=
get_wsgi_application
()
urls.py
View file @
8d3d5f76
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
est en mode DEBUG.
est en mode DEBUG.
"""
"""