I have this error message from apache 2.2 server when i try to access at mine static_media for my django project. Apache serve my project in django without static file such as css or image ...
Post the main file did use: Cartella Media : c:/python25/scripts/calculus/calculusdb/media Directori Progetto: c:/python25/scripts/calculus/ Directori File Admin Django: c:/Django-1.0.2/Django/contrib/admin/ media setting.py BASE_DIR = '%s/' % os.path.abspath(os.path.dirname(locals() ['__file__'])).replace('\\', '/') MEDIA_ROOT = BASE_DIR +'/statis_media/' MEDIA_URL = '/static_media/' ADMIN_MEDIA_PREFIX = '/media/' urls.py ....... + (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/(.*)', admin.site.root), if settings.DEBUG: urlpatterns += patterns('django.views.static', (r'^static_media/(?P<path>.*)$', 'serve', { 'document_root': 'bvvgptdb/media', 'show_indexes': True }),) httpd Apache <Location "/"> SetHandler python-program PythonPath "['C:/Python25/Scripts','C:/Python25/Scripts/ calculus'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE calculus.settings PythonDebug On </Location> Alias /static_media/ "C:/Python25/Scripts/calculus/calculus/media/" <Location "/static_media/"> SetHandler None </Location> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---