Re: develeopment servers stops at syntax error.

2014-09-13 Thread Yunus Koçyiğit
on django 1.7 if i made a syntax error on purpose like" a = [ 'blablabla' " development server stops immediately with this error : System check identified no issues (0 silenced). September 13, 2014 - 08:18:01 Django version 1.7, using settings 'learning_site.settings' Starting

Re: develeopment servers stops at syntax error.

2014-09-13 Thread Andreas Kuhne
That's strange. A syntax error in my django 1.6 also stops the server, without restarting it. I think that's the way it should be, because the server cannot continue processing invalid python files. Regards, Andréas 2014-09-13 10:19 GMT+02:00 Yunus Koçyiğit : > > on django 1.7 if i made a synta

Re: develeopment servers stops at syntax error.

2014-09-13 Thread Yunus Koçyiğit
in django 1.6 on syntax error server also stops. but not fully. when i fix the issue and save server restarts without i need to write "runserver" command. On Saturday, September 13, 2014 12:59:37 PM UTC+3, Andréas Kühne wrote: > > That's strange. A syntax error in my django 1.6 also stops the s

Re: Right way to create proxy to User model in Django 1.7

2014-09-13 Thread Daniel Roseman
On Friday, 12 September 2014 19:54:53 UTC+1, Izabella Gál wrote: > > Hi! > > Could you, please, help me to find the right way to create proxy to User > model in Django 1.7? > > In 'myapp.models.py' I have a MyUser class which should inherit from the > user model specified in settings.AUTH_USER_

Re: How to express a seemingly straightforward upate in the ORM?

2014-09-13 Thread Erik Cederstrand
Den 12/09/2014 kl. 20.19 skrev Benjamin Scherrey : > I should assume then that this is something that the existing Django ORM > cannot model? It's a bit hard for me to grok your initial mail, but maybe you can use the new Prefetch() class in Django 1.7 to filter your query using joins instead

FileField open in new tab (admin)

2014-09-13 Thread Eric Tanter
Hi, Is it possible to specify that a FileField, when viewed in the admin, opens its target url in a new tab? Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an e

Preventing illegal method calls

2014-09-13 Thread Jagger
Hi Everyone! My question is how can I prevent illegal method calls in django web application. For example, take a method that updates the data of ExampleModel: def examplemodel_changeform(request, examplemodel_id): #Here is the source code of model updating... Clicking on the submit button,

LIMIT 21 on primary key lookups

2014-09-13 Thread Alex French
I'm using Django 1.7 and I noticed something odd in my postgres query logs. Almost every query has a "LIMIT 21" clause, including queries of the type "Thing.objects.get(pk=#)", which could only ever return one row. This behavior seems odd to me, but so far I haven't seen it come up in a place w