Re: Django and CSS

2008-08-27 Thread jgomo3
I have no problem serving static content, but i'm still confused about the MEDIA_ROOT and MEDIA_URL. Why the ROOT if i have the URL? how do you actually use those variables? In production and in develpment server i havent used them, i simply serve the statics content in some virtual server for t

Re: Django and CSS

2008-08-29 Thread jgomo3
Juan Miguel: Confirm my suspects, thankyou. varikin: how i didn't think on it before, thanyou. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@go

ModelAdmin.save_model doesn't works with foreign key

2008-09-07 Thread jgomo3
Given the next example, i was expecting to see printed the new value of obj.casa and the last comment, but instead i have the new value of obj.casa but the penultimate comment. class JuegoAdmin(admin.ModelAdmin): ... def save_model(self, request, obj, form, change): obj.save()

Re: 'Django in Under a Minute' screencast, requesting feedback before v1-final is ready

2008-09-07 Thread jgomo3
On 8 sep, 11:12, "Ian Ozsvald" <[EMAIL PROTECTED]> wrote: > Hi Bedros.  I used CamTasia 5 on Windows with a pro-audio mic.  After three > years building ShowMeDo I've had plenty of time to experiment with sw and > mics. > > Thanks for the three of you pointing out how quick it was, that was (it >

FilePathField intialized with an object implementing __str__ works as model field but not the corresponding form field

2017-05-15 Thread jgomo3
I set a models.FilePathField with the path attribute as an instance of an object implementing __str__. I works well until I needed to get the corresponding Form Field. It caused the following error: TypeError: listdir: path should be string, bytes, os.PathLike, integer or None, not StringSe

Re: FilePathField intialized with an object implementing __str__ works as model field but not the corresponding form field

2017-05-16 Thread jgomo3
El martes, 16 de mayo de 2017, 5:41:20 (UTC-4), James Schneider escribió: James. Thank you a lot for your guidance ... > TBH, you may want to rethink your approach to this problem. If you are > generating paths relative to a variable, then simple concatenate the given > path and variable acc