I can not link my statics, everything looks good but with no styling, my setting.py arrange the roots like this:
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
PROJECT_ROOT=os.path.dirname(os.path.abspath(__file__))
STATIC_ROOT=os.path.join(PROJECT_ROOT,'static')
MEDIA_ROOT=os.path.join(STATIC_ROOT,'media')
MEDIA_URL='/media/'
and when i run the command: python manage.py collectstatic, i got the erroe said:
File "manage.py", line 14
) from exc
^
SyntaxError: invalid syntax
when i go to manage.py file the line 14 says:
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Quotee.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
now, the issues is the web app could not reach it's statics, could you help with that please.
[edit by admin: formatting]