Exemple #1
0
    def handle(self, *args, **options):
        if not is_production():
            print "Dieses Kommando sollte nur auf dem Produktionsserver eingesetzt werden"
            return

        import os
        base_path = options['base_path'] or 'src/beliza/beliza'
        settings_file = '%s/%s/settings.py' % (os.getcwd(), base_path)
        print "overwriting settings file: %s" % settings_file

        fh = open(settings_file, 'w+')
        fh.write(re.sub(r'\n\s*','\n',"""# -*- coding: utf8 -*-
                                         from settings_site import *"""))
        fh.close()
Exemple #2
0
# Django settings for mysite project.

import os
from silversupport.env import is_production
from silversupport.secret import get_secret

if not is_production():
    DEBUG = True
    TEMPLATE_DEBUG = DEBUG

ADMINS = (('Ryan Shaw', '*****@*****.**'), )

DEFAULT_FROM_EMAIL = 'Ryan Shaw <*****@*****.**>'
SERVER_EMAIL = DEFAULT_FROM_EMAIL
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '******'
EMAIL_PORT = 587
EMAIL_USE_TLS = True

MANAGERS = ADMINS

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(os.environ['CONFIG_FILES'], 'mysite.db')
    }
}

# On Unix systems, a value of None will cause Django to use the same
# timezone as the operating system.
TIME_ZONE = 'US/Eastern'
Exemple #3
0
# Django settings for mysite project.

import os
from silversupport.env import is_production
from silversupport.secret import get_secret

if not is_production():
    DEBUG = True
    TEMPLATE_DEBUG = DEBUG

ADMINS = (
    ('Ryan Shaw', '*****@*****.**'),
)

DEFAULT_FROM_EMAIL = 'Ryan Shaw <*****@*****.**>'
SERVER_EMAIL = DEFAULT_FROM_EMAIL
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '******'
EMAIL_PORT = 587
EMAIL_USE_TLS = True

MANAGERS = ADMINS

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(os.environ['CONFIG_FILES'], 'mysite.db')
    }
}

# On Unix systems, a value of None will cause Django to use the same
Exemple #4
0
#!/usr/env python
# encoding: utf-8

# Django settings for Beliza project.
import os
from silversupport.env import is_production

INTERNAL_IPS = ('127.0.0.1', '213.221.87.134')

DEBUG = True
if is_production():
    DEBUG = False

# TEMPLATE_STRING_IF_INVALID = '_%s_'
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', '*****@*****.**'),
)

MANAGERS = ADMINS

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.  'NAME': os.environ['CONFIG_PG_DBNAME'],
        'NAME': os.environ['CONFIG_PG_DBNAME'],
        'USER': os.environ['CONFIG_PG_USER'],
        'PASSWORD': os.environ['CONFIG_PG_PASSWORD'],
        'HOST': os.environ['CONFIG_PG_HOST'],
        'PORT': '',
    },