Re: Image not loading

2019-09-20 Thread Joseph Emeka
How do i reference the the source correctly? On Thursday, September 19, 2019 at 4:20:58 PM UTC+1, Tosin Ayoola wrote: > > I don't know if I'm write on but u're not referencing the source of the > image wit the arc attribute, but rather u using the style attribute > > On Sep 19, 2019 16:11, "Jos

Re: Image not loading

2019-09-20 Thread onyilimba martins mclaren tochukwu
Is any of the static files coming through? -- 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+unsubscr...@googlegroups.com. To view this discussion on

Re: 401 unauthorized

2019-09-20 Thread Dahyun Yu
Do you use axios? In my case, I use like this. import axios from 'axios' const apiClient = axios.create({ baseURL: 'http://localhost:8000', headers: { 'Content-Type': 'application/json' } }) apiClient.get('/your/api/url/', { headers: { 'Authorization': 'Token ' + yourToken }

Re: Image not loading

2019-09-20 Thread Tosin Ayoola
The remaining on template are the working perfectly, a better way to troubleshoot this is to use your browser developer tools(network, console) ➕ have u tried img src="static file path" instead of img style="..." On Sep 20, 2019 09:23, "Joseph Emeka" wrote: > How do i reference the the source

Re: Image not loading

2019-09-20 Thread Joseph Emeka
img src="" paths work but the style="" does ot work. Like i said i did not design the template On Friday, September 20, 2019 at 3:08:21 PM UTC+1, Tosin Ayoola wrote: > > The remaining on template are the working perfectly, a better way to > troubleshoot this is to use your browser developer too

Re: Image not loading

2019-09-20 Thread parmeshwar deharkar
Url(‘ ‘) pass the string On Thu, 19 Sep 2019 at 7:50 PM, Joseph Emeka wrote: > The highlighted section of the code is not loading the image was the > solution > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this gro

Re: Image not loading

2019-09-20 Thread Obodoma Uzondu Vincent
use this format : style = "background-image: url ( ' {{ STATIC_URL}} images/about.jpg' )" . use this pattern to link the static files. On Thu, Sep 19, 2019 at 7:20 AM Joseph Emeka wrote: > The highlighted section of the code is not loading the image was the > solution > > -- > You received this

how to rectify this error

2019-09-20 Thread idb solutions
the server isn't running. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit ht

Re: how to rectify this error

2019-09-20 Thread Anirudh Jain
Open the DOS as administrator and then try again On Fri, 20 Sep 2019, 21:59 idb solutions, wrote: > the server isn't running. > > -- > 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

Re: Image not loading

2019-09-20 Thread Badal Raina
{% load 'static' %} At top of your html page. B. Raina On Fri, 20 Sep 2019 at 21:49, Obodoma Uzondu Vincent wrote: > use this format : style = "background-image: url ( ' {{ STATIC_URL}} > images/about.jpg' )" . use this pattern to link the static files. > > On Thu, Sep 19, 2019 at 7:20 AM Jos

Re: how to rectify this error

2019-09-20 Thread Badal Raina
run <*python manage.py makemigrations*> or <*python manage.py migration*> but ensure that you enable python environment. B. Raina On Fri, 20 Sep 2019 at 22:40, Anirudh Jain wrote: > Open the DOS as administrator and then try again > > On Fri, 20 Sep 2019, 21:59 idb solutions, > wrote: > >>

Re: reg: Issue while rendering the page

2019-09-20 Thread Badal Raina
*{% load 'static' %} *use this and make sure that* image src* path in *jinja tag* with *static* keyword *e.g * ** B. Raina On Wed, 18 Sep 2019 at 01:00, 'Amitesh Sahay' via Django users < django-users@googlegroups.com> wrote: > Below is the snippet of my project tree:: > > [image: Inline ima