mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Cleaning unused files.
This commit is contained in:
parent
4b5510d1c1
commit
adeab1652a
5 changed files with 37 additions and 43 deletions
1
README
1
README
|
@ -1 +0,0 @@
|
|||
README.md
|
|
@ -1,26 +0,0 @@
|
|||
import os, sys
|
||||
|
||||
PRODUCTION = __file__.find('/home/conesus/newsblur') == 0
|
||||
STAGING = __file__.find('/home/conesus/stg-newsblur') == 0
|
||||
DEV_SERVER1 = __file__.find('/Users/conesus/Projects/newsblur') == 0
|
||||
DEV_SERVER2 = __file__.find('/Users/conesus/newsblur') == 0
|
||||
DEVELOPMENT = DEV_SERVER1 or DEV_SERVER2
|
||||
|
||||
if PRODUCTION:
|
||||
apache_configuration= os.path.dirname('/home/conesus/newsblur')
|
||||
sys.path.append('/home/conesus/newsblur/')
|
||||
sys.path.append('/home/conesus/newsblur/utils')
|
||||
elif STAGING:
|
||||
apache_configuration = os.path.dirname('/home/conesus/stg-newsblur')
|
||||
sys.path.append('/home/conesus/stg-newsblur/')
|
||||
sys.path.append('/home/conesus/stg-newsblur/utils')
|
||||
|
||||
project = os.path.dirname(apache_configuration)
|
||||
workspace = os.path.dirname(project)
|
||||
sys.path.append(workspace)
|
||||
|
||||
sys.path.append('/home/conesus/django/')
|
||||
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
|
||||
import django.core.handlers.wsgi
|
||||
application = django.core.handlers.wsgi.WSGIHandler()
|
53
settings.py
53
settings.py
|
@ -53,10 +53,15 @@ DEV_SERVER2 = __file__.find('/Users/conesus/newsblur') == 0
|
|||
DEVELOPMENT = DEV_SERVER1 or DEV_SERVER2
|
||||
|
||||
if PRODUCTION:
|
||||
DATABASE_ENGINE = 'mysql'
|
||||
DATABASE_NAME = 'newsblur'
|
||||
DATABASE_USER = 'newsblur'
|
||||
DATABASE_PASSWORD = ''
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'NAME': 'newsblur',
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'USER': 'newsblur',
|
||||
'PASSWORD': '',
|
||||
'HOST': 'localhost'
|
||||
}
|
||||
}
|
||||
DATABASE_HOST = 'localhost'
|
||||
DATABASE_PORT = ''
|
||||
# Absolute path to the directory that holds media.
|
||||
|
@ -70,10 +75,16 @@ if PRODUCTION:
|
|||
filemode='w')
|
||||
PREPEND_WWW = True
|
||||
elif STAGING:
|
||||
DATABASE_ENGINE = 'mysql'
|
||||
DATABASE_NAME = 'newsblur'
|
||||
DATABASE_USER = 'newsblur'
|
||||
DATABASE_PASSWORD = ''
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'NAME': 'newsblur',
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'USER': 'newsblur',
|
||||
'PASSWORD': '',
|
||||
'HOST': 'localhost',
|
||||
'HOST': 'localhost'
|
||||
}
|
||||
}
|
||||
DATABASE_HOST = 'localhost'
|
||||
DATABASE_PORT = ''
|
||||
|
||||
|
@ -87,10 +98,15 @@ elif STAGING:
|
|||
filename=LOG_FILE,
|
||||
filemode='w')
|
||||
elif DEV_SERVER1:
|
||||
DATABASE_ENGINE = 'mysql'
|
||||
DATABASE_NAME = 'newsblur'
|
||||
DATABASE_USER = 'newsblur'
|
||||
DATABASE_PASSWORD = ''
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'NAME': 'newsblur',
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'USER': 'newsblur',
|
||||
'PASSWORD': '',
|
||||
'HOST': 'localhost'
|
||||
}
|
||||
}
|
||||
DATABASE_HOST = 'localhost'
|
||||
DATABASE_PORT = ''
|
||||
|
||||
|
@ -106,10 +122,15 @@ elif DEV_SERVER1:
|
|||
filename=LOG_FILE,
|
||||
filemode='w')
|
||||
elif DEV_SERVER2:
|
||||
DATABASE_ENGINE = 'mysql'
|
||||
DATABASE_NAME = 'newsblur'
|
||||
DATABASE_USER = 'newsblur'
|
||||
DATABASE_PASSWORD = ''
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'NAME': 'newsblur',
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'USER': 'newsblur',
|
||||
'PASSWORD': '',
|
||||
'HOST': 'localhost'
|
||||
}
|
||||
}
|
||||
DATABASE_HOST = 'localhost'
|
||||
DATABASE_PORT = ''
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue