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

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

Recommended from Medium

Making Chrome Extension Smart By Supporting SPA websites

Showing Interaction among page, content-script, and background-script.

Learn about React JS

Javascript Coding Example : Object Quiz Example

How to build simple MERN blog app (with Redux), following “natural growth”, step by step guide —…

Is Node.js here to stay, or is it just a fad?

React-native new Architecture, what to expect ?

statically typed programming & dynamically typed languages

Promote your NFTs Free: With @NftStudio24

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

More from Medium

Introduction to Django?

Introduction to Django Framework

introduction to Django Framework

Django Queries (Part 1):

How to Use Selenium Webdriver for Writing Integration Tests for Django Apps