The first slash on file = meta.FileField (upload_to
="/myapps/uploads") is probably putting the file on drive C's root.
Check if you have this directory:
C:\myapps\uploads\
It bite me already :)
Anyway this is what I have:
settings.py:
MEDIA_ROOT =
'C:/Python24/Lib/site-packages/project_name/templates/project_name/web/'
MEDIA_URL = '/web/'
And on my model:
file = meta.FileField (upload_to ="files")
So files are uploaded to here:
C:/Python24/Lib/site-packages/project_name/templates/project_name/web/files/
When I use the development server, I have this on my urls.py:
urlpatterns += patterns('',
(r'^web/(?P<path>.*)$', 'django.views.static.serve',
{'document_root':
'C:/Python24/Lib/site-packages/project_name/templates/project_name/web/'}),
)
And when I use Apache I have this on httpd.conf:
<Location "/web/">
SetHandler None
</Location>
On 3/21/06, layik <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I am using:
>
> Windows xp
> Django 0.91
> Django's own development server.
>
--
Julio Nobrega - http://www.inerciasensorial.com.br
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---