Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » CSS not rendering on local server development [RSS Feed]

#1 Oct. 3, 2012 04:22:48

Jim W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

CSS not rendering on local server development


Greetings,

I am at a loss as to why local server is unable to render the css and js
files. I have the static_dirs setting correct and the href link to the
files is correct, and the html file is rendering yet when I track what is
going on with Chrome Dev Tools it is unable to find the CSS and JS files
returning an Internal Server Error 500

Any idea what may be going on ?

Thanks for any advice.

Jim
Fanbouts.com

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Oct. 3, 2012 05:07:37

JJ Z.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

CSS not rendering on local server development


Off the top of my head I forget what kinks I ran into when trying to get
CSS to load on my development server. I'll try and come up with things I
remembered and let you know if I do.

One thing in Chrome that I tend to have to do (probably why firefox is
better in this case) is I have to clear my browsing data. That way the
files propagate through to my browser. Here's how to do that:http://www.wikihow.com/Clear-Your-Browser's-Cache#Chrome_v10_.2B

Did you run python manage.py collectstatic? and restart your local
development server with python manage.py runserver?

Cheers,

JJ

On Tuesday, October 2, 2012 11:23:11 PM UTC-4, Jim Wombles wrote:
>
> Greetings,
>
> I am at a loss as to why local server is unable to render the css and js
> files. I have the static_dirs setting correct and the href link to the
> files is correct, and the html file is rendering yet when I track what is
> going on with Chrome Dev Tools it is unable to find the CSS and JS files
> returning an Internal Server Error 500
>
> Any idea what may be going on ?
>
> Thanks for any advice.
>
> Jim
> Fanbouts.com
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visithttps://groups.google.com/d/msg/django-users/-/_yzlMm95zPkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Oct. 3, 2012 05:24:12

Jim W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

CSS not rendering on local server development


Well, your suggestion actually caused an error that helped me debug what
was going on. Silly mistake of forgetting the comma at the end of the
tuple in staticfiles_dirs. Cheers to you.

On Wednesday, October 3, 2012 12:07:33 AM UTC-4, JJ Zolper wrote:
>
> Off the top of my head I forget what kinks I ran into when trying to get
> CSS to load on my development server. I'll try and come up with things I
> remembered and let you know if I do.
>
> One thing in Chrome that I tend to have to do (probably why firefox is
> better in this case) is I have to clear my browsing data. That way the
> files propagate through to my browser. Here's how to do that:
>
>http://www.wikihow.com/Clear-Your-Browser's-Cache#Chrome_v10_.2B
>
> Did you run python manage.py collectstatic? and restart your local
> development server with python manage.py runserver?
>
> Cheers,
>
> JJ
>
> On Tuesday, October 2, 2012 11:23:11 PM UTC-4, Jim Wombles wrote:
>>
>> Greetings,
>>
>> I am at a loss as to why local server is unable to render the css and js
>> files. I have the static_dirs setting correct and the href link to the
>> files is correct, and the html file is rendering yet when I track what is
>> going on with Chrome Dev Tools it is unable to find the CSS and JS files
>> returning an Internal Server Error 500
>>
>> Any idea what may be going on ?
>>
>> Thanks for any advice.
>>
>> Jim
>> Fanbouts.com
>>
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visithttps://groups.google.com/d/msg/django-users/-/qEhzFOSJra0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Aug. 7, 2017 02:01:00

Moisesfew
Registered: 2017-03-16
Posts: 2
Reputation: +  0  -
Profile   Send e-mail  

CSS not rendering on local server development

This post is being moderated

Offline

  • Root
  • » Django
  • » CSS not rendering on local server development [RSS Feed]

Board footer

Moderator control

Enjoy the 25th of September
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support