I have created CSS files in a folder static and currently I'm getting this error 404 when its trying to load the page and no css is being recognised.
my folders are
DEMOPROJECT
-DEMOAPP
--migrations
--templates
---DEMOAPP
-----homepage.html
----base.html
-DEMOPROJECT
--static
---css
----NavMENU.css
--settings.py
--urls.py
My terminal is this
(venv) C:\Users\jferguson\PycharmProjects\WebP1\DEMOPROJECT>
I have tried different settings that every other person has asked. None seem to be working.
THIS is in the urls.py file for static folder.
urlpatterns = [
re_path(r'^admin/', include(wagtailadmin_urls)),
re_path(r'^documents/', include(wagtaildocs_urls)),
re_path(r'', include(wagtail_urls)),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
This is in settings
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
EDIT My homepage_html has this at the top.
{% extends "../base.html" %}
{% load static %}
{% load wagtailcore_tags wagtailimages_tags %}
{% block body_class %}home{% endblock %}
{% block content %}