adaptations en vue d'une installation simplifiee
but : permettre un démarrage de l'application via runserver même si rien n'est encore bien configuré
This commit is contained in:
parent
1cd0f37b25
commit
cbdccc7487
1
Makefile
1
Makefile
|
@ -23,5 +23,4 @@ install:
|
|||
$(CP) -r polynum $(DESTDIR)/opt/polynum
|
||||
$(CP) -r bin $(DESTDIR)/opt/polynum
|
||||
$(INSTALL) -d $(DESTDIR)/etc/polynum
|
||||
$(INSTALL) -m 644 local_settings.py.example $(DESTDIR)/etc/polynum
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ if not os.path.isdir(POLYNUM_DIR):
|
|||
sys.exit(1)
|
||||
|
||||
sys.path.append(POLYNUM_DIR)
|
||||
sys.path.append('/etc/polynum')
|
||||
|
||||
if os.path.isdir(VIRTUAL_ENV):
|
||||
site_packages = os.path.join(VIRTUAL_ENV,
|
||||
|
|
|
@ -43,7 +43,7 @@ TEMPLATE_DIRS = (
|
|||
# Always use forward slashes, even on Windows.
|
||||
# Don't forget to use absolute paths, not relative paths.
|
||||
'/opt/polynum/local/templates',
|
||||
'/opt/polynum/templates',
|
||||
'/opt/polynum/polynum/templates',
|
||||
)
|
||||
|
||||
#
|
||||
|
|
|
@ -6,7 +6,7 @@ from django.core.urlresolvers import reverse_lazy
|
|||
|
||||
PROJECT_ROOT = os.path.join(os.path.dirname(__file__), '.')
|
||||
|
||||
DEBUG = False
|
||||
DEBUG = True
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
|
||||
ADMINS = (
|
||||
|
@ -18,7 +18,7 @@ MANAGERS = ADMINS
|
|||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
||||
'NAME': 'polynum.db', # Or path to database file if using sqlite3.
|
||||
'NAME': '/tmp/polynum.db', # 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.
|
||||
|
@ -118,6 +118,7 @@ TEMPLATE_DIRS = (
|
|||
# Always use forward slashes, even on Windows.
|
||||
# Don't forget to use absolute paths, not relative paths.
|
||||
os.path.join(PROJECT_ROOT, "templates"),
|
||||
'/opt/polynum/local/templates/',
|
||||
)
|
||||
|
||||
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
|
||||
|
@ -182,7 +183,7 @@ LOGGING = {
|
|||
|
||||
AUTHENTICATION_BACKENDS = ('polynum.base.backends.ModelBackend',)
|
||||
|
||||
CAS_SERVER_URL = 'https://www.ent.dauphine.fr/cas/'
|
||||
CAS_SERVER_URL = None # 'https://www.ent.dauphine.fr/cas/'
|
||||
|
||||
DOCUMENTS_UPLOAD_DIRECTORY = '/tmp/pdf/'
|
||||
|
||||
|
@ -191,9 +192,9 @@ GRAPPELLI_ADMIN_TITLE = 'Administration de PolyNum'
|
|||
GRAPPELLI_INDEX_DASHBOARD = 'polynum.dashboard.CustomIndexDashboard'
|
||||
|
||||
#OAI
|
||||
OAI_ADMIN_EMAIL = 'admin@dauphine.fr'
|
||||
OAI_TEXT = 'Polynum documents'
|
||||
OAI_REPOSITORY_NAME = 'Polynum OAI-PMH repository'
|
||||
OAI_ADMIN_EMAIL = 'admin@univ.fr'
|
||||
OAI_TEXT = 'Documents PolyNum'
|
||||
OAI_REPOSITORY_NAME = 'PolyNum OAI-PMH repository'
|
||||
|
||||
try:
|
||||
from local_settings import *
|
||||
|
|
Reference in New Issue