on my dev server (laptop) I serve the MEDIA_ROOT through the normal apache localhost. I do not get django to serve them.
ie I do not do this at all: urlpatterns += patterns('', (r'^site-media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), ) pdb is very important to know. just type import pdb; pdb.set_trace() anywhere in your code and you will be thrown into the debugger. the browser will hang while you are in the debugger (in terminal/shell), which is why I suggested maybe that was why you were hanging. or do you mean : how do you do that when the code is the admin ? only if you have edited anything in django code base itself . On Tue, Jan 27, 2009 at 9:35 PM, Akhmat Safrudin <akhmat.safru...@gmail.com>wrote: > > felix wrote: > > no problem uploading using the dev server > > > > no idea. you didn't leave a pdb in your code, did you ? > > > > what is the output if any in the shell ? > i point the url in the browser to http://localhost:8000/admin/ > how to debug with pdb in admin area ? > > somat. > > -- > Stay Hungry Stay Foolish > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---