Please help me with the django image problem

Asked 2 years ago, Updated 2 years ago, 48 views

I want to put an image in the html file using img src="img/background.jpg What should I do because it keeps appearing on the screen as Ex-Park?

django python

2022-09-22 13:40

1 Answers

Put the myweb/templates/myweb/img folder under myweb/static and try again.

The image is not a template; it should be treated as static.


2022-09-22 13:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.