Chained Views - as in Catalyst (perl)

2009-07-26 Thread Alexandru Nedelcu
Hi, I'm a newbie when it comes to Django ... I picked it up for a personal project because it seemed like a good fit. I do miss a feature from Catalyst ... chained actions. I added this functionality to Django by myself (just a few hours hack), see here (example + code): http://code.google.c

Re: Chained Views - as in Catalyst (perl)

2009-07-26 Thread Alexandru Nedelcu
lete /users/30/articles/25/comments/20/mark_spam ... if it uses chained views, then you'll immediately know where to look when you want to modify something. It makes refactoring easy (including refactoring of Urls) because it has a simple to remember structure

Re: problem: TemplateDoesNotExist at /admin/ (linux)

2009-07-26 Thread Alexandru Nedelcu
On Sun, 2009-07-26 at 15:15 -0700, LuXo Jarufe wrote: > Hi, I want to use the admin but I have this problem, I was following > the tutorial in djangoproject but when I execute the admin this > appears: > > TemplateDoesNotExist at /admin/ Hi, In settings.py you have a setting named ... TEMPLATE_

Re: Chained Views - as in Catalyst (perl)

2009-07-26 Thread Alexandru Nedelcu
On Mon, Jul 27, 2009 at 2:55 AM, Alexandru Nedelcu wrote: > I do miss a feature from Catalyst ... chained actions. > I added this functionality to Django by myself (just a few hours > hack), see here (example + code): >    http://code.google.com/p/django-catalyst/ I updated the exam

Re: Chained Views - as in Catalyst (perl)

2009-07-27 Thread Alexandru Nedelcu
... http://code.google.com/p/django-catalyst/ -- Alexandru Nedelcu http://alexn.org --~--~-~--~~~---~--~~ 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

Re: Chained Views - as in Catalyst (perl)

2009-07-28 Thread Alexandru Nedelcu
er don't know how to send "PUT" or "DELETE" requests, it's perfectly acceptable to encode that action in the URL. And I'd like to think that we prefer pragmatism over dogma. Labeling things with "this is REST" and "this is not&q

Re: creating first appl using django

2009-07-28 Thread Alexandru Nedelcu
On Tue, 2009-07-28 at 01:31 -0700, rekha wrote: > Hi, > im new to django. may anyone tell how to develop an web application > using django? Installation: http://docs.djangoproject.com/en/dev/intro/install/#intro-install Good and free book on Django: http://www.djangobook.com/en/2.0/ --~--~---

Re: iPhone authentication in Django?

2009-07-28 Thread Alexandru Nedelcu
On Tue, 2009-07-28 at 00:54 -0700, R C wrote: > Does anyone know how to handle an iPhone user logging in? Any > thoughts or directions? As long as you can make HTTP requests, and your library can handle cookies or http auth, then you're fine. http://developer.apple.com/documentation/Cocoa/Conce

Re: Chained Views - as in Catalyst (perl)

2009-07-28 Thread Alexandru Nedelcu
On Tue, 2009-07-28 at 11:09 +0200, Masklinn wrote: > No it doesn't, the only URL there is to discover in a REST service is > the endpoint (the service's root). Any other URL is extracted from the > content types (which are to be fully documented). There is nothing to > discover. >From ... h

Re: Chained Views - as in Catalyst (perl)

2009-07-28 Thread Alexandru Nedelcu
ry ... but let's bend the rules a little :) That's not to say that making queries with GET parameters isn't restfull, but again ... we are talking about tools and practices that make our life easier. Maybe you don't see

Re: IDE for Django and Ext JS

2009-07-29 Thread Alexandru Nedelcu
On Tue, 2009-07-28 at 20:20 +0200, Jonas Obrist wrote: > Maybe a good question would be is there any IDE that supports the django > template language? I use Emacs with * django-html-mode: http://code.djangoproject.com/wiki/Emacs * yasnippets: http://code.google.com/p/yasnippet/ It really

Django admin - change_list resultset

2009-09-24 Thread Alexandru Nedelcu
Hi, I want to modify the querying done for the admin's change_list view of a model. I have an "Article" model, and when viewing the change_list I want the rows in the table to group_by('pack'), which is a foreign-key to model ArticlePack. Thanks, --~--~-~--~~~---~-

Re: list some django-powered web sites

2009-09-24 Thread Alexandru Nedelcu
On Thu, 2009-09-24 at 16:06 +0800, Anrs wrote: > hi everybody, We want to develop a Bussiness web site with Django > framework, but we can't decide django's performance. So, would you > list some large-scale web sites that used django for us? You're not going to get any meaningful feedback by loo

Re: list some django-powered web sites

2009-09-24 Thread Alexandru Nedelcu
On Thu, 2009-09-24 at 02:54 -0700, Michel Thadeu Sabchuk wrote: > Wouldn't it be better to cache on the RAM? This way you won't need > even these queries... > > I'm not a cache specialist, let me know if I miss something ;) Yes it would be better, if you can afford it. The website runs in singl

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread Alexandru Nedelcu
nouncement that > whitehouse.gov switched to Drupal just cement the deal in many > managers' minds. -- Alexandru, Nedelcu http://alexn.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&qu

Re: filtering query on a function

2010-02-01 Thread Alexandru Nedelcu
rManager() So, even if very inefficient, you can still chain conditions together ... Player.objects.filter_by_coursehandicap([0..16]).exclude(something=value).all() -- Alexandru Nedelcu -- You received this message because you are subscribed to the Google Groups "Django users&