Commit 6fd0daa7 authored by Christophe Siraut's avatar Christophe Siraut

Add required setting for django 1.6

parent 58ef5278
...@@ -114,6 +114,17 @@ Build database, collect static files and set permissions:: ...@@ -114,6 +114,17 @@ Build database, collect static files and set permissions::
Set domain name: Point your browser to /admin/sites/site/1/ and modify the entry from "example.com" to your domain name. Set domain name: Point your browser to /admin/sites/site/1/ and modify the entry from "example.com" to your domain name.
SSL
===
We recommend using SSL for all transactions and adding the following settings to your local_settings.py:
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
ALLOWED_HOSTS = [
'.domainepublic.net', # Allow domain and subdomains
'.domainepublic.net.', # Also allow FQDN and subdomains
]
Testing Testing
======= =======
In order to test Nuages, you need the following dependencies:: In order to test Nuages, you need the following dependencies::
......
...@@ -3,17 +3,16 @@ ...@@ -3,17 +3,16 @@
# Django settings for Nuages # Django settings for Nuages
import os import os
DEBUG = False # Turn off for production DEBUG = False
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
ALLOWED_HOSTS = '*'
PROJECT_DIR = os.path.normpath(os.path.dirname(os.path.dirname(__file__)))
ADMINS = ( ADMINS = (
# ('Your Name', 'your_email@domain.com'), # ('Your Name', 'your_email@domain.com'),
) )
MANAGERS = ADMINS MANAGERS = ADMINS
DEFAULT_FROM_EMAIL = 'nuages@domainepublic.net' DEFAULT_FROM_EMAIL = 'nuages@domainepublic.net'
LOGIN_REDIRECT_URL = '/' LOGIN_REDIRECT_URL = '/'
PROJECT_DIR = os.path.normpath(os.path.dirname(os.path.dirname(__file__)))
DATABASES = { DATABASES = {
'default': { 'default': {
......
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