diff --git a/.gitignore b/.gitignore index 85dfeaf..533938e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ djvirtual .vscode/* -*.pyc \ No newline at end of file +*.pyc + +assets/ \ No newline at end of file diff --git a/stonks/settings.py b/stonks/settings.py index 093e551..12a01ee 100644 --- a/stonks/settings.py +++ b/stonks/settings.py @@ -29,7 +29,7 @@ SECRET_KEY = '06ui(cp1ml%))$r9ay=_n6yuq+or^jmp0mqcit^a^-53#+d=wm' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True ALLOWED_HOSTS = ['*'] @@ -125,7 +125,14 @@ # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.1/howto/static-files/ -STATIC_URL = '/static/' +import mimetypes +mimetypes.add_type("text/css", ".css", True) + STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")] -STATIC_ROOT = os.path.join(BASE_DIR, "assets") \ No newline at end of file +print(f'Static files: {STATICFILES_DIRS}') + +STATIC_ROOT = os.path.join(BASE_DIR, "assets") +STATIC_URL = '/static/' + +print(f'Looking for {STATIC_URL} in {STATIC_ROOT}') \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index a042b9d..1f3005c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,7 +5,7 @@