mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
use newsblur_web instead of newsblur as directory name
This commit is contained in:
parent
1fbec54aa8
commit
2c0fd0ee2e
11 changed files with 49 additions and 7 deletions
|
@ -3,7 +3,7 @@ import os
|
|||
from celery import Celery
|
||||
|
||||
# set the default Django settings module for the 'celery' program.
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'newsblur.settings')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'newsblur_web.settings')
|
||||
|
||||
app = Celery('newsblur')
|
||||
|
|
@ -264,7 +264,7 @@ DAYS_OF_STORY_HASHES = 30
|
|||
|
||||
SUBSCRIBER_EXPIRE = 7
|
||||
|
||||
ROOT_URLCONF = 'newsblur.urls'
|
||||
ROOT_URLCONF = 'newsblur_web.urls'
|
||||
INTERNAL_IPS = ('127.0.0.1',)
|
||||
LOGGING_LOG_SQL = True
|
||||
APPEND_SLASH = False
|
||||
|
@ -288,8 +288,9 @@ else:
|
|||
# ==============
|
||||
|
||||
SUBDOMAIN_URLCONFS = {
|
||||
None: 'newsblur.urls',
|
||||
'www': 'newsblur.urls',
|
||||
None: 'newsblur_web.urls',
|
||||
'www': 'newsblur_web.urls',
|
||||
'nb': 'newsblur_web.urls',
|
||||
}
|
||||
REMOVE_WWW_FROM_DOMAIN = True
|
||||
|
||||
|
@ -576,9 +577,9 @@ S3_AVATARS_BUCKET_NAME = 'avatars.newsblur.com'
|
|||
# = Configurations =
|
||||
# ==================
|
||||
if os.getenv("DOCKERBUILD"):
|
||||
from newsblur.docker_local_settings import *
|
||||
from newsblur_web.docker_local_settings import *
|
||||
else:
|
||||
from newsblur.local_settings import *
|
||||
from newsblur_web.local_settings import *
|
||||
|
||||
if not DEBUG:
|
||||
INSTALLED_APPS += (
|
41
newsblur_web/test_settings.py
Normal file
41
newsblur_web/test_settings.py
Normal file
|
@ -0,0 +1,41 @@
|
|||
import sys
|
||||
from newsblur_web.settings import *
|
||||
import os
|
||||
# if 'test' in sys.argv:
|
||||
# DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3'
|
||||
# DATABASES['default']['OPTIONS'] = {}
|
||||
# # DATABASES['default']['NAME'] = 'nb.db'
|
||||
# # DATABASES['default']['TEST_NAME'] = 'nb2.db'
|
||||
|
||||
# DATABASES = {
|
||||
# 'default':{
|
||||
# 'ENGINE': 'django.db.backends.sqlite3',
|
||||
# 'NAME': ':memory:',
|
||||
# 'TEST_NAME': ':memory:',
|
||||
# },
|
||||
# }
|
||||
|
||||
if os.getenv("DOCKERBUILD"):
|
||||
MONGO_DB = {
|
||||
'name': 'newsblur_test',
|
||||
'host': 'db_mongo:27017'
|
||||
}
|
||||
else:
|
||||
MONGO_DB = {
|
||||
'name': 'newsblur_test',
|
||||
'host': '127.0.0.1:27017',
|
||||
}
|
||||
|
||||
MONGO_DATABASE_NAME = 'test_newsblur'
|
||||
# TEST_DATABASE_NAME = ":memory:"
|
||||
SOUTH_TESTS_MIGRATE = False
|
||||
DAYS_OF_UNREAD = 9999
|
||||
DAYS_OF_UNREAD_FREE = 9999
|
||||
TEST_DEBUG = True
|
||||
DEBUG = True
|
||||
SITE_ID = 2
|
||||
RAVEN_CLIENT = None
|
||||
# from django.db import connection
|
||||
# cursor = connection.cursor()
|
||||
# cursor.execute('PRAGMA temp_store = MEMORY;')
|
||||
# cursor.execute('PRAGMA synchronous=OFF')
|
|
@ -6,7 +6,7 @@ https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
|
|||
"""
|
||||
|
||||
import os
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "newsblur.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "newsblur_web.settings")
|
||||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
application = get_wsgi_application()
|
Loading…
Add table
Reference in a new issue