gm-148: modified settings, added missing migration

This commit is contained in:
Anatoly 2019-10-02 10:34:17 +03:00
parent b31e71d4ef
commit 3234a71cde
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 2.2.4 on 2019-10-02 07:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('timetable', '0002_auto_20190919_1124'),
]
operations = [
migrations.AlterModelOptions(
name='timetable',
options={'ordering': ['weekday'], 'verbose_name': 'Timetable', 'verbose_name_plural': 'Timetables'},
),
]

View File

@ -453,4 +453,6 @@ STATICFILES_DIRS = (
os.path.join(PROJECT_ROOT, 'static'),
)
# MEDIA
MEDIA_LOCATION = 'media'

View File

@ -4,22 +4,28 @@ import sys
ALLOWED_HOSTS = ['*', ]
SEND_SMS = False
SMS_CODE_SHOW = True
USE_CELERY = False
SCHEMA_URI = 'http'
DEFAULT_SUBDOMAIN = 'www'
SITE_DOMAIN_URI = 'testserver.com:8000'
DOMAIN_URI = '0.0.0.0:8000'
# CELERY
BROKER_URL = 'amqp://rabbitmq:5672'
CELERY_RESULT_BACKEND = BROKER_URL
CELERY_BROKER_URL = BROKER_URL
MEDIA_ROOT = os.path.join(PUBLIC_ROOT, MEDIA_LOCATION)
# MEDIA
MEDIA_URL = f'{SCHEMA_URI}://{DOMAIN_URI}/{MEDIA_LOCATION}/'
MEDIA_ROOT = os.path.join(PUBLIC_ROOT, MEDIA_LOCATION)
# LOGGING
LOGGING = {