Tuesday, July 30, 2013

Re: background image

Thank you. I will try as you told me. Just one more question, how do i create different static directory for each user?


On Tue, Jul 30, 2013 at 5:37 PM, Christian Erhardt <christian.erhardt@mojo2k.de> wrote:
Generally speaking you could extend the users profile and add a field to it. Then you could store the image during registration or when a user updates his settings. On the page where you want to show the image you could check for a image in the profile and show it.

I started my project with pinax, which already hat the app django-user-accounts included, i then created a custom profile for my users (something like here: http://blog.tivix.com/2012/01/06/extending-user-model-in-django/). Now you have to adjust the forms for registering and modifying the user settings, so the user can set the fields you added to the profile (somewhat like this: http://dewful.com/?p=70). The form must contain a file upload field where the user can upload the image. Then i would save the image somewhere on the server, where you can access it from an template. 

Sorry, that i can not provide a step by step solution, but i hope i could push you in the right direction.

regards Christian

Am Dienstag, 30. Juli 2013 08:07:43 UTC+2 schrieb Kakar:
Hello,
What do I do to let user upload their own images, and as use it as their profile's background.
I am out of clue. Please advice me.

Thank you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment