added an example local_settings.py
This commit is contained in:
parent
b7c4ac71ba
commit
8674aa2aa2
|
@ -1,4 +1,5 @@
|
||||||
recursive-include polynum_blackboard/templates/ *
|
recursive-include polynum_blackboard/templates/ *
|
||||||
|
recursive-include polynum_blackboard/static/ *.js
|
||||||
include requirements.txt
|
include requirements.txt
|
||||||
include COPYING
|
include COPYING
|
||||||
include README.rst
|
include README.rst
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
from polynum.settings import INSTALLED_APPS
|
||||||
|
|
||||||
|
DEBUG = True
|
||||||
|
CAS_SERVER_URL = 'https://www.ent.dauphine.fr/cas/'
|
||||||
|
CAS_ADMIN_PREFIX = 'coin'
|
||||||
|
LDAP_URL = 'ldaps://localhost:2000/'
|
||||||
|
LDAP_BASE = 'dc=dauphine,dc=fr'
|
||||||
|
LDAP_BIND_PASSWORD = 'coin'
|
||||||
|
LDAP_BIND_DN = 'uid=logement,ou=bindusers,dc=dauphine,dc=fr'
|
||||||
|
LDAP_USER_QUERY = 'supannAliasLogin=%s'
|
||||||
|
SITE_URL = 'http://localhost:8000'
|
||||||
|
ADMINS = (
|
||||||
|
('Benjamin Dauvergne', 'benjamin.dauvergne@gmail.com'),
|
||||||
|
)
|
||||||
|
DATABASES = {
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
||||||
|
'NAME': 'polynum', # Or path to database file if using sqlite3.
|
||||||
|
'USER': '', # Not used with sqlite3.
|
||||||
|
'PASSWORD': '', # Not used with sqlite3.
|
||||||
|
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
|
||||||
|
'PORT': '', # Set to empty string for default. Not used with sqlite3.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
DEFAULT_FROM_EMAIL = 'bdauvergne@entrouvert.com'
|
||||||
|
print 'Loading polynum_blackboard...'
|
||||||
|
ROOT_URLCONF = 'polynum_blackboard.urls'
|
||||||
|
INSTALLED_APPS = ('polynum_blackboard',) + INSTALLED_APPS
|
||||||
|
|
||||||
|
# BB Connector configuration
|
||||||
|
POLYNUM_BB_URL = 'https://mycourse.dauphine.fr/webapps/'
|
||||||
|
POLYNUM_BB_ADMIN_LOGIN = 'coin'
|
||||||
|
POLYNUM_BB_ADMIN_PASSWORD = 'coin'
|
||||||
|
POLYNUM_BB_SECRET_KEY = 'coin'
|
||||||
|
POLYNUM_BB_COURSE_YEAR = '2012-2013'
|
||||||
|
POLYNUM_BB_DIPLOMA_DESIGNATION = 'diplome'
|
||||||
|
POLYNUM_BB_UE_DESIGNATION = 'element pedagogique'
|
6
setup.py
6
setup.py
|
@ -6,7 +6,7 @@
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
setup(name="polynum-blackboard",
|
setup(name="polynum-blackboard",
|
||||||
version=0.1,
|
version='0.2',
|
||||||
license="AGPLv3 or later",
|
license="AGPLv3 or later",
|
||||||
description="Allows sending documents from Polynum to the Blackboard e-Learning platform",
|
description="Allows sending documents from Polynum to the Blackboard e-Learning platform",
|
||||||
url="http://dev.entrouvert.org/projects/polynum-blackboard/",
|
url="http://dev.entrouvert.org/projects/polynum-blackboard/",
|
||||||
|
@ -16,7 +16,9 @@ setup(name="polynum-blackboard",
|
||||||
maintainer_email="bdauvergne@entrouvert.com",
|
maintainer_email="bdauvergne@entrouvert.com",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
package_data={},
|
package_data={
|
||||||
|
'polynum_blackboard': ['*.html','*.js'],
|
||||||
|
},
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'requests<0.15.0',
|
'requests<0.15.0',
|
||||||
],
|
],
|
||||||
|
|
Reference in New Issue