[Feedback requested] Django Debug Toolbar: Removal of automatic setup

2016-08-19 Thread Matthias Kestenholz
Hi everyone, I wanted to solicit some feedback on the removal of automatic setup before moving forward with it. There's a pull request[1] by Jon Dufresne which removes the feature, and if anyone feels strongly about it now would be the time to speak up. The documentation encourages users to

Re: [feincms] [ANN]: FeinCMS v1.7

2013-02-27 Thread Matthias Kestenholz
On Wed, Feb 27, 2013 at 8:16 AM, Andi Albrecht <albrecht.a...@gmail.com>wrote: > Hi Matthias, > > first of all thanks for the new release and all the work (this goes to > all developers of course!). > > On Tue, Feb 26, 2013 at 10:00 PM, Matthias Kestenholz &l

[ANN]: FeinCMS v1.7

2013-02-26 Thread Matthias Kestenholz
Hello everyone This might seem like perfect timing, and nobody'll believe that it wasn't. Anway, FeinCMS v1.7 has been released and is available at the usual places. Thanks to everyone who supported this release with suggestions, prodding and/or code. Best, Matthias -- 8< --

Re: Choosing a Django-based CMS

2012-08-07 Thread Matthias Kestenholz
Hi Sean On Tue, Aug 7, 2012 at 5:52 AM, Sean O'Brian wrote: > Thanks all. > As I get, I should try both Mezzazine and FeinCMS. > May be they're have another advantages and disadvantages. > (Disclaimer: I'm one of the main developers of FeinCMS.) The best place to ask

[ANN]: FeinCMS v1.6.0

2012-06-14 Thread Matthias Kestenholz
Hello everyone FeinCMS v1.6.0 has been released this noon and is available from usual places. What is FeinCMS anyway? === FeinCMS is one of the most advanced Content Management Systems built on top of Django. FeinCMS not only includes a page module with many bundled content

[ANN]: Plata v1.1 (django-based shop no. 42)

2012-04-04 Thread Matthias Kestenholz
Hi fellow Djangonauts I'm very proud to announce the release of Plata v1.1. Plata is the BSD licensed Django-based shop by the makers of FeinCMS. (It does not have any FeinCMS-dependencies though.) Like many other shop projects such as django-shop, cartridge etc. it grew out of the frustration

Re: Query Set to search for a combination of model fields?

2012-03-16 Thread Matthias Kestenholz
On Fri, Mar 16, 2012 at 04:29, Shawn Milochik wrote: > Look at how the Q objects are being used in the example and it's clear why > that is. It's using the pipe (|) to do an "or" query. > > If you want to change how the search works you'll have to add more code: > > 1. Split

Re: Seeking sample template code for iterating nested QuerySet

2012-03-01 Thread Matthias Kestenholz
On Fri, Mar 2, 2012 at 08:04, brycenesbitt wrote: > The documentation at: > https://docs.djangoproject.com/en/1.3/topics/db/queries/ > > Speaks of "Spanning multi-valued relationships", with an QuerySet > returning all Entries (and their Blogs) where the Blog matches a

[ANN]: FeinCMS v1.5.0

2012-02-20 Thread Matthias Kestenholz
Hello everyone FeinCMS v1.5.0 has been released this noon and is available from usual places. The differences to v1.5.0.rc1 are very small, only an update of the AUTHORS file and a few fixes to the thumbnail template filters. What is FeinCMS anyway? === FeinCMS is one of

Re: [ANN]: FeinCMS v1.5.0.rc1

2012-02-16 Thread Matthias Kestenholz
On Thu, Feb 16, 2012 at 07:52, Mark Renton wrote: > Great news! Happy to see the new version comes out ASAP. However, with the > deprecate of old style patch of 3rd app URL reverse, is that means I must > rewrite views and template codes of my app to fit this upgrade? And

[ANN]: FeinCMS v1.5.0.rc1

2012-02-15 Thread Matthias Kestenholz
Hello everyone The first release candidate of FeinCMS v1.5 has just hit the streets, late as always. The release is available at the following places: PyPI: http://pypi.python.org/pypi/FeinCMS Github: https://github.com/feincms/feincms Documentation:

Re: Selecting an E-commerce Application

2012-01-16 Thread Matthias Kestenholz
On Mon, Jan 16, 2012 at 17:31, Lenz Hirsch wrote: > Servus, > > i would give plata a try because its from the creators of feincms wich > is IMO the best django based CMS. As feincms is more a "cms framework" > which ships with a very good "default implementation" i

[ANN]: FeinCMS 1.5.0.pre1

2011-11-30 Thread Matthias Kestenholz
Hello everyone I'm finally starting the release process for FeinCMS v1.5 (sorry for waiting so long). The release is available at the following places: PyPI: http://pypi.python.org/pypi/FeinCMS Github: https://github.com/feincms/feincms Documentation:

Re: Django ORM - Am I trying to do the impossible?

2011-10-21 Thread Matthias Kestenholz
On Fri, Oct 21, 2011 at 9:20 AM, Paolo wrote: > An additional requirement for assignments is to keep status history, so we > can see "assignment 1 was active mon-wed, standby thu-fri then active again" > etc. > As for the query, yes that was my initial idea but I thought it was

Re: FieldError on ManyToMany after upgrading to Django 1.3

2011-09-26 Thread Matthias Kestenholz
On Mon, Sep 26, 2011 at 12:36 PM, Matthias Kestenholz <m...@spinlock.ch> wrote: > On Mon, Sep 26, 2011 at 12:34 PM, Philip Mountifield > <pmountifi...@formac.net> wrote: >> I also have a great deal of dynamically generated models. Interestingly in >> my ca

Re: FieldError on ManyToMany after upgrading to Django 1.3

2011-09-26 Thread Matthias Kestenholz
On Mon, Sep 26, 2011 at 12:34 PM, Philip Mountifield wrote: > I also have a great deal of dynamically generated models. Interestingly in > my case I find the issue when using the development server with DEBUG = > TRUE, I've not yet tried it in deployment. > > I'll take a

Re: FieldError on ManyToMany after upgrading to Django 1.3

2011-09-26 Thread Matthias Kestenholz
Hi Philip On Fri, Sep 23, 2011 at 3:40 PM, Philip wrote: > FieldError: Cannot resolve keyword 'email_config_set' into field. > Choices are: id, name, site, type > > Any ideas/solutions/pointers/tips would be most welcome. Yes, I've seen similar problems in two sites I'm

[ANN]: FeinCMS v1.4.1 final

2011-08-16 Thread Matthias Kestenholz
Hello everyone I failed big time when creating the v1.4.0 release and created the package from the wrong version... Anyway, we're back on track now. v1.4.1 is available at the usual places with the contents v1.4.0 should have had. I'm sorry for any problems caused by this blunder. Best

[ANN]: FeinCMS v1.4.0 final

2011-08-15 Thread Matthias Kestenholz
Hello everyone FeinCMS v1.4.0 has been released this morning and is available from usual places. The differences to v1.4.0.rc1 are a small (cosmetic) bugfix and documentation updates. Please note that the official repository has been moved to the feincms organization on github and does not live

[ANN]: FeinCMS v1.4.0.rc1

2011-08-08 Thread Matthias Kestenholz
Hello everyone The first release candidate of FeinCMS v1.4 hit the streets yesterday and is available at the usual places. Please note that the official repository has been moved to the feincms organization on github and does not live in my personal account anymore. Development of 1.5 has

Re: Looking for recommendations for Custom Forms from Admin

2011-06-25 Thread Matthias Kestenholz
On Sat, Jun 25, 2011 at 3:00 PM, Venkatraman S wrote: > Hi, > > Was looking for possible django apps that help one build custom forms "on > the fly" from the admin screens. > You might want to have a look at form_designer: https://github.com/matthiask/form_designer It

Re: Best django ecommerce aplication?

2011-05-19 Thread Matthias Kestenholz
On Thu, May 19, 2011 at 1:00 AM, podio wrote: > I was thinking to migrate my page to python, I choose Django and know > need a shop aplication I was thinking in http://satchmoproject.com/. > > There some other else better? I wouldn't use the term "Better". Maybe

FeinCMS 1.3.0 final has been released!

2011-04-11 Thread Matthias Kestenholz
Hello everyone FeinCMS 1.3.0 has just been released and is available at the usual places. What is FeinCMS anyway? === FeinCMS is one of the most advanced Content Management Systems built on top of Django. FeinCMS not only includes a page module with many bundled content

[ANN]: FeinCMS 1.3 release candidate

2011-03-30 Thread Matthias Kestenholz
ease. If you still need the ability to create copies of objects, use the standard Django ``ModelAdmin.save_as`` feature. -- Matthias Kestenholz - Dipl. Umwelt-Natw. ETH - Konzept & Programmierung FEINHEIT GmbH - Molkenstrasse 21 - CH-8004 Zürich - www.feinheit.ch -- You received th

Re: Slow query. Any way to speed things up?

2011-03-29 Thread Matthias Kestenholz
On Tue, Mar 29, 2011 at 2:27 PM, Fabian Büchler wrote: > I've analyzed the query using pgAdmin and it seems the most time is being > spent with a the GroupAggregate. > This is because of so many columns being listed in the GROUP BY clause. > Creating two-column indexes

Re: Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread Matthias Kestenholz
On Wed, Mar 23, 2011 at 12:31 PM, Mika Sjöman wrote: > django-cms.org > That wasn't very helpful. He could tell it himself, but you should really read the messages you are replying to. Quoting Rehmetjan: > I am heard about Django is comes from a Newspaper group, but

[ANN]: FeinCMS 1.3 preview release

2011-03-18 Thread Matthias Kestenholz
Today is a good day for rolling another release. FeinCMS 1.3.0.pre1 was released today and is ready for testing and feedback. Please keep in mind that this isn't a final release yet. PyPI: http://pypi.python.org/pypi/FeinCMS/1.3.0.pre1 Github: https://github.com/matthiask/feincms/tree/v1.3.0.pre1

Re: Problem with FileField (file upload) and generic views

2011-03-10 Thread Matthias Kestenholz
> Any suggestions would be appreciated, TIA. Which enctype do you use when submitting the form? It does not work with the default POST enctype, you have to use the following: Matthias -- Matthias Kestenholz - Dipl. Umwelt-Natw. ETH - Konzept & Programmierung FEINHEIT GmbH - Molkenstrasse 21 -

Re: necessary of python

2011-02-12 Thread Matthias Kestenholz
Python at the same time as Django (it's not necessary to know Python beforehand), but you still have to learn Python if you want to be any good with Django. There's no way around it. Matthias -- Matthias Kestenholz - Dipl. Umwelt-Natw. ETH - Konzept & Programmierung FEINHEIT GmbH - Molk

Re: E-commerce site

2011-02-08 Thread Matthias Kestenholz
y > I'm happy with geany (a text editor + some more) Whatever suits you. IDEs are a topic for religious wars, I won't give advice here. > Don't worry about the fact I'm new to django, I'm fast to adapt. > HTH Matthias -- Matthias Kestenholz - Dipl. Umwelt-Natw. ETH - Konzept &

Re: What's the best way to develop an app that is similar the django admin?

2010-09-22 Thread Matthias Kestenholz
On Mon, Sep 20, 2010 at 3:13 PM, Federico Capoano wrote: > Hi all, > > I try to explain it clearly. > > I have to develop an application that will implement similar > functionality and look of the django admin, but in the frontend. > > So this application will have files

Re: Filter based on result of model method

2010-07-07 Thread Matthias Kestenholz
On Sat, Jul 3, 2010 at 7:20 PM, Wiiboy wrote: > Is there a way to filter based on the result of a model instance > method? > > I've got a Permission model with a one-to-one relationship with an > Article.  The Permission model stores the different groups that the > Article

Re: QuerySet Behaviour Question (Django 1.1)

2010-06-29 Thread Matthias Kestenholz
Hi On Mon, Jun 28, 2010 at 4:37 PM, Jeff wrote: > Hi, > > I have a question concerning some queryset behaviour in Django 1.1. > > In this example, I have an article model that can contain 1 or more > authors who are users registered through Django's auth system. > > I

Re: Open source CMS (if based on Django better)

2010-05-06 Thread Matthias Kestenholz
On Wed, May 5, 2010 at 9:52 PM, Jonatan.mv wrote: > What would be you recommended CMS?. Could you please give some reasons > (pro and cons)?. > > I'm investigating on these: > > - PyLucid v0.8.x stable, v0.9 alpha > - FeinCMS v1.1.0 stable > - django-simplecms > -

Re: Multi-table inheritance, post_save and fixtures

2010-04-08 Thread Matthias Kestenholz
On Thu, Apr 8, 2010 at 1:04 PM, Phui Hock wrote: > Given the following block of code: > --- models.py --- > from django.db import models > from django.db.models.signals import post_save > > class Animal(models.Model): >    category = models.CharField(max_length=20) > > class

Re: django-paypal

2010-04-06 Thread Matthias Kestenholz
On Tue, Apr 6, 2010 at 8:12 PM, Ramdas S wrote: > > Hey Thanks! > > Should I exempt all the views > I don't know django-paypal that well, but you should only exempt those which are supposed to receive POST requests from external domains (paypal) and which are secured against

Re: django-paypal

2010-04-06 Thread Matthias Kestenholz
On Tue, Apr 6, 2010 at 8:05 PM, Ramdas S wrote: > Hi, > > I am trying to use using django-paypal. Everything works fine, expect that > the IPN doesn't reach the site. > > I followed the code a per instructions in the > http://github.com/johnboxall/django-paypal > > I am able to

Re: 'template_key' that is missing from the form

2010-04-03 Thread Matthias Kestenholz
Hi Egon On Sat, Apr 3, 2010 at 12:35 PM, Egon Frerich wrote: > -BEGIN PGP SIGNED MESSAGE- > [...] > > Exception Type: ImproperlyConfigured at / > Exception Value: 'PageAdmin.fieldsets[1][1]['fields']' refers to field > 'template_key' that is missing from the

Re: Website themes in django

2010-02-03 Thread Matthias Kestenholz
On Wed, Feb 3, 2010 at 7:46 AM, Waqqas Jabbar wrote: > Hi, > > I am thinking of making a "theme" application. The idea is to change the > theme of the site easily from a list of available them (like in gmail). > The theme selection can be based on > - User (every user can

Re: Dealing with polyhierarchical data

2010-01-28 Thread Matthias Kestenholz
Hi On Wed, Jan 27, 2010 at 11:29 PM, Olivier Guilyardi wrote: > Hi, > > I'm working with a polyhierarchical thesaurus, and trying to handle that in > Django. By polyhierarchical, I mean : nodes can have both multiple parents and > children. > > Actually, this is a geographical

Re: Saving several copies of an object

2010-01-05 Thread Matthias Kestenholz
2010/1/5 Tomasz Zieliński : > > > On 5 Sty, 18:16, pjmorse wrote: >> >> This is done by looping over the list of languages and saving a >> NewsTrans in each language. The source language is marked as already >> translated, the other two

Re: Creating dynamic models?

2009-11-26 Thread Matthias Kestenholz
On Thu, Nov 26, 2009 at 9:56 AM, Kevin Renskers wrote: > Just a small update: the DynamicModels way as described on the wiki > doesn't work (it also says that it only works in Django 0.96, so > yeah..). > > If anyone has any idea how to do this, I would be very thankful! > > >

Re: Recursion without breaking MVC!

2009-09-29 Thread Matthias Kestenholz
Hey, On Tue, Sep 29, 2009 at 12:50 AM, Nuno Machado wrote: > > Hi djangoers, > > I've a simple category Model: > > class Category(models.Model): >    name = models.CharField(max_length=63) >    children = models.ManyToManyField('self', symmetrical=False, >

Re: Custom form validation request or user-based

2009-09-02 Thread Matthias Kestenholz
On Wed, Sep 2, 2009 at 10:38 AM, Enrico Sartorello wrote: >> if you need this only for the administration site you'd hvae other >> hooks that you could override. Either take a look at the documentation >> or at django/contrib/admin/options.py >> > > If you mean

Re: Custom form validation request or user-based

2009-09-02 Thread Matthias Kestenholz
On Wed, Sep 2, 2009 at 9:15 AM, Enrico Sartorello wrote: > Up. > Already? > On Tue, Sep 1, 2009 at 11:06 AM, Enrico Sartorello > wrote: >> >> Wait a moment: this solution doesn't solve my problem. >> Remember that the form I need has

Re: Custom form validation request or user-based

2009-08-31 Thread Matthias Kestenholz
On Fri, Aug 28, 2009 at 10:34 AM, Enrico Sartorello wrote: > Hi, > i'm developing a Django application where i need to differentiate the > validation of an admin-site model form between different users: some user > must respect some particular restrictions (imposed

Re: Django POST data errors

2009-08-31 Thread Matthias Kestenholz
On Mon, Aug 31, 2009 at 3:12 AM, Greg wrote: > > Hi all, > > I have a large-ish form (40-odd fields) on a pretty busy site, and I'm > constantly getting "ManagementForm data is missing or has been > tampered with" or "IOError: request data read error" errors. I can't >

Re: need help: unique_together in both directions

2009-08-29 Thread Matthias Kestenholz
On Sat, Aug 29, 2009 at 7:51 PM, ckar...@googlemail.com wrote: > > Really no ideas? > > Chris > Is there any way you could define a stable ordering for the SinglePoint model? You could ensure that the "smaller" SinglePoint gets stored in p1 and the "bigger" SinglePoint in

Re: Execute code after sending a http response?

2009-08-28 Thread Matthias Kestenholz
On Fri, Aug 28, 2009 at 8:10 AM, Shadow wrote: > > Hi, > > Is it possible to execute code after sending the actual http response? > > For my website, users can optionally give an email address, and if > they do, the site sends a confirmation email. But I was thinking

Re: redirect in django

2009-08-27 Thread Matthias Kestenholz
On Thu, Aug 27, 2009 at 12:38 PM, ankit rai wrote: > Nobody knows the answer to this question i think so > Did you really expect an answer within an hour of sending the email to the list? A little bit of patience would really be in order here. If you need answers _fast_,

Re: Closures, Django Request Object, Django architecture

2009-08-25 Thread Matthias Kestenholz
On Tue, Aug 25, 2009 at 8:35 PM, Dennis Fogg wrote: > PS: more succinctly: status notifications can happen in many places and > passing the session to all these places just for the status notification > does not make the code any clearer.  Thus, I just want to access the

Re: Closures, Django Request Object, Django architecture

2009-08-25 Thread Matthias Kestenholz
On Tue, Aug 25, 2009 at 7:32 PM, Dennis wrote: > > I seem to need the Django HttpRequest object in functions that are > called by view functions. > I could pass the request, but I'm thinking of trying to create a > closure in middleware so that > I can access the request

Re: Documenting Django with sphinx: autodoc doesn't pick up field definitions

2009-08-25 Thread Matthias Kestenholz
On Tue, Aug 25, 2009 at 4:44 PM, Benjamin Wohlwend wrote: > > Hi, > > I'm trying to generate documentation for my django project with sphinx > [1] and autodoc[2]. It's mostly working, but I can't get sphinx to > pick up my model field definitions (with the exception of

Re: Image Location

2009-08-23 Thread Matthias Kestenholz
On Sun, Aug 23, 2009 at 3:54 PM, When ideas fail wrote: > > Hello, i'm having a problem getting images to display so I was > wondering if someone would be kind enough to help? > > I have my settings.py set up as follows (content is the folder where > my static images

Re: From a relative noob

2009-08-22 Thread Matthias Kestenholz
Robb, On Sat, Aug 22, 2009 at 6:06 PM, Robb Bossley wrote: > In the course of writing this program, I have run into a challenge with > regard to the way that things are retrieved and displayed.  The problem is > as follows: > > #"var3" is passed in from the following >

Re: Dynamically add a line to an inlineformset

2009-08-22 Thread Matthias Kestenholz
On Sat, Aug 22, 2009 at 7:53 AM, Andew Gee wrote: > > Thank you for your help. > > I have managed to get the inlineforms to reproduce on my page, however > when I submit the form the extra inlines are ignored. I have printed > the formset when it hits the view and the new

Re: How to run a static html page as a section of django website?

2009-08-20 Thread Matthias Kestenholz
On Thu, Aug 20, 2009 at 10:42 PM, Bins wrote: > > I've a django powered blog, say http://example.com. I desire to make a > section http://example.com/htmlpage/ and run a simple static html page > at the url. > > How to I do it? > > I tried putting my file folder into my

Re: how to return an html snippet using ajax $.post()?

2009-08-20 Thread Matthias Kestenholz
On Thu, Aug 20, 2009 at 11:53 PM, Margie wrote: > > Ah - thank you!  Yes, sorry, in the process of my debugging the issue > and trying to simplify it, I unintentionally introduced even more > errors, and then when posting it, even more!  But you somehow despite > that,

Re: how to return an html snippet using ajax $.post()?

2009-08-20 Thread Matthias Kestenholz
On Thu, Aug 20, 2009 at 11:34 PM, Margie Roginski wrote: > > Could someone give me a hand with a very simple ajax problem?  I want > to post some data and have the server just return a small snippet of > html, which I then want to insert into my dom at a particular id. >

Re: Dynamically add a line to an inlineformset

2009-08-20 Thread Matthias Kestenholz
On Thu, Aug 20, 2009 at 7:27 AM, Andew Gee wrote: > > Does anyone know how to add a new line to anlineformset dynamically? I > have a page that contains an inlineformset and I need to be able to > click a button and add a new line which will then be saved when the > form is

Re: Template Filters

2009-08-20 Thread Matthias Kestenholz
On Thu, Aug 20, 2009 at 4:11 AM, WilsonOfCanada wrote: > > Hellos, > > I was wondering if there is a filter that can remove these '\' that > python added when strings are appended to a list or dictionary.  I > cannot use cut because I still need one of the '\' > > ex.  C:\\moo > >

Re: Raw Strings with Variables

2009-08-19 Thread Matthias Kestenholz
On Wed, Aug 19, 2009 at 2:51 AM, WilsonOfCanada wrote: > > However, when I send the list over as a dictionary for HTML: > > d["places"] = arrPlaces > > return render_to_response('rentSearch.html', d) > > the HTML using Django has: > > {{ places }} but returns ['C:\\moo',

Re: Admin dashboard : hide and merge modules

2009-08-17 Thread Matthias Kestenholz
On Tue, Aug 18, 2009 at 6:10 AM, JF Simon wrote: > > Hi men, > > I'm using Django + Grappelli and I'd like to know if there is a simple I don't know about grappelli, but I'd expect it to be at least as configurable as the standard django admin interface. > way to make some

Re: Master / Slave Database Replication Scenario

2009-08-16 Thread Matthias Kestenholz
On Sun, Aug 16, 2009 at 11:44 AM, Haes wrote: > > Hi, > > we are using master / slave database replication, no partitioning, > just replicating the complete database to several slaves for > performance reasons. This is making some problems with a newly > developed Django

Re: Django, CMS, CSS newbie question

2009-08-13 Thread Matthias Kestenholz
On Thu, Aug 13, 2009 at 11:55 PM, eldonp2 wrote: > > Thanks. > > I've gone through the book and done the tutorial on djangoproject.com > > Basically, my qyestion is still not answered - how do I start with a > CSS template and bring Django and Django-CMS in afterward? The

Re: Psyco

2009-08-13 Thread Matthias Kestenholz
On Thu, Aug 13, 2009 at 5:35 PM, Jonas Obrist wrote: > > Torsten Bronger wrote: >> Hallöchen! >> >> Jonas Obrist writes: >> >> >>> Is anyone using psyco in django? Does it work and is it useful (as >>> in: do you get great speed improvements)? >>> >> >> I've once seen a

Re: More Than Two Models With inlineformset_factory

2009-08-12 Thread Matthias Kestenholz
On Wed, Aug 12, 2009 at 7:36 PM, Geraldo wrote: > > No, I mean two or more different forms.  I'd like Parent, Child1 AND > Child2 all in the same formset.  What you've suggested though, should > get me where I want to go. > Well, you can easily show the input fields from

Re: More Than Two Models With inlineformset_factory

2009-08-12 Thread Matthias Kestenholz
On Wed, Aug 12, 2009 at 12:51 AM, Geraldo wrote: > > Excellent, Matthias...  That should work nicely.  It does appear, > however, that there is no way to have more than 2 forms in a single > formset.  If inlineformset_factory had an append method things might > be a bit

Re: More Than Two Models With inlineformset_factory

2009-08-11 Thread Matthias Kestenholz
On Tue, Aug 11, 2009 at 10:04 PM, Geraldo wrote: > > Hi, > > I'm new to Django and am putting together a page for my new site.  I > want to be able to edit data that is contained in 3 models, organized > as follows: > Parent >  --> Child 1 (always one to one) >  --> Child 2

Re: is Django a good choice for a LAN app?

2009-08-11 Thread Matthias Kestenholz
On Tue, Aug 11, 2009 at 10:00 PM, Peterle wrote: > > Perhaps Zope-Plone is more suitable for that purpose. Perhaps not. Do you have anything to back this statement? (I'm not saying it's untrue, I'm just trying to point out that this contribution wasn't particularly helpful.

Re: django-cms-2.0 problem

2009-08-10 Thread Matthias Kestenholz
On Tue, Aug 11, 2009 at 1:01 AM, odonnell wrote: > > I'll try starting with the example project this time, maybe something > in there is different than starting a project with django-admin.py > startproject. > The standard django project skeleton does not have

Re: javascript variable in url resolver template tag

2009-08-09 Thread Matthias Kestenholz
On Sun, Aug 9, 2009 at 5:43 PM, Sven Richter wrote: > Hi all, > > i wanted to know if it is possible to pass a Javascript variable to > the url template tag? > > Like: > > ... >

Re: Javascript with built-in templates tags

2009-08-08 Thread Matthias Kestenholz
On Sat, Aug 8, 2009 at 6:34 PM, WilsonOfCanada wrote: > > I am not sure; I am just trying to pass the variable from the > dictionary using render_to_response to a javascript function.  The > function is stored as a .js file.  This is a part of the code I am > using it for: > > {{

Re: annotate() and subsets or related records

2009-08-04 Thread Matthias Kestenholz
On Mon, Aug 3, 2009 at 11:17 PM, Javier Guerra wrote: > > Hi all, > > > I've just upgraded to 1.1 (congrats everybody!), and want to put the > aggregation/annotation features to use.  but it doesn't seem to be a > way to annotate the records with counts of different subsets of

Re: view/form with fields from multiple models

2009-07-24 Thread Matthias Kestenholz
On Fri, Jul 24, 2009 at 10:46 AM, Benjamin Wohlwend wrote: > > On Jul 24, 10:37 am, Benjamin  Wohlwend wrote: > >> >> if all(f.is_valid() for f in (form1, form2, form3)): >>     # ok, save >> > > Oops, forgot to mention that I had to implement my own

Re: urls.py import() usage?

2009-07-23 Thread Matthias Kestenholz
On Thu, Jul 23, 2009 at 5:33 PM, Joshua Russo<josh.r.ru...@gmail.com> wrote: > On Thu, Jul 23, 2009 at 2:18 PM, Matthias Kestenholz > <matthias.kestenh...@gmail.com> wrote: >> >> On Thu, Jul 23, 2009 at 4:51 PM, Joshua Russo<josh.r.ru...@gmail.com> >>

Re: urls.py import() usage?

2009-07-23 Thread Matthias Kestenholz
On Thu, Jul 23, 2009 at 4:51 PM, Joshua Russo wrote: > > Is there any difference between using import() versus not in the url > pattern list? >    (r'^accounts/login/$', 'django.contrib.auth.views.login'), >    (r'^admin/doc/', include('django.contrib.admindocs.urls')),

Re: Current user in model.save() context

2009-07-20 Thread Matthias Kestenholz
On Mon, Jul 20, 2009 at 9:26 AM, Bartłomiej Górny wrote: > [...] >> there is a cookbook recipe for achieving this sort of thing: >> >> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser > > Yep, that's exactly what I did :) > >> >> That's deep in the category of

Re: pre-fetch one-to-many and many-to-many relationships

2009-07-18 Thread Matthias Kestenholz
work for django.contrib.comments though, since the comments model uses generic relations, and I've not implemented prefetching for those yet. Matthias Maybe it will inspire someone to create > Miriam > > > > -- Matthias K

Re: Current user in model.save() context

2009-07-18 Thread Matthias Kestenholz
On Fri, Jul 17, 2009 at 4:24 PM, Bartłomiej Górny wrote: > > Phil wrote: >> Hi Josh, >> >> unfortunately it seems that there is no way to do so. As you've >> noticed that correctly you can use request (request.user) in any place >> but model save. > > Yes, I bumped into the

Re: Cached forms when changing language- Is this a bug?

2009-07-17 Thread Matthias Kestenholz
Hi, On Fri, Jul 17, 2009 at 9:14 AM, Adrián Ribao wrote: > > Hello everybody, > > I have an multi language site with a form in the home. If I change the > language of the site everything changes but the form takes a few > minutes before I see it in the right language. > > If I

Re: using modelformsets

2009-07-06 Thread Matthias Kestenholz
Hi, On Sun, Jul 5, 2009 at 11:42 PM, Eric Abrahamsen wrote: > > I'm somehow failing to use modelformsets, this is the relevant view > and error traceback: > > http://dpaste.org/evHq/ > > I'm validating a whole bunch of forms at the same time, but I don't > see how that could

Re: Translation question : some strings not translated

2009-07-02 Thread Matthias Kestenholz
Hi, 2009/7/2 François Verbeek : > Mmm to make the problem easier to deal with I wrote a very very small > app with just 1 view and a very basic template : > from django.http import HttpResponse > from django.utils.translation import ugettext as _ > from django.shortcuts

Re: Customizing extends template tag for mobile version of site

2009-06-06 Thread Matthias Kestenholz
On Fri, Jun 5, 2009 at 6:35 PM, Andrew Fong wrote: > > I was hoping someone could explain to me what the exact behavior would > be if the Extends Node in the template was not first. > > Here's my use-case scenario: I need to maintain separate mobile and > desktop templates

Re: Quoting in extra(select=...) expression

2009-05-12 Thread Matthias Kestenholz
Hey, On Mon, May 11, 2009 at 9:09 PM, lemming110 wrote: > > I am trying to use the select keyword in extra.  But I cannot properly > quote the the expression for postrgres.  I am using the > django.contrib.comments.  I started with this snippet >

Re: Ajax and non-ajax forms.

2009-05-06 Thread Matthias Kestenholz
Hey, On Wed, May 6, 2009 at 3:27 PM, Chris Dew wrote: > > I'd like to develop a Django application with the following > properties: > > A page (list of items) will have a link to a page with a form to add a > new item. > > If there is no javascript, the link will take the

Re: i need a unlimited subcategories

2009-04-28 Thread Matthias Kestenholz
On Tue, Apr 28, 2009 at 3:09 PM, Alex Robbins wrote: > > For a real simple solution you might just set up a foreign key field > that points to the parent of any given category. (If you don't need > the extra features of those libraries, they might just make things

Re: Query to retrieve users from a given group

2009-04-17 Thread Matthias Kestenholz
On Fri, Apr 17, 2009 at 3:18 PM, Daniel Roseman wrote: > > On Apr 17, 1:23 pm, Bastien wrote: >> Hi, >> >> I'm trying to retrieve a list of users belonging  to a given group but >> don't understand how to do it. It must be a sort of

Re: Fieldlookup: NOT

2009-04-17 Thread Matthias Kestenholz
On Thu, Apr 16, 2009 at 3:56 PM, Thomas Guettler wrote: > > Hi, > > > For forms which display a list of results I use: >    form=QueryForm(request.GET) >     >    queryset=MyModel.objects.filter(**form.cleaned_data) > > But, now I need to use exclude() instead of filter().

Django MPTT Admin

2009-02-26 Thread Matthias Kestenholz
Hey, A topic which comes up on this list from time to time is an automatic admin interface for django-mptt. I'd like to advertise a piece of code we have written at our company a little bit, and I'd also like to invite everyone to give comments and feedbacks. I do have many more ideas floating

Re: Securely storing passwords

2009-02-24 Thread Matthias Kestenholz
Hi, On Tue, Feb 24, 2009 at 12:49 PM, LaundroMat wrote: > > Hi - > > I'm working on a small django app that allows users to interact with > other websites where they have an account. Ofcourse, using this app > means providing your username and password for the other website.

Re: Equivalent of find_or_create_by in Django

2009-02-17 Thread Matthias Kestenholz
Hey, On Tue, Feb 17, 2009 at 2:33 PM, Anders wrote: > > Hi. > > I do a lot of csv-import of data and have previously been using Ruby > on Rails. And the only thing I miss about Rails (apart from database > migration) is the find_or_create_by methods. > > Are

Re: get children of children

2008-09-24 Thread Matthias Kestenholz
On Wed, Sep 24, 2008 at 9:25 AM, Evgeny <[EMAIL PROTECTED]> wrote: > > Hi, > There's an object hierarchy: A references B, B references C. > "references" means foreign key. > Is there a nice Django way to select all C objects which are > grandchilds of given A with one query? Somethink like > >

Re: Sending HTML email

2008-09-23 Thread Matthias Kestenholz
On Tue, Sep 23, 2008 at 7:38 PM, Berco Beute <[EMAIL PROTECTED]> wrote: > > Currently I'm sending plain text mails using: > > ### > from django.core.mail import EmailMessage > email = EmailMessage('hi', 'howdy', host, to) > email.send() > ### > > But now I want to use HTML in the body of the

Re: Template Inheritance Question

2008-09-19 Thread Matthias Kestenholz
On Sat, Sep 20, 2008 at 12:08 AM, David Durham, Jr. <[EMAIL PROTECTED]> wrote: > > On Fri, Sep 19, 2008 at 4:07 PM, djandrow <[EMAIL PROTECTED]> wrote: >> >> I have a template, text that extend a template base. >> >> In my text template I have; >> >> {% extends 'base.html' %} >> >> {% block

Re: Template problem with dates(field, kind, order='ASC')

2008-09-13 Thread Matthias Kestenholz
On Sat, Sep 13, 2008 at 11:49 PM, djandrow <[EMAIL PROTECTED]> wrote: > > This is probably really really obvious. I have the following statement > in my views.py: > > archive_list = Entry.objects.dates('entry_date', 'month', > order='DESC') > > then I have; > > {% for archive in archive_list %} >

Re: flatpage -- content type?

2008-09-13 Thread Matthias Kestenholz
On Sat, Sep 13, 2008 at 11:12 PM, shaunc <[EMAIL PROTECTED]> wrote: > > umm... but that's not exactly according to "D.R.Y." :) -- but thanks. > It's good to try to follow DRY, but it's not the solution for everything. Django is a tool box, not a CMS with everything included. Sometimes it's

Re: flatpage -- content type?

2008-09-13 Thread Matthias Kestenholz
On Sat, Sep 13, 2008 at 9:33 PM, shaunc <[EMAIL PROTECTED]> wrote: > > Hello, > > Does anyone know how to set the content type when serving a page via > FlatPages? > You have to write your own middleware or view function. This is easy enough since you can copy the flatpages view and middleware

Re: Restricting views

2008-09-11 Thread Matthias Kestenholz
On Thu, Sep 11, 2008 at 6:00 PM, ek_wals <[EMAIL PROTECTED]> wrote: > > What then is the point of 'is_superuser' or superuser's in general? > > Looking through the Django code, it seems that the only use for > superusers is that a superuser is automatically a moderator. > > Could be so much

Re: Restricting views

2008-09-11 Thread Matthias Kestenholz
On Thu, Sep 11, 2008 at 5:22 PM, ek_wals <[EMAIL PROTECTED]> wrote: > > > And I can see exactly how to do it -- > copy contrib/admin/views/decorators.py:staff_member _required and > change > 'request.user.is_staff' to 'request.user.is_superuser' > > Sure seems repetitive (non-DRY) (wet?) >

  1   2   >