Add a settings/local.py.sample

This commit is contained in:
Yohan Boniface 2013-05-14 12:48:09 +02:00
parent 177d4b8c65
commit 438fe51ca0
2 changed files with 64 additions and 5 deletions

View file

@ -25,11 +25,7 @@ Install dependencies and project::
Create a default local settings file:: Create a default local settings file::
touch umap/settings/local.py cp umap/settings/local.py.sample umap/settings/local.py
Import base settings::
from umap.settings.base import *
Add database connexion informations in `local.py`, for example:: Add database connexion informations in `local.py`, for example::

View file

@ -0,0 +1,63 @@
# -*- coding:utf-8 -*-
"""
Example settings for local development
Use this file as a base for your local development settings and copy
it to umap/settings/local.py. It should not be checked into
your code repository.
"""
from umap.settings.base import * # pylint: disable=W0614,W0401
SECRET_KEY = 'your secret key here'
DEBUG = True # False in production
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('You', 'your@email'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'umap',
}
}
WSGI_APPLICATION = 'umap.wsgi.application'
COMPRESS_ENABLED = False # True in production
COMPRESS_OFFLINE = True
LANGUAGE_CODE = 'en'
LANGUAGES = (
('en', 'English'),
('fr', u'Francais'),
('it', u'Italiano'),
('pt', u'Portuguese'),
('nl', u'Dutch'),
)
AUTHENTICATION_BACKENDS = (
'social_auth.backends.contrib.github.GithubBackend',
'social_auth.backends.contrib.bitbucket.BitbucketBackend',
'social_auth.backends.twitter.TwitterBackend',
'umap.osm_backend.OSMBackend',
'django.contrib.auth.backends.ModelBackend',
)
GITHUB_APP_ID = 'xxx'
GITHUB_API_SECRET = 'xxx'
BITBUCKET_CONSUMER_KEY = 'xxx'
BITBUCKET_CONSUMER_SECRET = 'xxx'
# We need email to associate with other Oauth providers
GITHUB_AUTH_EXTRA_ARGUMENTS = {"scope": "user:email"}
TWITTER_CONSUMER_KEY = "xxx"
TWITTER_CONSUMER_SECRET = "xxx"
OSM_CONSUMER_KEY = 'xxx'
OSM_CONSUMER_SECRET = 'xxx'
UMAP_DEMO_PK = 34 # Pk of a Map instance
LEAFLET_STORAGE_ALLOW_ANONYMOUS = True
UMAP_DEMO_SITE = False