Re: django 1.4 : gunicorn can't find static files. settings option

2014-01-05 Thread Denis Cornehl
Hi, if you don’t have a web server available (for example on some PaaS like Heroku), you can do two things for production-ready static file serving: - use an external service like Amazon S3 (with the help of django-storages) - use dj-static, which uses an WSGI middleware to serve your static f

Re: django 1.4 : gunicorn can't find static files. settings option

2014-01-05 Thread Mahdi Mazaheri
Hi Huseyin, I have the same problem as Bo but this again did not solve my problem. This works with django webserver (runserver) but not with gunicorn. Any Ideas? Thanks in advance Mahdi On Wednesday, May 16, 2012 10:38:39 AM UTC+4:30, huseyin yilmaz wrote: > > For development, you could add thi

Re: django 1.4 : gunicorn can't find static files. settings option

2012-05-16 Thread Bolang
On 05/16/2012 01:08 PM, huseyin yilmaz wrote: For development, you could add this to main urls.py like this. (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT, 'show_indexes':True}), Thanks, It solves the problem! But for production use your web se

Re: django 1.4 : gunicorn can't find static files. settings option

2012-05-15 Thread huseyin yilmaz
For development, you could add this to main urls.py like this. (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT, 'show_indexes':True}), But for production use your web server to serve static files. At least this is how I solved it. I hope that helps. O