Re: Image upload problem with UserProfile and my form

2014-08-04 Thread Collin Anderson
Set MEDIA_URL to '/media/' or something. Then add static() to your urls.py if you haven't. https://docs.djangoproject.com/en/dev/howto/static-files/#serving-files-uploaded-by-a-user-during-development -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: Image upload problem with UserProfile and my form

2014-08-03 Thread Pepsodent Cola
Hi, No luck the image still points to the wrong location. There was a link however when clicked it says this. Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000*/accounts/profile/* 1406912993_56_tumblr_m5xo9h5X3E1qgfdhto1_500.gif I'm suspecting it's how my url confs ar

Re: Image upload problem with UserProfile and my form

2014-08-01 Thread Collin Anderson
This looks wrong to me: > > > so maybe, rearranging your code a bit: {% if form.avatar %} {% endif %} {{ form.avatar }} -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Image upload problem with UserProfile and my form

2014-08-01 Thread Pepsodent Cola
Hi, I have problems displaying my avatar image which I have uploaded from my forms page. The browser source code seem to say that it cannot find the correct path to my uploaded image file. Which file or files do I need to fix? Profilehttp://127.0.0.1:8000/accounts/profile/>" method="p