production url, prod

This commit is contained in:
Bossányi Tibor 2020-07-24 14:31:23 +02:00
parent 5262a24c83
commit 9a422170f1
3 changed files with 7 additions and 5 deletions

View File

@ -1 +1 @@
from .dev import *
from .prod import *

View File

@ -19,17 +19,17 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
+SECRET_KEY = '9874959872==9847588jkklnkln$asdf' #os.environ['DJANGO_KEY']
SECRET_KEY = '9874959872==9847588jkklnkln$asdf' #os.environ['DJANGO_KEY']
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
+ALLOWED_HOSTS = ['62.171.188.119', 'localhost', 'andio.eu', 'aitrainer.info','aitrainer.app']
ALLOWED_HOSTS = ['62.171.188.119', 'localhost', 'andio.eu', 'aitrainer.info','aitrainer.app']
# Application definition
INSTALLED_APPS = [
#'aitrainer_backoffice',
'aitrainer_backoffice.aitrainer_backoffice',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@ -48,7 +48,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'aitrainer_backoffice.urls'
ROOT_URLCONF = 'aitrainer_backoffice.aitrainer_backoffice.urls'
TEMPLATES = [
{

View File

@ -25,3 +25,5 @@ urlpatterns = [
path('admin/', admin.site.urls),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)