mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Time to move to local_settings
This commit is contained in:
parent
7d51db1226
commit
18031c40cd
2 changed files with 9 additions and 24 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ logs/*.log
|
|||
*.pycmedia/release/
|
||||
*.pyc
|
||||
media/release/*
|
||||
local_settings.py
|
||||
|
|
32
settings.py
32
settings.py
|
@ -94,30 +94,6 @@ elif STAGING:
|
|||
format='%(asctime)s %(levelname)s %(message)s',
|
||||
filename=LOG_FILE,
|
||||
filemode='w')
|
||||
elif DEV_SERVER1:
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'NAME': 'newsblur',
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'USER': 'newsblur',
|
||||
'PASSWORD': '',
|
||||
'HOST': '127.0.0.1',
|
||||
}
|
||||
}
|
||||
DATABASE_HOST = 'localhost'
|
||||
DATABASE_PORT = ''
|
||||
|
||||
# Absolute path to the directory that holds media.
|
||||
# Example: "/Users/media/media.lawrence.com/"
|
||||
MEDIA_URL = '/media/'
|
||||
DEBUG = True
|
||||
# CACHE_BACKEND = 'locmem:///'
|
||||
# CACHE_BACKEND = 'memcached://127.0.0.1:11211'
|
||||
CACHE_BACKEND = 'dummy:///'
|
||||
logging.basicConfig(level=logging.DEBUG,
|
||||
format='%(asctime)s %(levelname)s %(message)s',
|
||||
filename=LOG_FILE,
|
||||
filemode='w')
|
||||
elif DEV_SERVER2:
|
||||
DATABASES = {
|
||||
'default': {
|
||||
|
@ -291,3 +267,11 @@ DEVSERVER_MODULES = (
|
|||
'devserver.modules.profile.MemoryUseModule',
|
||||
'devserver.modules.cache.CacheSummaryModule',
|
||||
)
|
||||
|
||||
# ==================
|
||||
# = Configurations =
|
||||
# ==================
|
||||
|
||||
from local_settings import *
|
||||
|
||||
COMPRESS = not DEBUG
|
||||
|
|
Loading…
Add table
Reference in a new issue