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

404 cache error #40

Closed
corradio opened this issue Mar 4, 2014 · 3 comments
Closed

404 cache error #40

corradio opened this issue Mar 4, 2014 · 3 comments

Comments

@corradio
Copy link

corradio commented Mar 4, 2014

Hello,

I am getting 404 errors when running the server. It seems like the cache is not generated.

GET http://-----/static/CACHE/js/490dff075d3d.js 404 (NOT FOUND) 

Here are the logs:

2b91824cd7c8# foreman run -f=Procfile -e=conf/production.env python manage.py runserver 0.0.0.0:8000
Validating models...

0 errors found
Django version 1.4.10, using settings 'app.settings'
Development server is running at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[04/Mar/2014 18:07:18] "GET /accounts/login/?next=/services/ HTTP/1.1" 200 4591
[04/Mar/2014 18:07:18] "GET /static/CACHE/css/9e0d6607d8b0.css HTTP/1.1" 404 3390
[04/Mar/2014 18:07:18] "GET /static/CACHE/js/27b97496ae85.js HTTP/1.1" 404 3390
[04/Mar/2014 18:07:19] "GET /static/CACHE/js/490dff075d3d.js HTTP/1.1" 404 3390
[04/Mar/2014 18:07:19] "GET /static/arachnys/img/icon_48x48.png HTTP/1.1" 404 3390

Any ideas?

@dbuxton
Copy link
Contributor

dbuxton commented Mar 4, 2014

You're running in development with production settings (which enables django-compressor). You want to be running with -e conf/development.env or whatever you have locally, no?

If you look at the deployment fab script it runs ./manage.py compress as part of the build process, but otherwise you have to do this manually.

@dbuxton dbuxton closed this as completed Mar 4, 2014
@corradio
Copy link
Author

corradio commented Mar 4, 2014

great, got it working. Thanks!

@lueliu
Copy link

lueliu commented Oct 25, 2016

I have the same problem. I use "conf/development.env" ,but can not access web (error 404)

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

No branches or pull requests

3 participants