forked from DGNum/gestioCOF
Move production deps out of requirements.txt
This commit is contained in:
parent
a3ca2e66bf
commit
481cb5e478
4 changed files with 28 additions and 7 deletions
|
@ -3,11 +3,17 @@ from django.conf import settings
|
|||
from django.contrib.auth.models import User
|
||||
from django.db.models import Q
|
||||
from django.http import Http404
|
||||
from ldap3 import Connection
|
||||
|
||||
from gestioncof.decorators import buro_required
|
||||
from gestioncof.models import CofProfile
|
||||
|
||||
if getattr(settings, "LDAP_SERVER_URL", None):
|
||||
from ldap3 import Connection
|
||||
else:
|
||||
# shared.tests.testcases.TestCaseMixin.mockLDAP needs
|
||||
# Connection to be defined in order to mock it.
|
||||
Connection = None
|
||||
|
||||
|
||||
class Clipper(object):
|
||||
def __init__(self, clipper, fullname):
|
||||
|
|
|
@ -2,12 +2,18 @@ from django.conf import settings
|
|||
from django.db.models import Q
|
||||
from django.http import Http404
|
||||
from django.shortcuts import render
|
||||
from ldap3 import Connection
|
||||
|
||||
from gestioncof.models import User
|
||||
from kfet.decorators import teamkfet_required
|
||||
from kfet.models import Account
|
||||
|
||||
if getattr(settings, "LDAP_SERVER_URL", None):
|
||||
from ldap3 import Connection
|
||||
else:
|
||||
# shared.tests.testcases.TestCaseMixin.mockLDAP needs
|
||||
# Connection to be defined in order to mock it.
|
||||
Connection = None
|
||||
|
||||
|
||||
class Clipper(object):
|
||||
def __init__(self, clipper, fullname):
|
||||
|
|
14
requirements-prod.txt
Normal file
14
requirements-prod.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
-r requirements.txt
|
||||
|
||||
# Postgresql bindings
|
||||
psycopg2<2.8
|
||||
|
||||
# Redis
|
||||
django-redis-cache==1.8.1
|
||||
|
||||
# ASGI protocol and HTTP server
|
||||
asgiref==1.1.1
|
||||
daphne==1.3.0
|
||||
|
||||
# ldap bindings
|
||||
ldap3
|
|
@ -4,18 +4,13 @@ django-autocomplete-light==3.3.*
|
|||
django-cas-ng==3.6.*
|
||||
django-djconfig==0.8.0
|
||||
django-recaptcha==1.4.0
|
||||
django-redis-cache==1.8.1
|
||||
icalendar
|
||||
psycopg2<2.8
|
||||
Pillow
|
||||
django-bootstrap-form==3.3
|
||||
asgiref==1.1.1
|
||||
daphne==1.3.0
|
||||
asgi-redis==1.3.0
|
||||
statistics==1.0.3.5
|
||||
django-widget-tweaks==1.4.1
|
||||
git+https://git.eleves.ens.fr/cof-geek/django_custommail.git#egg=django_custommail
|
||||
ldap3
|
||||
channels==1.1.5
|
||||
python-dateutil
|
||||
wagtail==2.4.*
|
||||
|
|
Loading…
Reference in a new issue