actually don't user super(self.__class__, self)
http://loveandtheft.org/2008/09/03/how-super-should-be-used-when-calling-a-parents-method/
use super(MyManager, self)
On 17 Dec, 18:15, 7timesTom wrote:
> On 17 Dec, 16:08, Darthmahon wrote:
>
> > Why not create your own funct
On 17 Dec, 16:08, Darthmahon wrote:
> Why not create your own function then and just put the try or except
> code in that? That way it'll only be one line.
Yup. Using model.Manager i.e.:
class MyManager(models.Manager):
def get_or_blank(self, pk_val):
try:
m = super(self
Some time ago Webfaction notified me "Memory usage over your
limit" (80MB) It's taken me ages to find this darn memory leak! It was
one short line that didn't even add functionality to my users.
I have 2000 items (cars) in a database table, which my users can
search through. After the webfaction
Thanks for the help mate, unfortunately I still get exactly the same
errors.
What I don't understand, is that it's complaining about the lack of
geo and postgis files, while installing postgis!
Anyone have any more advise?
On 30 Oct, 13:36, Jeff Johnson <[EMAIL PROTECTED]> wr
I'm trying to install geodjango on windows vista business (I know!
sorry!). Firstly is this a futile attempt to begin with?
If not, here's the problem I'm getting:
I've installed PostgreSQL using the windows xp instructions at
http://geodjango.org/docs/install.html#windows. And then done a full
I have a large number of view functions which require various python,
django and other import statements.
My question is: is it ok to put ALL my import statements at the top of
views.py and then not have to worry about which view fuction uses
what. Or must I put my imports within the view fuction
like this.
**
How do I prevent escaped chars like this while not endangering
recipients to any form of javascript or other attack?
Thanks,
7timesTom
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&qu
I have general processing to do in my context processor based on which
url was used.
How can find out the name of the url used eg in my middleware. I feel
like I want to do:
def process_view(self, request, view_func, view_args, view_kwargs):
request.url_name = view_kwargs.get('name', Non
8 matches
Mail list logo