Debugs
This commit is contained in:
parent
d1243280d8
commit
3cb9075a4d
5 changed files with 7 additions and 4 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -104,10 +104,11 @@ test.py
|
||||||
|
|
||||||
# Migrations
|
# Migrations
|
||||||
migrations/
|
migrations/
|
||||||
*.venv/
|
*venv/
|
||||||
*~
|
*~
|
||||||
\#*
|
\#*
|
||||||
.#*
|
.#*
|
||||||
*.sqlite3
|
*.sqlite3
|
||||||
.sass-cache
|
.sass-cache
|
||||||
/static/
|
/static/
|
||||||
|
settings.py
|
|
@ -44,7 +44,7 @@ class Normalien(models.Model):
|
||||||
# Hook à la création d'un nouvel utilisateur : récupération de ses infos par LDAP
|
# Hook à la création d'un nouvel utilisateur : récupération de ses infos par LDAP
|
||||||
def create_user_profile(sender, instance, created, **kwargs):
|
def create_user_profile(sender, instance, created, **kwargs):
|
||||||
if created:
|
if created:
|
||||||
profil = Normalien.objects.get_or_create(user=instance)
|
profil, created = Normalien.objects.get_or_create(user=instance)
|
||||||
try:
|
try:
|
||||||
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER)
|
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER)
|
||||||
l = ldap.initialize("ldaps://ldap.spi.ens.fr:636")
|
l = ldap.initialize("ldaps://ldap.spi.ens.fr:636")
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
settings_dev.py
|
|
1
requirements-prod.txt
Normal file
1
requirements-prod.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
psycopg2
|
|
@ -5,3 +5,5 @@ python-ldap
|
||||||
django-tinymce
|
django-tinymce
|
||||||
django-braces
|
django-braces
|
||||||
django-taggit-autosuggest
|
django-taggit-autosuggest
|
||||||
|
pytz
|
||||||
|
django-tastypie
|
||||||
|
|
Loading…
Reference in a new issue