Category : django-static

Trying to load static files but it is showing following error. ERROR GET http://127.0.0.1:8000/static/css/user/style.css net::ERR_ABORTED 404 (Not Found) – home:25 GET http://127.0.0.1:8000/static/css/user/style.css 404 (Not Found) – home:25 GET http://127.0.0.1:8000/static/img/logo.png 404 (Not Found) – home:149 GET http://127.0.0.1:8000/static/img/logo.png 404 (Not Found) – home:1 Click here to see error image. CODE -ADMIN settings.py STATIC_URL = ‘/static/’ STATIC_ROOT = ..

Read more

Static files are not loading and also does not shows any error. CODE -ADMIN settings.py STATIC_URL = ‘/static/’ STATIC_DIR = os.path.join(BASE_DIR,"static") STATICFILES_DIRS = [ STATIC_DIR, ] STATIC_ROOT = os.path.join(BASE_DIR, ‘static_cdn’) urls.py from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path(‘admin/’, admin.site.urls), path(”, include(‘Welcome.urls’)), ..

Read more

Static files are not loading and also does not shows any error. CODE -ADMIN settings.py STATIC_URL = ‘/static/’ STATIC_DIR = os.path.join(BASE_DIR,"static") STATICFILES_DIRS = [ STATIC_DIR, ] STATIC_ROOT = os.path.join(BASE_DIR, ‘static_cdn’) urls.py from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path(‘admin/’, admin.site.urls), path(”, include(‘Welcome.urls’)), ..

Read more

Why I am receiving files can’t be found error while loading all the static files even after setting everything correctly. ERROR CODE: Admin Section – settings.py STATIC_URL = ‘/static/’ STATIC_ROOT = os.path.join(BASE_DIR, ”) – urls.py from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ ..

Read more