On Feb 5, 10:01 pm, Dj Gilcrease <digitalx...@gmail.com> wrote: [CUT] > http://dpaste.com/hold/155132/ > > That should do it Thanks a lot, I was thinking of getting that path in a couple of ways that are way less 'pythonic' and elegant then your proposed solution. instance.gallery.dir and a function does the trick.
If someone else would find it of use, just add the filename to the path like: def _get_photo_upload_to(instance, filename): #return os.path.abspath(instance.galleria.dir + 'foto').replace('\ \', '/') return (instance.galleria.dir + '/foto/' + filename ) Thanks again, eaman -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.