diff --git a/src/config/celery.py b/src/config/celery.py index 16f7b93..49df690 100644 --- a/src/config/celery.py +++ b/src/config/celery.py @@ -1,5 +1,6 @@ import os from celery import Celery +from celery.schedules import crontab os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.development") @@ -10,6 +11,6 @@ app.autodiscover_tasks() app.conf.beat_schedule = { 'send-emails': { 'task': 'send_emails', - 'schedule': 86400, + 'schedule': crontab(hour=23, minute=58), }, -} \ No newline at end of file +} \ No newline at end of file diff --git a/src/config/settings/base.py b/src/config/settings/base.py index 0f86c51..3e9c0b0 100644 --- a/src/config/settings/base.py +++ b/src/config/settings/base.py @@ -92,6 +92,4 @@ EMAIL_HOST_PASSWORD = env("EMAIL_HOST_PASSWORD") EMAIL_HOST_USER = 'series.notification@gmail.com' EMAIL_PORT = 465 EMAIL_USE_SSL = True -DEFAULT_FROM_EMAIL = EMAIL_HOST_USER - -CELERY_BROKER_URL = "amqp://guest:guest@rabbitmq:5672/" \ No newline at end of file +DEFAULT_FROM_EMAIL = EMAIL_HOST_USER \ No newline at end of file diff --git a/src/config/settings/development.py b/src/config/settings/development.py index 3534d60..eb48753 100644 --- a/src/config/settings/development.py +++ b/src/config/settings/development.py @@ -5,7 +5,7 @@ DEBUG = True ALLOWED_HOSTS = ['*'] -CSRF_TRUSTED_ORIGINS=['http://127.0.0.1:1337'] +CSRF_TRUSTED_ORIGINS=['http://127.0.0.1:8000'] DATABASES = { 'default': { diff --git a/src/config/settings/production.py b/src/config/settings/production.py index aa9b041..206f9c9 100644 --- a/src/config/settings/production.py +++ b/src/config/settings/production.py @@ -22,4 +22,6 @@ STATIC_URL = '/django_static/' STATIC_ROOT = os.path.join(os.path.dirname(os.path.dirname(BASE_DIR)), 'django_static') STATICFILES_DIRS = [ BASE_DIR / 'static' -] \ No newline at end of file +] + +CELERY_BROKER_URL = "amqp://guest:guest@rabbitmq:5672/" \ No newline at end of file diff --git a/src/series/templates/homepage.html b/src/series/templates/homepage.html index aa53556..6dd63e1 100644 --- a/src/series/templates/homepage.html +++ b/src/series/templates/homepage.html @@ -6,6 +6,7 @@ {% block content %} {% include 'components/message.html' %} + @@ -24,10 +25,10 @@
- + - +
diff --git a/src/series/templates/new_episodes.html b/src/series/templates/new_episodes.html index 49b51c7..3e45cd7 100644 --- a/src/series/templates/new_episodes.html +++ b/src/series/templates/new_episodes.html @@ -4,6 +4,7 @@ {% block title %} New Episodes of The Series {% endblock title %} {% block content %} + diff --git a/src/static/css/homepage.css b/src/static/css/homepage.css new file mode 100644 index 0000000..9f9296e --- /dev/null +++ b/src/static/css/homepage.css @@ -0,0 +1,15 @@ +@media only screen and (max-width: 510px) { + table { + font-size: 90%; + } + + .edit-icon { + width: 19px; + height: 19px; + } + + .trash-icon { + width: 21px; + height: 21px; + } +} \ No newline at end of file diff --git a/src/static/css/new_episodes.css b/src/static/css/new_episodes.css new file mode 100644 index 0000000..e5c4b5a --- /dev/null +++ b/src/static/css/new_episodes.css @@ -0,0 +1,15 @@ +@media only screen and (max-width: 510px) { + table { + font-size: 85%; + } + + .edit-icon { + width: 15px; + height: 15px; + } + + .trash-icon { + width: 17px; + height: 17px; + } +} \ No newline at end of file