diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index 881731c..74710d5 100644 Binary files a/config/__pycache__/settings.cpython-311.pyc and b/config/__pycache__/settings.cpython-311.pyc differ diff --git a/config/__pycache__/urls.cpython-311.pyc b/config/__pycache__/urls.cpython-311.pyc index 42d995d..6aba626 100644 Binary files a/config/__pycache__/urls.cpython-311.pyc and b/config/__pycache__/urls.cpython-311.pyc differ diff --git a/config/settings.py b/config/settings.py index 291d043..b296e37 100644 --- a/config/settings.py +++ b/config/settings.py @@ -155,6 +155,9 @@ STATICFILES_DIRS = [ BASE_DIR / 'node_modules', ] +MEDIA_URL = '/outputs/' +MEDIA_ROOT = BASE_DIR / 'outputs' + # Email EMAIL_BACKEND = os.getenv( "EMAIL_BACKEND", @@ -179,4 +182,4 @@ if EMAIL_USE_SSL: # Default primary key field type # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field -DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' \ No newline at end of file diff --git a/config/urls.py b/config/urls.py index bcfc074..cccd18f 100644 --- a/config/urls.py +++ b/config/urls.py @@ -27,3 +27,4 @@ urlpatterns = [ if settings.DEBUG: urlpatterns += static("/assets/", document_root=settings.BASE_DIR / "assets") urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 067d2a3..6e0b0ac 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -7,6 +7,7 @@
{{ task.error_message|truncatechars:50 }}
+{{ task.error_message|truncatechars:100 }}
+ {% elif task.status == 'processing' or task.status == 'pending' %} +Processing... Please refresh in a moment.
{% endif %} {% empty %} @@ -194,6 +221,31 @@