mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
56 lines
1.2 KiB
Python
56 lines
1.2 KiB
Python
import os
|
|
|
|
DOCKERBUILD = os.getenv("DOCKERBUILD")
|
|
from newsblur_web.settings import *
|
|
|
|
DATABASES["default"]["ENGINE"] = "django.db.backends.sqlite3"
|
|
DATABASES["default"]["OPTIONS"] = {}
|
|
DATABASES["default"]["NAME"] = "nb.db"
|
|
DATABASES["default"]["TEST_NAME"] = os.path.join(BASE_DIR, "db.sqlite3.test")
|
|
|
|
|
|
# DATABASES['default'] = {
|
|
# 'NAME': 'newslur',
|
|
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
# 'USER': 'newsblur',
|
|
# 'PASSWORD': 'newsblur',
|
|
# 'HOST': 'localhost',
|
|
# }
|
|
|
|
LOGGING_CONFIG = None
|
|
|
|
# DATABASES = {
|
|
# 'default':{
|
|
# 'ENGINE': 'django.db.backends.sqlite3',
|
|
# 'NAME': ':memory:',
|
|
# 'TEST_NAME': ':memory:',
|
|
# },
|
|
# }
|
|
|
|
|
|
if DOCKERBUILD:
|
|
MONGO_PORT = 29019
|
|
MONGO_DB = {
|
|
"name": "newsblur_test",
|
|
"host": "db_mongo:29019",
|
|
}
|
|
|
|
else:
|
|
MONGO_PORT = 27017
|
|
MONGO_DB = {
|
|
"name": "newsblur_test",
|
|
"host": "127.0.0.1:27017",
|
|
}
|
|
SERVER_NAME
|
|
|
|
MONGO_DATABASE_NAME = "test_newsblur"
|
|
|
|
SOUTH_TESTS_MIGRATE = False
|
|
DAYS_OF_UNREAD = 9999
|
|
DAYS_OF_UNREAD_FREE = 9999
|
|
TEST_DEBUG = True
|
|
DEBUG = True
|
|
SITE_ID = 2
|
|
SENTRY_DSN = None
|
|
HOMEPAGE_USERNAME = "conesus"
|
|
SERVER_NAME = "test_newsblur"
|