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
R
re2o
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
e1d0a8ee
Commit
e1d0a8ee
authored
Sep 27, 2017
by
Gabriel Detraz
Committed by
root
Sep 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix encodage et imports
parent
81481ba1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
95 additions
and
0 deletions
+95
-0
cotisations/models.py
cotisations/models.py
+1
-0
logs/templatetags/__init__.py
logs/templatetags/__init__.py
+1
-0
logs/templatetags/logs_extra.py
logs/templatetags/logs_extra.py
+1
-0
re2o/login.py
re2o/login.py
+1
-0
re2o/settings_local.py.old
re2o/settings_local.py.old
+91
-0
No files found.
cotisations/models.py
View file @
e1d0a8ee
...
@@ -31,6 +31,7 @@ from dateutil.relativedelta import relativedelta
...
@@ -31,6 +31,7 @@ from dateutil.relativedelta import relativedelta
from
django.forms
import
ValidationError
from
django.forms
import
ValidationError
from
django.core.validators
import
MinValueValidator
from
django.core.validators
import
MinValueValidator
from
django.db.models
import
Max
from
django.utils
import
timezone
from
django.utils
import
timezone
from
machines.models
import
regen
from
machines.models
import
regen
...
...
logs/templatetags/__init__.py
View file @
e1d0a8ee
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
# quelques clics.
...
...
logs/templatetags/logs_extra.py
View file @
e1d0a8ee
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
# quelques clics.
...
...
re2o/login.py
View file @
e1d0a8ee
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
# quelques clics.
...
...
re2o/settings_local.py.old
0 → 100644
View file @
e1d0a8ee
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
#
# Copyright © 2017 Gabriel Détraz
# Copyright © 2017 Goulven Kermarec
# Copyright © 2017 Augustin Lemesle
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
SECRET_KEY = 'dqd1=pr^puqq@6-r9*+7@1g2b2#6nbvv@6j%7r#it@c+r!sk2d'
DB_PASSWORD = 'M7AJnkkFXM4kM'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ADMINS = [('Chirac', 'chirac@crans.org')]
SERVER_EMAIL = 'no-reply@re2o-server.crans.org'
# Obligatoire, liste des host autorisés
ALLOWED_HOSTS = ['re2o-server.crans.org', 're2o.crans.org']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 're2o',
'USER': 're2o',
'PASSWORD': DB_PASSWORD,
'HOST': 'pgsql.adm.crans.org',
},
'ldap': {
'ENGINE': 'ldapdb.backends.ldap',
'NAME': 'ldap://10.231.136.244/',
'USER': 'cn=admin,dc=ldap,dc=crans,dc=org',
'PASSWORD': '3K9kCh67iEMHE',
}
}
# Security settings
SECURE_CONTENT_TYPE_NOSNIFF = False
SECURE_BROWSER_XSS_FILTER = False
SESSION_COOKIE_SECURE = False
CSRF_COOKIE_SECURE = False
CSRF_COOKIE_HTTPONLY = False
X_FRAME_OPTIONS = 'DENY'
SESSION_COOKIE_AGE = 60 * 60 * 3
LOGO_PATH = "static_files/logo.png"
# Email `From` field
EMAIL_FROM = 'www-data@server.net'
EMAIL_HOST = 'smtp.crans.org'
# Reglages pour la bdd ldap
LDAP = {
'base_user_dn' : 'cn=Utilisateurs,dc=ldap,dc=crans,dc=org',
'base_userservice_dn' : 'ou=service-users,dc=ldap,dc=crans,dc=org',
'base_usergroup_dn' : 'ou=posix,ou=groups,dc=ldap,dc=crans,dc=org',
'base_userservicegroup_dn' : 'ou=services,ou=groups,dc=ldap,dc=crans,dc=org',
'user_gid' : 500,
}
UID_RANGES = {
'users' : [21001,30000],
'service-users' : [20000,21000],
}
# Chaque groupe a un gid assigné, voici la place libre pour assignation
GID_RANGES = {
'posix' : [501, 600],
}
OPTIONNAL_APPS = ()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment