# Database config

# Set this to true to access the remote database. NOTE: you must set up an ssh tunnel from local 5433 to remote 5432
REMOTE_SCRAPE = False

DATABASES = {}

if not REMOTE_SCRAPE:

    # Edit this to make changes to your database setup
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
            'NAME': unixy_project_path('dev_db.sqlite3'),   # 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.
            'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
        }
    }
else:

    # You can use this for convenience to access the remote database through an ssh tunnel
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
            'NAME': 'qcumber',   # Or path to database file if using sqlite3.
            'USER': '******',                      # Not used with sqlite3.
            'PASSWORD': '******',                  # Not used with sqlite3.
Esempio n. 2
0
USE_TZ = False

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

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
MEDIA_URL = '/media/'

# 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: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = unixy_project_path("static_collected/")

# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/'

# Additional locations of static files (with optional namespaces)
STATICFILES_DIRS = (
    ('css', unixy_project_path("qcumber/static/css")),
    ('js', unixy_project_path("qcumber/static/js")),
    ('less', unixy_project_path("qcumber/static/less")),
    ('img', unixy_project_path("qcumber/static/img")),
    ('font', unixy_project_path("qcumber/static/font")),
)

# List of finder classes that know how to find static files in
Esempio n. 3
0
USE_TZ = False

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

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
MEDIA_URL = '/media/'

# 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: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = unixy_project_path("static_collected/")

# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/'

# Additional locations of static files (with optional namespaces)
STATICFILES_DIRS = (
    ('css', unixy_project_path("qcumber/static/css")),
    ('js', unixy_project_path("qcumber/static/js")),
    ('less', unixy_project_path("qcumber/static/less")),
    ('img', unixy_project_path("qcumber/static/img")),
    ('font', unixy_project_path("qcumber/static/font")),
)

# List of finder classes that know how to find static files in
Esempio n. 4
0
# fill it out with your environment-specific settings
# DO NOT DISTRIBUTE YOUR PERSONAL private_config.py
# -----------------------------------------------------------------------------

from qcumber.config import unixy_project_path

# Turn debug on in dev settings for useful error pages
DEBUG = True
TEMPLATE_DEBUG = DEBUG

# Database config
DATABASES = {
    'default': {
        'ENGINE':
        'django.db.backends.sqlite3',  # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': unixy_project_path(
            'dev_db.sqlite3'),  # 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.
        'PORT': '',  # Set to empty string for default. Not used with sqlite3.
    }
}

# Site scraping config
SCRAPER_USERNAME = '******'
SCRAPER_PASSWORD = '******'

# OPTIONAL SETTINGS -----------------------------------------------------------
# The settings that follow are mostly for production enviroments.
# You probably only need to worry about these if you're testing specific