Hello,
> **
This is probably missing a slash before "static"; it should be like this:
But a better way is this:
{% load static %}
...
If you are on production rather than development, see also this:
https://djangodeployment.com/2016/11/21/how-django-static-files-work-in-production/
Regard
Hi!
Because static is a folder on the root of your website, try putting
a slash in front of static; for example,
Hope this helps. :-)
Sincerely,
Carl
Original Message
Subject: Images are not displaying
Local Time: June 16, 2017 1:44 AM
UTC Time: June 16, 2017 5:44 AM
From
If this is a production deployment, you probably need to run collectstatic
and test if static files are being served correctly - more a deployment
issue than a django matter.
But, if you are testing with 'runserver' on a development system ...
without exact knowledge of your folder structure,
Hi,
am using django 1.10 version. am unable to display images in web.
my app name -- polls
I created templates directory and i put my *home.html* over there
**
**
**
**
**
**
I created static folder and i put my image *logo.jpg* over there
In my views file I imported home.html :
*from django
4 matches
Mail list logo