local_settings.py.example 1.19 KB
Newer Older
1 2 3
import os

PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
4
BACKUP_DIR = os.path.join(PROJECT_DIR, 'public')
5

OSP's avatar
OSP committed
6 7
DATABASES = {
    'default': {
8 9
        'ENGINE': 'django.db.backends.sqlite3', # Add one of postgresql_psycopg2, mysql, sqlite3, oracle
        'NAME': os.path.join(PROJECT_DIR, 'sqlite.db'),
OSP's avatar
OSP committed
10 11 12 13 14 15 16
        'USER': '',
        'PASSWORD': '',
        'HOST': '',                      # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
        'PORT': '',                      # Set to empty string for default.
    }
}

17 18 19 20
EMAIL_HOST = ''
EMAIL_PORT = 587
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
21
EMAIL_USE_TLS = True
eric's avatar
eric committed
22

23
HOME_PAD = 'About.md'
24 25

# You can use this if you want to run the project under a subfolder
26 27 28 29 30 31 32 33 34 35
# SUBFOLDER = '2015'

# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/var/www/example.com/media/"
MEDIA_ROOT = ''

# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
36
STATIC_ROOT = '/home/osp/static-ethertoff-collected/'
37