I have learn the tutorial 6 static file for html & css. However the web-site fail to display the intended file. Why & how to fixed it!

19 views
Skip to first unread message

Loh Boon How

unread,
Jan 17, 2021, 8:01:02 AM1/17/21
to Django users
Capture - index file.JPGCapture - css file.JPGCapture - web view.JPG

Kasper Laudrup

unread,
Jan 17, 2021, 11:44:12 AM1/17/21
to django...@googlegroups.com
Hi Loh,

Revisit part one of the tutorial again:

https://docs.djangoproject.com/en/3.1/intro/tutorial01/#write-your-first-view

The "Page not found?" box will tell you what is wrong, but it might help
you to read the rest again for context.

Good luck and kind regards,

Kasper Laudrup

On 17/01/2021 14.01, Loh Boon How wrote:
> Capture - index file.JPGCapture - css file.JPGCapture - web view.JPG
>
> --
> 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
> <mailto:django-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/93d79eaf-acb7-445c-84ff-925a60b4d540n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/93d79eaf-acb7-445c-84ff-925a60b4d540n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Prashanjeet Halder

unread,
Jan 17, 2021, 12:29:38 PM1/17/21
to Django users
There are many things that might be wrong in this situation. 
1) Check the Urls.py file.
2) Check your settings.py file for the correct static URL & allowed hosts
3) Check for proper paths for every static file

Thanks,
Prashanjeet Haldar
Reply all
Reply to author
Forward
0 new messages