diff --git a/app/YtManagerApp/appmain.py b/app/YtManagerApp/appmain.py index f8397b8..8651670 100644 --- a/app/YtManagerApp/appmain.py +++ b/app/YtManagerApp/appmain.py @@ -1,6 +1,7 @@ import logging import logging.handlers import os +import sys from django.conf import settings as dj_settings @@ -9,20 +10,29 @@ from .management.jobs.synchronize import schedule_synchronize_global from .scheduler import initialize_scheduler from django.db.utils import OperationalError + def __initialize_logger(): log_dir = os.path.join(dj_settings.DATA_DIR, 'logs') os.makedirs(log_dir, exist_ok=True) + handlers = [] + file_handler = logging.handlers.RotatingFileHandler( os.path.join(log_dir, "log.log"), maxBytes=1024 * 1024, backupCount=5 ) + handlers.append(file_handler) + + if dj_settings.DEBUG: + console_handler = logging.StreamHandler(stream=sys.stdout) + console_handler.setLevel(logging.DEBUG) + handlers.append(console_handler) logging.basicConfig( level=dj_settings.LOG_LEVEL, format=dj_settings.LOG_FORMAT, - handlers=[file_handler] + handlers=handlers ) diff --git a/app/YtManagerApp/static/YtManagerApp/css/style.css b/app/YtManagerApp/static/YtManagerApp/css/style.css index 8d36944..5c9b046 100644 --- a/app/YtManagerApp/static/YtManagerApp/css/style.css +++ b/app/YtManagerApp/static/YtManagerApp/css/style.css @@ -1,5 +1,6 @@ #main_body { - margin-bottom: 4rem; } + margin-bottom: 4rem; + margin-top: 2rem; } #main_footer { position: fixed; diff --git a/app/YtManagerApp/static/YtManagerApp/css/style.css.map b/app/YtManagerApp/static/YtManagerApp/css/style.css.map index 43d0ab3..af57370 100644 --- a/app/YtManagerApp/static/YtManagerApp/css/style.css.map +++ b/app/YtManagerApp/static/YtManagerApp/css/style.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings": "AAEA,UAAW;EACP,aAAa,EAAE,IAAI;;AAGvB,YAAa;EACT,QAAQ,EAAE,KAAK;EACf,IAAI,EAAE,CAAC;EACP,KAAK,EAAE,CAAC;EACR,MAAM,EAAE,CAAC;EACT,MAAM,EAAE,IAAI;EACZ,WAAW,EAAE,IAAI;EACjB,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AE,mCAAmC;EACtE,OAAO,EAAE,CAAC;EAAE,qFAAqF;EACjG,MAAM,EAAE,OAAO;EAAE,4BAA4B;;AAI7C,4BAAc;EACV,OAAO,EAAE,MAAM;EACf,aAAa,EAAE,KAAK;AAGpB,+BAAW;EACP,OAAO,EAAE,MAAM;AAEnB,+BAAW;EACP,SAAS,EAAE,IAAI;EACf,aAAa,EAAE,KAAK;AAExB,gCAAY;EACR,SAAS,EAAE,IAAI;EACf,aAAa,EAAE,KAAK;EAEpB,uCAAO;IACH,SAAS,EAAE,GAAG;AAGtB,iCAAa;EACT,OAAO,EAAE,YAAY;AAGzB,+BAAW;EACP,YAAY,EAAE,QAAQ;EACtB,qCAAQ;IACJ,eAAe,EAAE,IAAI;AAO7B,8BAAU;EACN,KAAK,EAAE,KAAK;AAKpB,8BAAgB;EACZ,KAAK,EAxHE,OAAO;AA0HlB,6BAAe;EACX,KAAK,EAAE,OAAO;;AAItB,WAAY;EACR,SAAS,EAAE,KAAK;EAChB,MAAM,EAAE,MAAM;;AAId,2BAAe;EACX,OAAO,EAAE,IAAI;;AAIrB,kBAAmB;EACf,MAAM,EAAE,QAAQ;EAChB,OAAO,EAAE,QAAQ;EAEjB,qBAAG;IACC,MAAM,EAAE,CAAC;;AAIjB,YAAa;EACT,OAAO,EAAE,YAAY;EACrB,aAAa,EAAE,MAAM;;AAGzB,YAAa;EACT,MAAM,EAAE,OAAO;EACf,iBAAK;IACD,OAAO,EAAE,cAAc;IACvB,SAAS,EAAE,IAAI", "sources": ["style.scss"], "names": [], "file": "style.css" diff --git a/app/YtManagerApp/static/YtManagerApp/css/style.scss b/app/YtManagerApp/static/YtManagerApp/css/style.scss index a88a682..5b14f45 100644 --- a/app/YtManagerApp/static/YtManagerApp/css/style.scss +++ b/app/YtManagerApp/static/YtManagerApp/css/style.scss @@ -2,6 +2,7 @@ $accent-color: #007bff; #main_body { margin-bottom: 4rem; + margin-top: 2rem; } #main_footer { diff --git a/app/YtManagerApp/templates/YtManagerApp/first_time_setup/step1_apikey.html b/app/YtManagerApp/templates/YtManagerApp/first_time_setup/step1_apikey.html index 9ee5997..ac5d796 100644 --- a/app/YtManagerApp/templates/YtManagerApp/first_time_setup/step1_apikey.html +++ b/app/YtManagerApp/templates/YtManagerApp/first_time_setup/step1_apikey.html @@ -8,10 +8,10 @@
This program uses the YouTube API in order to obtain information about videos, channels and playlists. - In order to access this API, YouTube requires that we register on their site and request an API key. YouTube - uses this key in order to limit the number of requests made to their platform, in order to prevent abuses.
+ To access this API, YouTube requires users to register on their site and request an API key. YouTube + uses this key to control access and limit the number of requests made to their platform, in order to prevent abuses. -To use this program, it is recommended that you create an API key for your own account. While a key +
To use this program, it is recommended, but not required, that you create an API key for your own account. While a key is already provided the developer, there is a chance that the quota limits will be reached, which will prevent this program from reaching YouTube. Follow the steps below, or press Skip to use the provided key.
@@ -59,8 +59,6 @@ {% crispy form %} - Skip - {% endblock body %} \ No newline at end of file diff --git a/app/YtManagerApp/templates/registration/register.html b/app/YtManagerApp/templates/registration/register.html index e29dcec..73f9c99 100644 --- a/app/YtManagerApp/templates/registration/register.html +++ b/app/YtManagerApp/templates/registration/register.html @@ -24,12 +24,6 @@ {% endif %} {% endif %} - {% if is_first_user %} -