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 =
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():
>
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])
>
# 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 =
4 matches
Mail list logo