Re: App naming conflict? - modification of contrib.comments

2008-01-20 Thread MichaelMartinides
mod_python I'm happy now. Cheers, >>MM On Jan 20, 11:44 am, MichaelMartinides <[EMAIL PROTECTED]> wrote: > Hi all, > > I dont know where to search anymore. I copied django.contrib.comments > into my project directory and adapted it to my needs (eg email field >

App naming conflict? - modification of contrib.comments

2008-01-20 Thread MichaelMartinides
Hi all, I dont know where to search anymore. I copied django.contrib.comments into my project directory and adapted it to my needs (eg email field to freecomments, forms, import statements, etc.) When running the project with python manage runserver everything works as it should. But when runni

Re: queryset-refactor branch merge

2007-11-20 Thread MichaelMartinides
Thanks for the information! Low level worked for me :-) Keep up the good work! >>MM On Nov 20, 12:48 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-11-19 at 08:50 -0800, MichaelMartinides wrote: > > Hi James, > > > I entirely understand your po

Re: queryset-refactor branch merge

2007-11-19 Thread MichaelMartinides
, >>MM On Nov 19, 4:54 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 11/19/07, MichaelMartinides <[EMAIL PROTECTED]> wrote: > > > Could anyone give me a hint when the queryset-refactor branch might be > > merged into the trunk? > > Wh

queryset-refactor branch merge

2007-11-19 Thread MichaelMartinides
Hi all, Could anyone give me a hint when the queryset-refactor branch might be merged into the trunk? I'm not good at the extra() stuff for the creation of intersection querys of manytomany fields. In the current queryset-refactor filter(...).filter(...) on the manytomany field seems to work gr

Re: Custom template tags within a textarea field

2007-09-06 Thread MichaelMartinides
On Sep 6, 9:18 pm, RajeshD <[EMAIL PROTECTED]> wrote: > On Sep 5, 12:03 pm, MichaelMartinides <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > Just to be sure. > > > If I have custom template tags within a TextAreafield of a model. I > > would do

Custom template tags within a textarea field

2007-09-05 Thread MichaelMartinides
Hi, Just to be sure. If I have custom template tags within a TextAreafield of a model. I would do something like to following: def view(request, page): p = Page.objects.get(name=page) t = Template( p.content ) content = t.render() return render_to_response('page.html', {content:content}

Re: Multi page article

2007-08-30 Thread MichaelMartinides
Ok, I somehow didnt think of this, thank a lot! Looks like the best solution also to me, I will go for this! On Aug 29, 11:10 pm, RajeshD <[EMAIL PROTECTED]> wrote: > I would second Michael's suggestion to use a page break marker. I have > used that in many instances with great succcess -- your

Multi page article

2007-08-29 Thread MichaelMartinides
Hi all, Any tips for setting up a multi-page article (ie one news story spread over several pages, box with a content list of the news story, links, etc.)? With my current knowledge I would do this: class NewsStory(models.Model): headline = ... image = ... class NewsStoryPage(models.Model):

Re: Newforms - passing form data in sessions - Trouble with ForeignKey

2007-08-03 Thread MichaelMartinides
Hi Rajesh, Thanks for your answer. Basically, I have two forms (derived from models) that I validate on two pages. On the third page I would like to present the two datasets and save the models when the user validates them by clicking submit. One model (order) has a foreignkey to the other (cu

Newforms - passing form data in sessions - Trouble with ForeignKey

2007-08-02 Thread MichaelMartinides
Dear all, I have a very simple 3 page ordering process for a small online shop. I would like to pass data from the pages via sessions. But I run into trouble when saving in sessions via clean_data and then trying to initiate a newform with the saved clean_data. This occurs only when ForeignKeys