from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings

admin.autodiscover()
urlpatterns = patterns('',
    (r'^admin/(.*)', admin.site.root),
    (r'^', include('blangoblog.blango.urls')),
)

handler500 = 'blango.views.server_error'
handler404 = 'blango.views.page_not_found'

if settings.DEBUG:
    from os.path import abspath, dirname, join
    PROJECT_DIR = dirname(abspath(__file__))
    urlpatterns += patterns('',
        (r'^site-media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(PROJECT_DIR, 'media')}),
    )

from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings

admin.autodiscover()
urlpatterns = patterns('',
    (r'^admin/(.*)', admin.site.root),
    (r'^', include('blangoblog.blango.urls')),
)

handler500 = 'blango.views.server_error'
handler404 = 'blango.views.page_not_found'

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^site-media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/fiam/blog/media/'}),
    )

--- 
+++ 
@@ -12,6 +12,8 @@
 handler404 = 'blango.views.page_not_found'
 
 if settings.DEBUG:
+    from os.path import abspath, dirname, join
+    PROJECT_DIR = dirname(abspath(__file__))
     urlpatterns += patterns('',
-        (r'^site-media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/fiam/blog/media/'}),
+        (r'^site-media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(PROJECT_DIR, 'media')}),
     )
Use a relative path for serving static files in development
