Saturday, November 1, 2014

Re: Successful project on windows does not render assets on mac

happy it worked :)

Le dimanche 2 novembre 2014 00:01:42 UTC+1, robert brook a écrit :
Thanks for the clue.

99% of the paths in the settings file were variables, there was one the had a windows slash in the variable path.

Once I turned that around I was all set.

Thanks



On Saturday, November 1, 2014 6:48:45 PM UTC-4, Aliane Abdelouahab wrote:
it seems that python finds media directory, but not the static one, so just use print and the variable of your static folder and look at the console where python is seeing the static folder.

Le samedi 1 novembre 2014 23:44:21 UTC+1, robert brook a écrit :
I am copying the code from one development machine(windows) to another (mac) and can see in the command window that 404 are being displayed as  the status codes.
The rendered template has very little successful formatting

Any thoughts why this is happening on mac.

Also, this development will ultimately be moving to linux.
I want to make sure this does not happen in production.

Thanks



[01/Nov/2014 17:39:24] "GET /waitlist/ HTTP/1.1" 200 12144
[01/Nov/2014 17:39:24] "GET /media/spinner.gif HTTP/1.1" 200 136
[01/Nov/2014 17:39:24] "GET /static/css/bootstrap.min.css HTTP/1.1" 404 1667
[01/Nov/2014 17:39:24] "GET /static/templates/starter-template.css HTTP/1.1" 404 1694
[01/Nov/2014 17:39:24] "GET /static/assets/js/ie-emulation-modes-warning.js HTTP/1.1" 404 1721
[01/Nov/2014 17:39:24] "GET /static/js/bootstrap.min.js HTTP/1.1" 404 1661
[01/Nov/2014 17:39:24] "GET /static/assets/js/ie10-viewport-bug-workaround.js HTTP/1.1" 404 1727
[01/Nov/2014 17:39:24] "GET /static/assets/js/ajax_get.js HTTP/1.1" 404 1667
[01/Nov/2014 17:39:24] "GET /media/spinner.gif HTTP/1.1" 200 136
[01/Nov/2014 17:39:24] "GET /static/js/bootstrap.min.js HTTP/1.1" 404 1661
[01/Nov/2014 17:39:24] "GET /static/assets/js/ie10-viewport-bug-workaround.js HTTP/1.1" 404 1727
[01/Nov/2014 17:39:24] "GET /static/assets/js/ajax_get.js HTTP/1.1" 404 1667


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d3685e44-a827-42af-9bbb-a6739cb8dc6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment