This commit is contained in:
Evarin 2017-04-25 23:18:52 +02:00
parent d1243280d8
commit 3cb9075a4d
5 changed files with 7 additions and 4 deletions

5
.gitignore vendored
View file

@ -104,10 +104,11 @@ test.py
# Migrations
migrations/
*.venv/
*venv/
*~
\#*
.#*
*.sqlite3
.sass-cache
/static/
/static/
settings.py

View file

@ -44,7 +44,7 @@ class Normalien(models.Model):
# Hook à la création d'un nouvel utilisateur : récupération de ses infos par LDAP
def create_user_profile(sender, instance, created, **kwargs):
if created:
profil = Normalien.objects.get_or_create(user=instance)
profil, created = Normalien.objects.get_or_create(user=instance)
try:
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER)
l = ldap.initialize("ldaps://ldap.spi.ens.fr:636")

View file

@ -1 +0,0 @@
settings_dev.py

1
requirements-prod.txt Normal file
View file

@ -0,0 +1 @@
psycopg2

View file

@ -5,3 +5,5 @@ python-ldap
django-tinymce
django-braces
django-taggit-autosuggest
pytz
django-tastypie