Re: upload file isn't working

2011-06-27 Thread raj
How do you view the debugger? I am using webfaction hosting. Otherwise, does the code look fine? On Jun 27, 5:48 am, Malcolm Box wrote: > On 24 June 2011 17:36, raj wrote: > > > > > > > > > > > > > def upload_view(request): > >    user =

Re: upload file isn't working

2011-06-27 Thread Malcolm Box
On 24 June 2011 17:36, raj wrote: > > def upload_view(request): >user = request.user >if user.is_authenticated(): >if request.method == 'POST': >form =upload_form(request.POST, request.FILES, user) >if form.is_valid(): >

Re: upload file isn't working

2011-06-24 Thread raj
another thing is the fact that the file name isn't changing, even though I'm trying to change it. On Jun 24, 12:36 pm, raj wrote: > # models.py # > > def content_file_name(instance, filename): >     return '/'.join(['uploads', instance.user.username, 'docs', > filename]) >

upload file isn't working

2011-06-24 Thread raj
# models.py # def content_file_name(instance, filename): return '/'.join(['uploads', instance.user.username, 'docs', filename]) class upload_model(User): user = models.ForeignKey(User, related_name = 'user_upload') title = models.CharField(max_length = 50) doc =