Re: Admin site: Appropriateness of HTTP 500 when using non-allowed query strings

2012-04-11 Thread Julien Phalip
On Apr 10, 2012, at 4:34 AM, 3point2 wrote: > The admin site allows the use of certain query strings to filter > change list pages. The syntax follows queryset field lookups, for > example http://mysite.com/admin/myapp/mymodel/?field__exact=test. > Lookups that are not specified on the ModelAdmin'

Errors in tests

2012-04-11 Thread Vinay Sajip
Hi, I just upgraded to r17895, and now tests appear to have stopped working. Here's the tail end of the test run: == ERROR: test_user_permission_performance (regressiontests.admin_views.tests.UserAdminTest) ---

Re: Awkwardness of overriding View.dispatch for method-agnostic request-handling

2012-04-11 Thread Meshy
I agree that there is a need for this -- it has come up several times for me now -- however, I prefer my proposal (pretty printed here: https://gist.github.com/1957251 , code below...) mentioned in the topic "Class based views: A standard hook for http-method-independent code" (https://groups.g

Re: Errors in tests

2012-04-11 Thread Vinay Sajip
The errors seem to be related to Aymeric's change in r17894. If I change def _reset_dicts(self, value=None): builtins = {'True': True, 'False': False, 'None': None} if value: builtins.update(value) self.dicts = [builtins] to the seemingly equivalent de

Re: Errors in tests

2012-04-11 Thread Łukasz Rekucki
On 11 April 2012 13:37, Vinay Sajip wrote: > The errors seem to be related to Aymeric's change in r17894. If I > change > >    def _reset_dicts(self, value=None): >        builtins = {'True': True, 'False': False, 'None': None} >        if value: >            builtins.update(value) >        self.d

Re: Errors in tests

2012-04-11 Thread Anssi Kääriäinen
On Apr 11, 2:50 pm, Łukasz Rekucki wrote: > As for the error, it's quite a puzzle. If update() tries to iterate > thru value, it means it's a non-empty sequence that's not a subclass > of dict, right? Did you manage to track what type of value it is? > There must be a bug somewhere else too. Whe

Django is not a serious framework, really

2012-04-11 Thread Jason Ma
Hi, I download and tried to use the Django 1.4 yesterday. I am a dummy and I just follow the official document, but When I just start a project. I found that it is what I see from my computer: jason@jason-pc:~/workspace/hunqing$ tree . . ├── hunqing │   ├── __init__.py │   ├── __init__.pyc │  

Re: Django is not a serious framework, really

2012-04-11 Thread Jan Schotsmans
Hi Jason, pyc are compiled py files ... it means you most likely ran the code before doing the "ls". As for the structure of the directories, I'm fairly certain that its MySite first, then MyApp, not 2x mysite. Not going to speak on the database syncs, other then that they work fine for me. I'd

Re: Django is not a serious framework, really

2012-04-11 Thread Russell Keith-Magee
On Wednesday, 11 April 2012 at 8:10 PM, Jason Ma wrote: > Hi, > I download and tried to use the Django 1.4 yesterday. I am a dummy > and I just follow the official document, but When I just start a > project. > I found that it is what I see from my computer: > > jason@jason-pc:~/workspace/hunq

Re: Django is not a serious framework, really

2012-04-11 Thread Jason Ma
Hi Jan, I don't mean the .pyc files in the folder, If it was that, everything will be fine. Please read what I typed carefully. And please test the case I just mentioned, I tested again and still the same situation. It maybe the feature, but hope it will get more user-friendly because we are a

Re: Django is not a serious framework, really

2012-04-11 Thread Aymeric Augustin
Hi Jason, Le 11 avril 2012 14:10, Jason Ma a écrit : > I heavily doubted that whether the writers have tested that carefully. As one of the many people who replayed the tutorial from A to Z, checked every little detail, updated screenshots, etc. before the release of 1.4, I feel your feedback is

Re: Django is not a serious framework, really

2012-04-11 Thread Juan Pablo Martínez
gooby pls :) On Wed, Apr 11, 2012 at 10:29 AM, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > Hi Jason, > > Le 11 avril 2012 14:10, Jason Ma a écrit : > > I heavily doubted that whether the writers have tested that carefully. > > As one of the many people who replayed the tutori

Re: Django is not a serious framework, really

2012-04-11 Thread Babatunde Akinyanmi
I wonder why you guys are replying OP. On 4/11/12, Juan Pablo Martínez wrote: > gooby pls :) > > On Wed, Apr 11, 2012 at 10:29 AM, Aymeric Augustin < > aymeric.augus...@polytechnique.org> wrote: > >> Hi Jason, >> >> Le 11 avril 2012 14:10, Jason Ma a écrit : >> > I heavily doubted that whether t

Re: Django is not a serious framework, really

2012-04-11 Thread Jan Schotsmans
Hi, Jason, I suggest you go to the django-users list for help: http://groups.google.com/group/django-users This list is only for django core development (aka, the framework itself), not for people using Django. And, it's no bother, but you came on rather strong, with wording that real world infor

Re: Django is not a serious framework, really

2012-04-11 Thread Daniel Sokolowski
Would it be hard for django to check during syncdb and complain that a schema migration is required for an app? I vaguely recall being stumped myself after changing a model, running syndb and getting my first database integrity error. I believe even a NOTE in the tutorial clarifying that schema

Re: Django is not a serious framework, really

2012-04-11 Thread ionic drive
I wonder how someone can write such a provocative message as the thread-starter. Django - is great - thanks for all! On Wed, 2012-04-11 at 14:57 +0100, Babatunde Akinyanmi wrote: > I wonder why you guys are replying OP. > > On 4/11/12, Juan Pablo Martínez wrote: > > gooby pls :) > > > > On We

Re: Django is not a serious framework, really

2012-04-11 Thread bhuztez
The document clearly states that "You'll see a message for each database table it creates". I guess Jason Ma had a hard time reading the document because it is written in English. Native Chinese speakers who are not quite familiar with English will feel desperate when they had to read serveral pag

Re: Django is not a serious framework, really

2012-04-11 Thread Jan Schotsmans
I saw the Chinese date-stamp in his email and deducted the same, hence why I said it might be wise to add the language of his installation, so people are aware (but to django-users). Don't really know what serveral pages are, but I do understand language barrier problems :p (just kidding, hugz typ

Re: Django is a serious framework, really

2012-04-11 Thread Erik Stein
The other day I went back to one of my first django projects. It's running on production since 2007/2008 flawlessly serving a rather complex scientific database for about 10 visits/month, still using django 1.1. The reason was that the current maintainer needed some help with the project an

Re: Admin site: Appropriateness of HTTP 500 when using non-allowed query strings

2012-04-11 Thread 3point2
Julien, I'm not describing an edge case. Django will return an HTTP 500 for ANY field lookup on a related model that is not in the list_filter option. To test, simply create a model that has a ForeignKey to another model and hook it up into the admin site. Don't include any list_filter options. Th

Re: So has Instagram...

2012-04-11 Thread Jacob Kaplan-Moss
Folks. this is pretty far off-topic; let's take M&A discussions elsewhere please. Jacob On Wednesday, April 11, 2012 at 12:55 AM, shacker wrote: > On Monday, April 9, 2012 10:03:57 PM UTC-7, diogobaeder wrote: > > ... just been acquired by Facebook? And it uses Django? > > > > Indeed. We c

Re: Admin site: Appropriateness of HTTP 500 when using non-allowed query strings

2012-04-11 Thread Alex Ogier
If a query string references a foreign key that isn't in list_filter then it can hardly be a "valid query string". This isn't an authorization problem ("You lack permission to perform that operation"), it's a real fatal error ("You asked us for something we don't understand/support"). >From a secu

Re: Admin site: Appropriateness of HTTP 500 when using non-allowed query strings

2012-04-11 Thread Julien Phalip
On Apr 11, 2012, at 11:44 AM, 3point2 wrote: > Julien, I'm not describing an edge case. Django will return an HTTP > 500 for ANY field lookup on a related model that is not in the > list_filter option. > > To test, simply create a model that has a ForeignKey to another model > and hook it up into

Re: Django is not a serious framework, really

2012-04-11 Thread Russell Keith-Magee
On Wednesday, 11 April 2012 at 11:10 PM, bhuztez wrote: > The document clearly states that "You'll see a message for each > database table it creates". > > I guess Jason Ma had a hard time reading the document because it is > written in English. Native Chinese speakers who are not quite familia

Re: Django is a serious framework, really

2012-04-11 Thread Cal Leeming [Simplicity Media Ltd]
Yo Jason, I'm really sorry for you, and imma let you finish, but Django is one of the best frameworks of all time. (I knew I'd get a chance to use that meme one day!) On Wed, Apr 11, 2012 at 7:37 PM, Erik Stein wrote: > > -- erik > > Am 11.04.2012 um 14:54 schrieb Russell Keith-Magee: > > > On

An appeal for insight into the development of Django

2012-04-11 Thread Martin Schönberger
Dear developers of Django! I am a student of Software Engineering at the Vienna University of Technology and currently writing my master thesis on project management and the development methods used in open source projects. In my research I analyzed open source development and compared it with ele