Commit 7cb8a2dc authored by Patrick Colmant's avatar Patrick Colmant

Use of natural key export, minimalist : import-export xlsx, export docx, order UI, send mail

parent 7706def0
......@@ -28,6 +28,9 @@ pip install cmsplugin-filer
pip install django-reversion
pip install django_compressor
pip install django-admin-sortable2
pip install openpyxl
sudo apt-get install libxml2-dev libxslt1-dev
pip install docx
# pip install django_debug_toolbar
# pip install django-dajaxice ! not working with Django 1.6
# pip install django-custom-user
......
......@@ -7,7 +7,21 @@
processes = 2
buffer-size = 8192
env = DJANGO_SETTINGS_MODULE=mysite.$REPANIER.BE$_settings
env = DJANGO_SETTINGS_MODULE_SITE_ID=1
env = DJANGO_SETTINGS_MODULE_DEBUG=False
env = DJANGO_SETTINGS_MODULE_DATABASE_NAME=$NAME$
env = DJANGO_SETTINGS_MODULE_DATABASE_USER=$USER$
env = DJANGO_SETTINGS_MODULE_DATABASE_PASSWORD=$PASSWORD$
env = DJANGO_SETTINGS_MODULE_DATABASE_HOST=127.0.0.1
env = DJANGO_SETTINGS_MODULE_DATABASE_PORT=5432
env = DJANGO_SETTINGS_MODULE_SECRET_KEY=$SECRET_KEY$
env = DJANGO_SETTINGS_MODULE_EMAIL_HOST=$EMAIL_HOST$
env = DJANGO_SETTINGS_MODULE_EMAIL_HOST_USER=$EMAIL_HOST_USER$
env = DJANGO_SETTINGS_MODULE_EMAIL_HOST_PASSWORD=$EMAIL_HOST_PASSWORD$
env = DJANGO_SETTINGS_MODULE_EMAIL_PORT=$EMAIL_PORT$
env = DJANGO_SETTINGS_MODULE_EMAIL_USE_TLS=True
env = DJANGO_SETTINGS_MODULE_ADMIN_NAME=$ADMIN_NAME$
env = DJANGO_SETTINGS_MODULE_ADMIN_EMAIL=$ADMIN_EMAIL$
wsgi-file = /$PATH_TO$/production/mysite/mysite/wsgi.py
virtualenv = /$PATH_TO$/production/
chdir = /$PATH_TO$/production/mysite/
......
# -*- coding: utf-8 -*-
from production_settings import *
from common_settings import *
### Site 4 specific parameters
SITE_ID = 4
ALLOWED_HOSTS = ['apero.$REPANIER.BE$','apero.$REPANIER.LOCAL$']
SITE_ID = 4 if os.getenv('DJANGO_SETTINGS_MODULE_SITE_ID','') == '4' else 1 / 0
ALLOWED_HOSTS = ['apero.$REPANIER.BE$',]
EMAIL_SUBJECT_PREFIX = '['+ ALLOWED_HOSTS[0] +']'
MEDIA_ROOT = os.path.join(PROJECT_DIR, "media", ALLOWED_HOSTS[0], "public")
TEMPLATE_DIRS = (
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment