Revision history [back]
i am not so sure this is the answer, but give it a try
there is a stackoverflow post regarding gunicorn serving statics
http://stackoverflow.com/questions/10862259/can-django-run-on-gunicorn-alone-no-apache-or-nginx
it says:
urlpatterns = patterns('',
# ... the rest of your URLconf goes here ...
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
and the askbot code says
10
11 urlpatterns = patterns('',
12 (r'%s' % settings.ASKBOT_URL, include('askbot.urls')),
13 (r'^admin/', include(admin.site.urls)),
14 #(r'^cache/', include('keyedcache.urls')), - broken views disable for now
15 (r'^settings/', include('askbot.deps.livesettings.urls')),16 (r'^followit/', include('followit.urls')),
17 (r'^robots.txt$', include('robots.urls')),
18 url( # TODO: replace with django.conf.urls.static ?
19 r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
20 'django.views.static.serve',
21 {'document_root': settings.MEDIA_ROOT.replace('\\','/')},
22 ),
23 ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
24
I am not a develper of askbot but the TODO there looks like some thing related. please let me know if my guess is on the spot, thx.