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
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
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
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
4 matches
Mail list logo