Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Shoop admin CSS #353

Closed
chessbr opened this issue Feb 14, 2016 · 4 comments
Closed

Missing Shoop admin CSS #353

chessbr opened this issue Feb 14, 2016 · 4 comments

Comments

@chessbr
Copy link
Contributor

chessbr commented Feb 14, 2016

I've installed Shoop on a Ubuntu distro (14.04) exactly as I've installed on my OSX.
The problem is that the CSS from shoop_admin are missing (error 404) as you can see:

[14/Feb/2016 23:03:09] "GET / HTTP/1.1" 200 1862
[14/Feb/2016 23:03:12] "GET /sa/ HTTP/1.1" 302 0
[14/Feb/2016 23:03:12] "GET /sa/login/?error=You%20must%20be%20logged%20in.&next=/sa/ HTTP/1.1" 200 2544
[14/Feb/2016 23:03:12] "GET /static/shoop_admin/css/base.css HTTP/1.1" 404 1685
[14/Feb/2016 23:03:12] "GET /static/shoop_admin/js/vendor.js HTTP/1.1" 304 0
[14/Feb/2016 23:03:12] "GET /static/shoop_admin/js/base.js HTTP/1.1" 304 0

The classic gray theme css are all ok:

[14/Feb/2016 23:06:01] "GET /static/xtheme/editor-injection.js HTTP/1.1" 200 7525
[14/Feb/2016 23:06:09] "GET / HTTP/1.1" 200 13380
[14/Feb/2016 23:06:09] "GET /static/classic_gray/css/style.css HTTP/1.1" 200 229080
[14/Feb/2016 23:06:09] "GET /static/classic_gray/js/classic-gray.js HTTP/1.1" 200 488696
[14/Feb/2016 23:06:09] "GET /media/filer_public_thumbnails/filer_public/bd/51/bd51356c-8e90-4e23-bfa6-eb9911e1e16a/xiurwdmffq.jpg__500x500_q85_subsampling-2.jpg HTTP/1.1" 200 20462
[14/Feb/2016 23:06:09] "GET /static/classic_gray/img/no_image.png HTTP/1.1" 304 0
[14/Feb/2016 23:06:09] "GET /static/classic_gray/fonts/fontawesome-webfont.woff2?v=4.4.0 HTTP/1.1" 200 64464

I rebuilt the resources several times, but the problem persists.
Some idea? Maybe my npm build is failing (although I've not notice any error on builds)?

@suutari-ai
Copy link
Contributor

Is this with a real web server (i.e. not django Devserver that you start with the runserver management command)?

If so, then you should run the collecstatic management command and serve the static files with your webserver.

@suutari-ai
Copy link
Contributor

For Ubuntu 14.04 you'll need to install Node.js from non-Ubuntu repository, since Ubuntu 14.04 provides a Node.js that is too old for us. It provides 0.10, but we need at least 0.12. I would suggest using the LTS version of Node.js, i.e. 4.3, see https://github.com/nodesource/distributions/blob/master/deb/setup_4.x.

@chessbr
Copy link
Contributor Author

chessbr commented Feb 16, 2016

You are right! It worked. I installed that version and ran python setup.py build_resources -c -f to clear the cache and force the rebuild of everything!
Thanks!

@suutari-ai
Copy link
Contributor

Great that it helped! Have fun Shooping, @chessbr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants