Django Load Image from Static Directory

home.html
myproject/settings.py
os.path.join(BASE_DIR, 'myapp', 'templates')
STATICFILES_DIRS = [os.path.join(BASE_DIR,'myapp/static'),]
home.html
myapp/views.py
myapp/urls.py
myproject/urls.py

--

--

--

Software Engineer, Indonesia

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Big Data Architectures — Lamdba & Kappa

Terraforming my own Gaming Instance | Blog

A Challenge to Myself

How to Deploy Keras Models to Production (Beginners Welcome!)

Git Branching and Merging Made Easy

My First Embedded System Project: LED Blink with ESP32 on Arduino IDE

Beginner’s Guide to Branch in GitHub

Ultimate Monero Mining Guide with Raspberry Pi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adi Ramadhan

Adi Ramadhan

Software Engineer, Indonesia

More from Medium

[Django] Django development notes (2) Templates

Introduction to Django Framework

introduction to Django Framework

Django Tutorial #2: URL Configuration