Successful project on windows does not render assets on mac

47 views
Skip to first unread message

robert brook

unread,
Nov 1, 2014, 6:44:21 PM11/1/14
to django...@googlegroups.com
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


Aliane Abdelouahab

unread,
Nov 1, 2014, 6:48:45 PM11/1/14
to django...@googlegroups.com
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.

robert brook

unread,
Nov 1, 2014, 7:01:42 PM11/1/14
to django...@googlegroups.com
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

Aliane Abdelouahab

unread,
Nov 1, 2014, 7:12:11 PM11/1/14
to django...@googlegroups.com
happy it worked :)
Reply all
Reply to author
Forward
0 new messages