I'm guessing you're running a development server (manage.py runserver). I'd suggest solving this as a two step process:
1) Determine if the request for the static file is actually hitting the development server or not (eg. if you're running behind a reverse proxy)
2) Fire up your debugger and walk through the codeDjango core and related apps (eg. staticfiles) is extremely well documented and easy to read. Walking through the code will get you to the source of the problem pretty quickly, and you'll probably learn a thing or two about how Django generally processes requests too, which is invaluable in the long run.
Kind Regards,
Michael Thomas
On Wed, Jun 2, 2021 at 8:16 PM sukhy gill <sukhy.gill1989@gmail.com> wrote:
--Dear frnd,I am getting stuck at same point with static with new project.May I get setting for settings.py ?RegardsOn Sat, May 29, 2021, 18:29 Chelsea Fan <allaberdi16yazhanow@gmail.com wrote:Is it working now?--On Sat, 29 May 2021, 3:40 pm lalit suthar, <sutharlalit.97@gmail.com> wrote:read this https://docs.djangoproject.com/en/2.2/intro/tutorial06/ and check how you are giving paths. Also after loading the page on your browser go to "View Page Source" and click on the CSS file link and check if the file is opening or not.--On Saturday, 29 May 2021 at 17:57:21 UTC+5:30 sukhy.g...@gmail.com wrote:Yes Sir,There was no mistake in code. Code problem was only in mail content actually code was correct as instruction given by Aniket SirRegardsOn Sat, May 29, 2021, 13:14 lalit suthar <sutharl...@gmail.com wrote:have you checked Aniket's answer?--On Saturday, 29 May 2021 at 11:09:07 UTC+5:30 sukhy.g...@gmail.com wrote:Done Sir, but not workingOn Sat, May 29, 2021, 10:50 Venu Gopal <reachme...@gmail.com wrote:In Firefox ---- Goto Preferences ---> Choose Privacy and Security ---> scroll down until you get cookies and site data --> clear dataChrome ---- Goto Settings ---> Choose Privacy and Security ---> select cookies and other site data --> select see all cookies and site data --> Remove all--On Sat, May 29, 2021 at 9:50 AM sukhy gill <sukhy.g...@gmail.com> wrote:@Venu GopalNo Sir, I don't know, how to do this.May I know Sir, how to do the same?Regards--On Sat, May 29, 2021, 09:41 Venu Gopal <reachme...@gmail.com wrote:Hi, Have you tried deleting existing cache and cookies in the browser?--On Sat, May 29, 2021 at 12:08 AM sukhy gill <sukhy.g...@gmail.com> wrote:Dear FrndsI am unable to link CSS with HTMLHTML working but CSS not working inside the .html file with the help of LINK in <head> tagI am using thefollowings:-Setting.py - STATICFILES_DIRS=[os.path.join(BASE_DIR, 'static'),]HTML- {% load static %}<Link rel="stylesheet" href="{% static 'css/syle.css %} />Regards--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3ca2aba0-a58f-4298-b248-16c51bdf90a6n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/qGMoFXNAgww/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOhYkiyqw8k5zCL1XZo9U%2BY9_JR57p55xf-%3DtFf6Fa4HVskPSw%40mail.gmail.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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ8btZave0utnYTAcrxafKes6sUZ3%2BX%2B0v1EGs-pJSF1%2BT4qxw%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/qGMoFXNAgww/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOhYkiy80sPnGJ2uJPuJODECKv3UfQxATOit%2BwNZnr%3D%2BgiuojQ%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/qGMoFXNAgww/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d9863d84-b712-4edd-bcd3-cb56e56d93e2n%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/6270c1f5-a1d9-4904-a5ed-85e21030b894n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/qGMoFXNAgww/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAJwZnde0ziuGc5LwbYDRLfHBqS6ywB8TaWN9T5VMy1swYGe%3DJw%40mail.gmail.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/CAJ8btZYjaVPUW%2BheBkr1As%2BjRZWaF-T%2BKNJoFLCUQYBRbmBWfw%40mail.gmail.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/CAEdx1fpgQD49JNGvtTpj7_7fBhOTWGAjbSvZcCUv8nJc1N_NUQ%40mail.gmail.com.
No comments:
Post a Comment