diff --git a/django_rest_api/.settings.py.swp b/django_rest_api/.settings.py.swp deleted file mode 100644 index aeb72ee..0000000 Binary files a/django_rest_api/.settings.py.swp and /dev/null differ diff --git a/django_rest_api/__pycache__/settings.cpython-39.pyc b/django_rest_api/__pycache__/settings.cpython-39.pyc index 0d59d3e..c67c955 100644 Binary files a/django_rest_api/__pycache__/settings.cpython-39.pyc and b/django_rest_api/__pycache__/settings.cpython-39.pyc differ diff --git a/django_rest_api/settings.py b/django_rest_api/settings.py index d7f5f9d..937f341 100644 --- a/django_rest_api/settings.py +++ b/django_rest_api/settings.py @@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/ from pathlib import Path import dj_database_url # add this +import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -130,3 +131,4 @@ USE_TZ = True # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' +STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')