image not showing on page

18 views
Skip to first unread message

John McClain

unread,
Apr 3, 2020, 6:09:16 AM4/3/20
to django...@googlegroups.com
html page

image.png

image.png


settings.py

image.png


any suggestions would be appreciated

--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

Andréas Kühne

unread,
Apr 3, 2020, 6:11:33 AM4/3/20
to django...@googlegroups.com
Why do you have  a ; in the src part of the img tag? I am guessing that you get a 404 now?

Regards,

Andréas


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN-hv_ocNWa2jy%3D70iLywax5fP8nC3Cjqj_Hi53%3Dq-co3XMJnw%40mail.gmail.com.

John McClain

unread,
Apr 3, 2020, 6:19:50 AM4/3/20
to django...@googlegroups.com
snap a screenshot of what you are saying

am not getting 404
am not getting any error returned at all
I simply cannot see the image

I am expecting to see the image above welcome behind a blue big, 

image.png

but this is what I am getting

image.png

Kasper Laudrup

unread,
Apr 3, 2020, 6:28:40 AM4/3/20
to django...@googlegroups.com
Hi John,

On 03/04/2020 12.18, John McClain wrote:
> snap a screenshot of what you are saying
>
> am not getting 404
> am not getting any error returned at all
> I simply cannot see the image
>

Learn to use your browsers debugging tools and read the output from the
Django server logs. That will make it much easier for you to find the
cause of your problems.

Kind regards,

Kasper Laudrup

John McClain

unread,
Apr 3, 2020, 6:33:10 AM4/3/20
to django...@googlegroups.com
genius ;-(

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Kasper Laudrup

unread,
Apr 3, 2020, 6:40:13 AM4/3/20
to django...@googlegroups.com
On 03/04/2020 12.31, John McClain wrote:
> genius ;-(
>

I'm sorry, I don't understand what that's supposed to mean?

I would assume that the log from Django or your web browsers console
would show something, but you haven't posted any output from it so how
could I know if you already had a look there?

What is the output from both logs?

Kind regards,

Kasper Laudrup

John McClain

unread,
Apr 3, 2020, 6:53:54 AM4/3/20
to django...@googlegroups.com
I mean your answer was quite derogatory and if you are not part of the solution then you are part of the problem

and for your information, I am a learner and I am trying to learn and I have spent a lot of time on the boards on StackOverflow and elsewhere including using my inspect tool inside chrome

this is coming through email message so I get a lot of other gibberish in the inspect tool

while I appreciate you may have the best of intentions by making a statement like the one you did, I would also suggest it is not helpful. My "GENIUS" statement was only pointing out the obvious which is what you stated... if I knew how to use those tools I likely wouldn't be here on this forum asking for help! So I simply am pointing out that you're the "master of the obvious" and a genius for (or smartass) for posting such a comment!

as I stated earlier

IF YOU ARE NOT PART OF THE SOLUTION YOU ARE PART OF THE PROBLEM

Please be more considerate in the future with your post, I think you have made a conclusion (or assumption) that is not fair to make. You have zero idea of what I have been doing to this point to try and resolve the problem on my own. I should not have to put up with the likes of you and your comments when I am posting requests for guidance or help (neither should anyone else for that matter)

be kind or get lost!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Kasper Laudrup

unread,
Apr 3, 2020, 8:05:48 AM4/3/20
to django...@googlegroups.com
Hi John,

On 03/04/2020 12.52, John McClain wrote:
> I mean your answer was quite derogatory and if you are not part of the
> solution then you are part of the problem
>

I'm sorry if it sounded like that. That was not my intention. I was
definitely trying to help. I don't understand which problem you are
saying I'm part of.

> and for your information, I am a learner and I am trying to learn and I
> have spent a lot of time on the boards on StackOverflow and elsewhere
> including using my inspect tool inside chrome
>

OK. How was I supposed to know that? You didn't post any output from the
inspect tool.

> this is coming through email message so I get a lot of other gibberish
> in the inspect tool
>

Maybe some of that gibberish would help point out where your problem is?
I'm guessing there's a 404 hidden somewhere there.

> while I appreciate you may have the best of intentions by making a
> statement like the one you did, I would also suggest it is not helpful.
> My "GENIUS" statement was only pointing out the obvious which is what
> you stated... if I knew how to use those tools I likely wouldn't be here
> on this forum asking for help! So I simply am pointing out that you're
> the "master of the obvious" and a genius for (or smartass) for posting
> such a comment!
>

I'm not sure I understand. Do you know how to look in the logs or don't you?

Maybe writing something like "I already know how to use the Chrome
inspect tools, but I'm not sure what to look for. There's a lot of
gibberish there" would have been a bit more constructive than simply
calling me "genius".

> as I stated earlier
>
> IF YOU ARE NOT PART OF THE SOLUTION YOU ARE PART OF THE PROBLEM
>

I'm still not sure which problem I'm part of. I definitely cannot see
I'm part of your problem getting an image to display on your web page,
so that cannot be it.

> Please be more considerate in the future with your post, I think you
> have made a conclusion (or assumption) that is not fair to make. You
> have zero idea of what I have been doing to this point to try and
> resolve the problem on my own. I should not have to put up with the
> likes of you and your comments when I am posting requests for guidance
> or help (neither should anyone else for that matter)
>

I will try to be more considerate and I'm sorry that you read my comment
the wrong way. That was not my intention. I was trying to help you.

> be kind or get lost!
>

I cannot really see how I am the one being rude here...

Kind regards,

Kasper Laudrup

John McClain

unread,
Apr 3, 2020, 9:14:59 AM4/3/20
to django...@googlegroups.com
Kasper,

Thanks for clarifying matters...

I think you could have asked for more details or asked for me to provide those resources so you could evaluate further rather than replying the way you did.

As far as the inspector goes it is not flagging anything that is useful for this matter. As I stated the issue is related to an email auth verification process whereby the path is not working. When google grabs it the path is interrupted for some reason.

However, I have resolved the issue by removing the django path requirements and using the direct path to the was s3 location that hosts the image. I am not sure this is the best practice but it did work for me

I went from this:

style="background-image: img src="{% static 'images/image_name.png' %};"></section>  


to this:


and it worked

Keep in mind this is only a solution for dealing with the mail routing issue as I can use normal django syntax within the app itself.

Thanks for your feedback.

Cheers,

John

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Andréas Kühne

unread,
Apr 3, 2020, 10:42:47 AM4/3/20
to django...@googlegroups.com
What I stated earlier is probably your issue:

You have the following:
style="background-image: img src="{% static 'images/image_name.png' %};"></section> 

You see the ";" at the end? The path to your image is then "<static_root>images/image_name.png;" <- which is incorrect because of the extra semicolon.

I would at least start by removing that.

Regards,

Andréas


John McClain

unread,
Apr 4, 2020, 5:11:12 AM4/4/20
to django...@googlegroups.com
Hello Andreas,

You are correct that was definitely the problem. Thanks for spotting it.

Cheers,

John

Reply all
Reply to author
Forward
0 new messages