Hello Carl Karsten! On Tue, 21 Aug 2007 10:21:06 -0500 you wrote: > > Grigory Fateyev wrote: > > Hello Carl Karsten! > > On Mon, 20 Aug 2007 14:07:39 -0500 you wrote: > > > >>> settings.py:MEDIA_ROOT = BASE_DIR+'/media/' > >>> settings.py:MEDIA_URL = '/site_media/' > >>> urls.py: (r'^site_media/(?P<path>.*)$', > >>> 'django.views.static.serve', {'document_root': > >>> settings.BASE_DIR+'/media/', 'show_indexes':True}), > >>> > >>> Revision: 5946 > >>> > >> I used your settings, no problem. > >> > >> Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) > >> > >> [EMAIL PROTECTED]:~/django/django_src$ svn up > >> Updated to revision 5988. > >> > >> Carl K > > > > That means you can add any object to Book class without problem? > > > > Thanks! > > yep. edit too. > > I suggest making a new site/project, add the model, make the few > changes to settings and run the dev server. > > Carl K
Very funny, but new project with the only class "Book" return the same error: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py" in _checklogin 51. if 'post_data' in request.POST: File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py" in _get_post 136. self._load_post_and_files() File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py" in _load_post_and_files 114. self._post, self._files = http.parse_file_upload(self.environ['wsgi.input'], self.environ) File "/usr/lib/python2.4/site-packages/django/http/__init__.py" in parse_file_upload 71. raw_message = '\r\n'.join(['%s:%s' % pair for pair in header_dict.items()]) AttributeError at /admin/books/book/add/ '_fileobject' object has no attribute 'items' -- Всего наилучшего! Григорий greg [at] anastasia [dot] ru Письмо отправлено: 2007/08/21 20:43 --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---