Gallery for Django
Hi, maybe this is of use, I wrote a full-fledged gallery app for django and put a complete tutorial on my site: https://saschashideout.de/wiki/DjangoGalleryTutorial/ In there are also all needed hooks and an example for creating an ajax gallery. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Ga
Hi, maybe this is of use, I wrote a full-fledged gallery app for django and put a complete tutorial on my site: https://saschashideout.de/wiki/DjangoGalleryTutorial/ In there are also all needed hooks and an example for creating an ajax gallery. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Gallery for Django
Hi, maybe this is of use, I wrote a full-fledged gallery app for django and put a complete tutorial on my site: https://saschashideout.de/wiki/DjangoGalleryTutorial/ In there are also all needed hooks and an example for creating an ajax gallery. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Error log interpretation
Hi guys, I posted this elsewhere but if you're up for an example consider my photo app or image gallery here: https://saschashideout.de/wiki/DjangoGalleryTutorial/ I am currently working on it, but when it's finished I will upload also urls.py and views.py. --- saschashideout.de --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: ImageField upload_to Parameter Problem
And in case anyone is interested in the results (a demo django gallery application) have a look here: http://saschashideout.de/wiki/DjangoGalleryTutorial/ --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: ImageField upload_to Parameter Problem
Thanks, this is quite a good idea, the more I think about it the more I like it, because Images have only one Gallery, but I can change the gallery for every image if I want, which would lead to the problem of moving the image file from one directory to another. Your proposal seems to be the better solution. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
ImageField upload_to Parameter Problem
Hello everybody, I want to create a gallery app and I have a slight problem, my models.py code looks like this: ... class Gallery(models.Model): slug = models.SlugField(...) ... class Image(models.Model): ... gallery = models.ForeignKey(...) image = models.ImageField( upload_to=(lambda:'images/%s' % gallery.slug), ...,) ... This won't work, because the ImageField constructor wants "upload_to" to be a String and no Funtion. The Problem is, I want a dynamic image storage path, something like MEDIA_ROOT+"images/" wont work with hundrets of galleries, I need something like MEDIA_ROOT +"images/"+gallery.slug . In my Image class "gallery" is a ForeignKey, which will have the attribute "slug" at runtime, but not at model creation time, either I am doing something stupid or there is currently no way to solve this. Hopefully someone knows a solution. Sascha Peilicke -- http://saschashideout.de --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Tutorials about reST, Pygments, Docutils
Hello everybody, I just wrote some tutorials about various aspects of Django development, which I want to spread, so here is a tutorial about doing syntax highlighting with Pygments as an extension to the Django markup system. http://saschashideout.de/wiki/DjangoRestPygmentsTutorial/ And here is a more comprehensive blog model example: http://saschashideout.de/wiki/DjangoBlogTutorial/ I hope, this will be useful to somebody --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---