Re: django staticfiles problem

2020-10-15 Thread Chelsea Fan
thanks guys, I did it )) On Thu, Oct 15, 2020 at 9:55 PM Luis Zárate wrote: > You have a problem here > {% static '/css/base.css' %} > > the correct is > {% static 'css/base.css' %} > > Also is a bad idea set media folder in static. > take a look here

Re: django staticfiles problem

2020-10-15 Thread Luis Zárate
You have a problem here {% static '/css/base.css' %} the correct is {% static 'css/base.css' %} Also is a bad idea set media folder in static. take a look here https://docs.djangoproject.com/en/3.1/howto/static-files/ El mié., 14 oct. 2020 a las 23:05, Farai M () escribió: > Why have

Re: django staticfiles problem

2020-10-14 Thread Farai M
Why have the media url if it's point to the same dir as static .Your can just specific it's separately in it's own dir as /media/ and have /static/ .You are also missing a static root there . On Wed, Oct 14, 2020, 5:05 PM Chelsea Fan wrote: > MEDIA_URL = '/images/' > MEDIA_ROOT = BASE_DIR /

Re: django staticfiles problem

2020-10-14 Thread Chelsea Fan
MEDIA_URL = '/images/' MEDIA_ROOT = BASE_DIR / 'static/images' On Wed, Oct 14, 2020 at 2:12 PM Anh Nguyen wrote: > where is your STATIC_ROOT ? > > > On Wed, Oct 14, 2020 at 5:43 PM Chelsea Fan > wrote: > >> hello everyone, I have an issue, I can't connect css style to my >> template, but I

Re: django staticfiles problem

2020-10-14 Thread Anh Nguyen
where is your STATIC_ROOT ? On Wed, Oct 14, 2020 at 5:43 PM Chelsea Fan wrote: > hello everyone, I have an issue, I can't connect css style to my template, > but I can upload images and see it , here is my code, please help me, > thanks for attentions !!! > > STATIC_URL = '/static/' >

django staticfiles problem

2020-10-14 Thread Chelsea Fan
hello everyone, I have an issue, I can't connect css style to my template, but I can upload images and see it , here is my code, please help me, thanks for attentions !!! STATIC_URL = '/static/' STATICFILES_DIR = [BASE_DIR / 'static'] {% load static %} [image: image.png] -- You