Hi,
I want to give some steps to go through.
1. Try to close the server and run again.
2. Hard reload the page using ctrl+shift+r and check the console for any errors like css file not found.
3. Check whether the file is linking properly to the correct location in static folder.
All the best
On Mon, Jun 29, 2020 at 3:22 PM Avi shah <getavi4@gmail.com> wrote:
I have imported all my files that is css , js and webfonts and i have listed it in my settings.py as this STATIC_ROOT = os.path.join(BASE_DIR, 'static')--And then and i aslo used the command python manage.py collectstatic And after that i created a base.html and it looks like this :STATIC_URL = '/static/'STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]{%load static %}<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- Font Awesome --><link rel="stylesheet" href="{% static 'css/all.css' %}"><!-- Bootstrap --><link rel="stylesheet" href="{% static 'css/bootstrap.css' %}"><!-- Custom --><link rel="stylesheet" href="{% static 'css/style.css' %}"><!-- Lightbox --><link rel="stylesheet" href="{% static 'css/lightbox.min.css' %}"><title>Rt Real Estate</title></head>And even after this my css is not showing in my project , it is not getting applied and i would like you to take a look into my code over a zoom call or something ,becuase I'm really new to django framenwork and i have no one to help me out on this one ,Please help me out , i can arrange a google meet or a zoom meeting so that you can review my whole code and point out my mistakes
On Monday, June 29, 2020 at 2:35:07 PM UTC+5:30, Karan Sahu wrote:Hi,Karan here, I can help you on this. Let me know more issues apart from this will resolve all issues?Best,KOn Mon, Jun 29, 2020 at 2:04 PM 'Ade Enga' via Django users <django...@googlegroups.com> wrote:Try adding this to your project's settings.py file (at the bottom):--STATIC_URL = '/static/'STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)
On Saturday, 27 June 2020 16:55:22 UTC+1, Avi shah wrote:Hi my name is Avi
Just finished a course from Udemy on django. Unable to import HTML and CSS to new project
Pls guide me
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4b74061c-8e14-459b-ac9f-596b850592ceo%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6993b8ba-78e1-4cf1-b11c-d22ba13333c1o%40googlegroups.com.
Thanks and Regards
J. Ranga Bharath
cell: 9110334114
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m317gqsw20BeqG617eH2o%2BS1WQeA-1kedGFfTOGOEJnbZ_w%40mail.gmail.com.
No comments:
Post a Comment