Fix static paths

This commit is contained in:
PCoder 2021-08-30 16:53:11 +05:30
parent cce3222742
commit 020cccf258
1 changed files with 4 additions and 2 deletions

View File

@ -108,9 +108,11 @@ USE_TZ = True
STATIC_ROOT = ''
STATIC_URL = '/static/'
PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
STATICFILES_DIRS = (os.path.join('static'), )
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'app/app/static')
STATIC_URL = '/static/'
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field