How to add static photo Link to heading

  • create static folder

in static folder, add image folder

  • modify settings.py
STATIC_DIR = os.path.join(BASE_DIR, "static")
...
STATIC_URL = '/static/'
STATICFILES_DIRS = [
	STATIC_DIR,
]
  • add jpg file to images

  • modify views.py

{% load staticfiles %}

...

<img src = "{% static "images/djangoguitar.jpg" %}">