Re: Static Folder not loading

2021-02-02 Thread Gabriel Araya Garcia
You are not saying if you trying it in local host or web server, because
the statics folder is in different location (I have some program in
PythonAnywhere).
Send your answer to gabrielaraya2...@gmail.com and I will give you the
respective configurations that I have in SETTINGS.PY
Regards.

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




El jue, 28 ene 2021 a las 15:17, hari49pf () escribió:

> Hi,
>
> I am trying to load static file to my project its not loading,
> I have changed the path of static in settting.py still its not loading
> static file.
> tryed to check the file is loading by using
> *manage.py findstatic test.css*
> PLZ help
>
>
> Regards,
> Harish.B
>
>
> --
> 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
> https://groups.google.com/d/msgid/django-users/126cf6ff-27f7-4c1b-af5e-17b619b311cfn%40googlegroups.com
> 
> .
>

-- 
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 
https://groups.google.com/d/msgid/django-users/CAKVvSDD-VX54sZHaYaf3VfDh1dB_J0bf%3DL1CwZfSUn2owihhDg%40mail.gmail.com.


Re: Static Folder not loading

2021-02-02 Thread Abubakar Ibrahim Baiwa
If you're using django's lightweight server, make sure DEBUG=True

On Sun, 31 Jan 2021, 6:25 pm hari49pf,  wrote:

> Bair me, I am new to group
>
> On Sunday, January 31, 2021 at 10:46:40 PM UTC+5:30 hari49pf wrote:
>
>> Its returning
>>
>> *no matching file found for test.css*
>>
>>
>> *Regards,*
>>
>> *Harish.B*
>>
>>
>> On Friday, January 29, 2021 at 8:26:14 PM UTC+5:30 ule...@gmail.com
>> wrote:
>>
>>>
>>> try
>>> *./manage.py findstatic test.css*
>>> Op vrijdag 29 januari 2021 om 15:52:44 UTC+1 schreef fcip...@gmail.com:
>>>
 I’m sending from my phone so it won’t have markdown.

 It looks like your not defining all of them properly. Put a static
 folder you’ll manually in trydjango/trydjango. This will be where
 Staticfiles_dirs gathers the files. Then static_root will be where is
 collectstatic will store them. Static_URL is important as it will be the
 file name target it will look for when running collectstatic.

 Try:

 STATIC_ROOT = os.path.join(BASE_DIR, ‘static’)
 STATIC_URL = ‘/static/‘
 STATICFILES_DIRS = [ os.path.join(BASE_DIR, ‘trydjango/static’)



 Best Regards,
 Frank Cipolone

 M: (856) 993-4819
 E: fcip...@gmail.com

 On Jan 29, 2021, at 6:23 AM, hari49pf  wrote:

 

 


 above is a screenshot and path for the static folder.
 On Friday, January 29, 2021 at 3:05:06 AM UTC+5:30 fcip...@gmail.com
 wrote:

> Whats your STATIC_DIRS, STATIC_PATH, and STATIC_URL and what it the
> tree to the folder your static is in?
>
> > On Jan 28, 2021, at 1:26 PM, hari49pf  wrote:
> >
> > Yes, i did it created a folder with css & other files, but no use.
> >
> > On 28/01/21 11:49 pm, Larry Martell wrote:
> >> On Thu, Jan 28, 2021 at 10:16 AM hari49pf 
> wrote:
> >>> Hi,
> >>>
> >>> I am trying to load static file to my project its not loading,
> >>> I have changed the path of static in settting.py still its not
> loading static file.
> >>> tryed to check the file is loading by using
> >>> manage.py findstatic test.css
> >>> PLZ help
> >> Have you run collectstatic?
> >>
> >
> > --
> > 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/928aaad3-3f02-45e4-91fa-d3a56da673db%40gmail.com.
>
>
> --
 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/ceb2424c-870d-4467-a29a-7337d0471283n%40googlegroups.com
 
 .
 

 --
> 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
> https://groups.google.com/d/msgid/django-users/8056c092-ae57-4478-9bfe-306025bfbd15n%40googlegroups.com
> 
> .
>

-- 
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 
https://groups.google.com/d/msgid/django-users/CAPtJsRiHSBhTRmK33xHDU6HL%2BC6gKazUOP5jSd2DNfuJXrf3zg%40mail.gmail.com.


Re: Static Folder not loading

2021-01-31 Thread hari49pf
Bair me, I am new to group

On Sunday, January 31, 2021 at 10:46:40 PM UTC+5:30 hari49pf wrote:

> Its returning
>
> *no matching file found for test.css*
>
>
> *Regards,*
>
> *Harish.B*
>
>
> On Friday, January 29, 2021 at 8:26:14 PM UTC+5:30 ule...@gmail.com wrote:
>
>>
>> try
>> *./manage.py findstatic test.css*
>> Op vrijdag 29 januari 2021 om 15:52:44 UTC+1 schreef fcip...@gmail.com:
>>
>>> I’m sending from my phone so it won’t have markdown.
>>>
>>> It looks like your not defining all of them properly. Put a static 
>>> folder you’ll manually in trydjango/trydjango. This will be where 
>>> Staticfiles_dirs gathers the files. Then static_root will be where is 
>>> collectstatic will store them. Static_URL is important as it will be the 
>>> file name target it will look for when running collectstatic.
>>>
>>> Try:
>>>
>>> STATIC_ROOT = os.path.join(BASE_DIR, ‘static’)
>>> STATIC_URL = ‘/static/‘
>>> STATICFILES_DIRS = [ os.path.join(BASE_DIR, ‘trydjango/static’)
>>>
>>>
>>>
>>> Best Regards,
>>> Frank Cipolone
>>>
>>> M: (856) 993-4819
>>> E: fcip...@gmail.com
>>>
>>> On Jan 29, 2021, at 6:23 AM, hari49pf  wrote:
>>>
>>> 
>>>
>>> 
>>>
>>>
>>> above is a screenshot and path for the static folder.  
>>> On Friday, January 29, 2021 at 3:05:06 AM UTC+5:30 fcip...@gmail.com 
>>> wrote:
>>>
 Whats your STATIC_DIRS, STATIC_PATH, and STATIC_URL and what it the 
 tree to the folder your static is in? 

 > On Jan 28, 2021, at 1:26 PM, hari49pf  wrote: 
 > 
 > Yes, i did it created a folder with css & other files, but no use. 
 > 
 > On 28/01/21 11:49 pm, Larry Martell wrote: 
 >> On Thu, Jan 28, 2021 at 10:16 AM hari49pf  
 wrote: 
 >>> Hi, 
 >>> 
 >>> I am trying to load static file to my project its not loading, 
 >>> I have changed the path of static in settting.py still its not 
 loading static file. 
 >>> tryed to check the file is loading by using 
 >>> manage.py findstatic test.css 
 >>> PLZ help 
 >> Have you run collectstatic? 
 >> 
 > 
 > -- 
 > 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/928aaad3-3f02-45e4-91fa-d3a56da673db%40gmail.com.
  


 -- 
>>> 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/ceb2424c-870d-4467-a29a-7337d0471283n%40googlegroups.com
>>>  
>>> 
>>> .
>>> 
>>>
>>>

-- 
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 
https://groups.google.com/d/msgid/django-users/8056c092-ae57-4478-9bfe-306025bfbd15n%40googlegroups.com.


Re: Static Folder not loading

2021-01-31 Thread hari49pf
Its returning

*no matching file found for test.css*


*Regards,*

*Harish.B*


On Friday, January 29, 2021 at 8:26:14 PM UTC+5:30 ule...@gmail.com wrote:

>
> try
> *./manage.py findstatic test.css*
> Op vrijdag 29 januari 2021 om 15:52:44 UTC+1 schreef fcip...@gmail.com:
>
>> I’m sending from my phone so it won’t have markdown.
>>
>> It looks like your not defining all of them properly. Put a static folder 
>> you’ll manually in trydjango/trydjango. This will be where Staticfiles_dirs 
>> gathers the files. Then static_root will be where is collectstatic will 
>> store them. Static_URL is important as it will be the file name target it 
>> will look for when running collectstatic.
>>
>> Try:
>>
>> STATIC_ROOT = os.path.join(BASE_DIR, ‘static’)
>> STATIC_URL = ‘/static/‘
>> STATICFILES_DIRS = [ os.path.join(BASE_DIR, ‘trydjango/static’)
>>
>>
>>
>> Best Regards,
>> Frank Cipolone
>>
>> M: (856) 993-4819
>> E: fcip...@gmail.com
>>
>> On Jan 29, 2021, at 6:23 AM, hari49pf  wrote:
>>
>> 
>>
>> 
>>
>>
>> above is a screenshot and path for the static folder.  
>> On Friday, January 29, 2021 at 3:05:06 AM UTC+5:30 fcip...@gmail.com 
>> wrote:
>>
>>> Whats your STATIC_DIRS, STATIC_PATH, and STATIC_URL and what it the tree 
>>> to the folder your static is in? 
>>>
>>> > On Jan 28, 2021, at 1:26 PM, hari49pf  wrote: 
>>> > 
>>> > Yes, i did it created a folder with css & other files, but no use. 
>>> > 
>>> > On 28/01/21 11:49 pm, Larry Martell wrote: 
>>> >> On Thu, Jan 28, 2021 at 10:16 AM hari49pf  wrote: 
>>> >>> Hi, 
>>> >>> 
>>> >>> I am trying to load static file to my project its not loading, 
>>> >>> I have changed the path of static in settting.py still its not 
>>> loading static file. 
>>> >>> tryed to check the file is loading by using 
>>> >>> manage.py findstatic test.css 
>>> >>> PLZ help 
>>> >> Have you run collectstatic? 
>>> >> 
>>> > 
>>> > -- 
>>> > 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/928aaad3-3f02-45e4-91fa-d3a56da673db%40gmail.com.
>>>  
>>>
>>>
>>> -- 
>> 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/ceb2424c-870d-4467-a29a-7337d0471283n%40googlegroups.com
>>  
>> 
>> .
>> 
>>
>>

-- 
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 
https://groups.google.com/d/msgid/django-users/657d90be-4191-4834-9a6a-a6d208db732en%40googlegroups.com.


Re: Static Folder not loading

2021-01-31 Thread hari49pf
runned *colletcstatic*,
there is no output.


On Thursday, January 28, 2021 at 11:51:20 PM UTC+5:30 
larry.mart...@gmail.com wrote:

> On Thu, Jan 28, 2021 at 10:16 AM hari49pf  wrote:
> >
> > Hi,
> >
> > I am trying to load static file to my project its not loading,
> > I have changed the path of static in settting.py still its not loading 
> static file.
> > tryed to check the file is loading by using
> > manage.py findstatic test.css
> > PLZ help
>
> Have you run collectstatic?
>

-- 
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 
https://groups.google.com/d/msgid/django-users/3a11ec64-ed24-4bf0-80fa-a0293b792435n%40googlegroups.com.


Re: Static Folder not loading

2021-01-29 Thread Kasper Laudrup

On 29/01/2021 15.56, ule...@gmail.com wrote:


try
/./manage.py findstatic test.css/


The user is running Windows, so I doubt that would work.

Also, what makes you think this would make a difference?

The only thing this would change as far as I can tell is that the users 
"python" command is an alias to "python2" while Django requires Python 
3. Do you think this is related to the Python version?


Kind regards,

Kasper Laudrup

--
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 
https://groups.google.com/d/msgid/django-users/5477b65a-a2af-b1e1-243a-a1fe34095266%40stacktrace.dk.


Re: Static Folder not loading

2021-01-29 Thread ule...@gmail.com

try
*./manage.py findstatic test.css*
Op vrijdag 29 januari 2021 om 15:52:44 UTC+1 schreef fcip...@gmail.com:

> I’m sending from my phone so it won’t have markdown.
>
> It looks like your not defining all of them properly. Put a static folder 
> you’ll manually in trydjango/trydjango. This will be where Staticfiles_dirs 
> gathers the files. Then static_root will be where is collectstatic will 
> store them. Static_URL is important as it will be the file name target it 
> will look for when running collectstatic.
>
> Try:
>
> STATIC_ROOT = os.path.join(BASE_DIR, ‘static’)
> STATIC_URL = ‘/static/‘
> STATICFILES_DIRS = [ os.path.join(BASE_DIR, ‘trydjango/static’)
>
>
>
> Best Regards,
> Frank Cipolone
>
> M: (856) 993-4819
> E: fcip...@gmail.com
>
> On Jan 29, 2021, at 6:23 AM, hari49pf  wrote:
>
> 
>
> 
>
>
> above is a screenshot and path for the static folder.  
> On Friday, January 29, 2021 at 3:05:06 AM UTC+5:30 fcip...@gmail.com 
> wrote:
>
>> Whats your STATIC_DIRS, STATIC_PATH, and STATIC_URL and what it the tree 
>> to the folder your static is in? 
>>
>> > On Jan 28, 2021, at 1:26 PM, hari49pf  wrote: 
>> > 
>> > Yes, i did it created a folder with css & other files, but no use. 
>> > 
>> > On 28/01/21 11:49 pm, Larry Martell wrote: 
>> >> On Thu, Jan 28, 2021 at 10:16 AM hari49pf  wrote: 
>> >>> Hi, 
>> >>> 
>> >>> I am trying to load static file to my project its not loading, 
>> >>> I have changed the path of static in settting.py still its not 
>> loading static file. 
>> >>> tryed to check the file is loading by using 
>> >>> manage.py findstatic test.css 
>> >>> PLZ help 
>> >> Have you run collectstatic? 
>> >> 
>> > 
>> > -- 
>> > 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/928aaad3-3f02-45e4-91fa-d3a56da673db%40gmail.com.
>>  
>>
>>
>> -- 
> 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/ceb2424c-870d-4467-a29a-7337d0471283n%40googlegroups.com
>  
> 
> .
> 
>
>

-- 
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 
https://groups.google.com/d/msgid/django-users/91c26895-d347-4bef-a62e-7b37d712bbe1n%40googlegroups.com.


Re: Static Folder not loading

2021-01-29 Thread Frank Cipolone
I’m sending from my phone so it won’t have markdown.

It looks like your not defining all of them properly. Put a static folder 
you’ll manually in trydjango/trydjango. This will be where Staticfiles_dirs 
gathers the files. Then static_root will be where is collectstatic will store 
them. Static_URL is important as it will be the file name target it will look 
for when running collectstatic.

Try:

STATIC_ROOT = os.path.join(BASE_DIR, ‘static’)
STATIC_URL = ‘/static/‘
STATICFILES_DIRS = [ os.path.join(BASE_DIR, ‘trydjango/static’)



Best Regards,
Frank Cipolone

M: (856) 993-4819
E: fcipol...@gmail.com

> On Jan 29, 2021, at 6:23 AM, hari49pf  wrote:
> 
> 
> 
> 
> above is a screenshot and path for the static folder.  
> On Friday, January 29, 2021 at 3:05:06 AM UTC+5:30 fcip...@gmail.com wrote:
>> Whats your STATIC_DIRS, STATIC_PATH, and STATIC_URL and what it the tree to 
>> the folder your static is in? 
>> 
>> > On Jan 28, 2021, at 1:26 PM, hari49pf  wrote: 
>> > 
>> > Yes, i did it created a folder with css & other files, but no use. 
>> > 
>> > On 28/01/21 11:49 pm, Larry Martell wrote: 
>> >> On Thu, Jan 28, 2021 at 10:16 AM hari49pf  wrote: 
>> >>> Hi, 
>> >>> 
>> >>> I am trying to load static file to my project its not loading, 
>> >>> I have changed the path of static in settting.py still its not loading 
>> >>> static file. 
>> >>> tryed to check the file is loading by using 
>> >>> manage.py findstatic test.css 
>> >>> PLZ help 
>> >> Have you run collectstatic? 
>> >> 
>> > 
>> > -- 
>> > 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/928aaad3-3f02-45e4-91fa-d3a56da673db%40gmail.com.
> 
> -- 
> 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 
> https://groups.google.com/d/msgid/django-users/ceb2424c-870d-4467-a29a-7337d0471283n%40googlegroups.com.
> 

-- 
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 
https://groups.google.com/d/msgid/django-users/9ABE99B8-C223-45ED-8608-51E68799D7F0%40gmail.com.


Re: Static Folder not loading

2021-01-28 Thread Frank Cipolone
Whats your STATIC_DIRS, STATIC_PATH, and STATIC_URL and what it the tree to the 
folder your static is in?

> On Jan 28, 2021, at 1:26 PM, hari49pf  wrote:
> 
> Yes, i did it created a folder with css & other files, but no use.
> 
> On 28/01/21 11:49 pm, Larry Martell wrote:
>> On Thu, Jan 28, 2021 at 10:16 AM hari49pf  wrote:
>>> Hi,
>>> 
>>> I am trying to load static file to my project its not loading,
>>> I have changed the path of static in settting.py still its not loading 
>>> static file.
>>> tryed to check the file is loading by using
>>> manage.py findstatic test.css
>>> PLZ help
>> Have you run collectstatic?
>> 
> 
> -- 
> 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 
> https://groups.google.com/d/msgid/django-users/928aaad3-3f02-45e4-91fa-d3a56da673db%40gmail.com.

-- 
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 
https://groups.google.com/d/msgid/django-users/D402D4CC-2634-4E68-897F-CB4D9BB7600E%40gmail.com.


Re: Static Folder not loading

2021-01-28 Thread hari49pf

Yes, i did it created a folder with css & other files, but no use.

On 28/01/21 11:49 pm, Larry Martell wrote:

On Thu, Jan 28, 2021 at 10:16 AM hari49pf  wrote:

Hi,

I am trying to load static file to my project its not loading,
I have changed the path of static in settting.py still its not loading static 
file.
tryed to check the file is loading by using
manage.py findstatic test.css
PLZ help

Have you run collectstatic?



--
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 
https://groups.google.com/d/msgid/django-users/928aaad3-3f02-45e4-91fa-d3a56da673db%40gmail.com.


Re: Static Folder not loading

2021-01-28 Thread Larry Martell
On Thu, Jan 28, 2021 at 10:16 AM hari49pf  wrote:
>
> Hi,
>
> I am trying to load static file to my project its not loading,
> I have changed the path of static in settting.py still its not loading static 
> file.
> tryed to check the file is loading by using
> manage.py findstatic test.css
> PLZ help

Have you run collectstatic?

-- 
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 
https://groups.google.com/d/msgid/django-users/CACwCsY6m3eTzG_wBrTCUYXE2aYNEWzM6gt-R1Dj31XDtH8opKA%40mail.gmail.com.


Static Folder not loading

2021-01-28 Thread hari49pf
Hi, 

I am trying to load static file to my project its not loading,
I have changed the path of static in settting.py still its not loading 
static file.
tryed to check the file is loading by using 
*manage.py findstatic test.css*
PLZ help


Regards,
Harish.B


-- 
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 
https://groups.google.com/d/msgid/django-users/126cf6ff-27f7-4c1b-af5e-17b619b311cfn%40googlegroups.com.