Re: extend an existing model (not the user profile)

2011-04-20 Thread Simone Orsi
Hi Daniel, thanks for your answer. On 04/20/2011 02:23 PM, Daniel Roseman wrote: > On Wednesday, April 20, 2011 12:22:15 PM UTC+1, Simone Orsi wrote: > > Hi, > > first of all I'm sorry if this argument has been discussed somewhere but > I cannot find any real

extend an existing model (not the user profile)

2011-04-20 Thread Simone Orsi
Hi, first of all I'm sorry if this argument has been discussed somewhere but I cannot find any real example except the one for the user profile. I'm trying to extend an existing model adding some fields. It seems there's no "clean way" to this but creating a related model for it (as per the user

LFS - weird behaviour on image creation

2010-04-06 Thread Simone Orsi
Hi *, anybody has faced this? http://groups.google.de/group/lightning-fast-shop/browse_thread/thread/73cc6a8ec3fa330 TIA, SimO -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com.

Re: global name 'self' is not defined

2010-04-02 Thread Simone Orsi
Hi, On 04/02/2010 05:12 PM, H.İbrahim Yılmaz wrote: > Hi all, > I get "global name 'self' is not defined" error what is the problem? > Thanks. > > from django.db import models > from django.forms import * > from yenicrm.musteri.models import * > from django.contrib.auth.models import User > from d

rpc4django - passing keyword arguments or boolean arguments

2010-03-31 Thread Simone Orsi
Hi, anybody using rpc4django has faced this? https://bugs.launchpad.net/rpc4django/+bug/552437 Cheers, SimO -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe fro

RPC4Django - can't pass Boolean args nor Keyword args

2010-03-31 Thread Simone Orsi
Hi, anyone using RPC4Django has faced this https://bugs.launchpad.net/rpc4django/+bug/552437 ? Cheers, SimO -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

Re: Using Mako as a templating language

2010-03-29 Thread Simone Orsi
Hi, On 03/28/2010 06:34 PM, Colin wrote: > Or any other templating language that's a bit looser in allowing a bit > of logic to mix in with the presentation layer? > http://mockit.blogspot.com/2010/02/using-chameleon-in-django.html -- You received this message because you are subscribed to the

Re: xmlrpc + 'django.contrib.auth.middleware.RemoteUserMiddleware' throws "Forbidden"

2010-03-28 Thread Simone Orsi
is. Cheers, SimO > However, XMLRPC and JSONRPC protocols do not > support authentication. In other RPC libraries for Django [2] I've > seen that they provide a decorator which adds two parameters (username > and password) to your RPC method. However, I did not really like this > solut

Re: xmlrpc + 'django.contrib.auth.middleware.RemoteUserMiddleware' throws "Forbidden"

2010-03-26 Thread Simone Orsi
Hi David, Ale, thanks for your answers :) On 03/26/2010 05:24 PM, David wrote: > Simone, > > It looks to me like there may be a problem in how you have configured > basic authentication on your web server. At the moment I didn't configure any server at all :) > Firstly, the fact that you > are ab

xmlrpc + 'django.contrib.auth.middleware.RemoteUserMiddleware' throws "Forbidden"

2010-03-26 Thread Simone Orsi
Hi *, I'm trying to set some webservices using rpc4django (cause it supports also jSON) on Django 1.1. I followed this http://packages.python.org/rpc4django/#overview and this http://docs.djangoproject.com/en/1.1/howto/auth-remote-user/ so that in my settings.py I have MIDDLEWARE_CLASSES = (