Re: RV: photos sexy

2010-02-26 Thread Frank DiRocco
I was kinda in the mood for Raven ;) On Feb 26, 2010, at 12:10 PM, Gisela Cartaya wrote: My apologize for all, this has been a big mistake error, this is a technical mailing list I ask to the administrator to delete from archive that email as soon as possible. Thanks Greetings. De:

Re: handle astronomically high number of users via the new BigIntegerField and contrib.auth.user

2010-01-10 Thread Frank DiRocco
I assume you could checksum some form of the user's object or "cleaned" form values and store it as unique attribute of the users. You would prolly have to override the clean method and add in valudation of the uniqueness and generate using an alternate method if the first does not

Re: error using memcache and filter()

2010-01-06 Thread Frank DiRocco
'yam, I have not seen this error, but my responses to the error are inline. On Jan 6, 2010, at 6:30 AM, Subramanyam wrote: File "/home/bvemu/lib/python2.6/site-packages/django/core/cache/ backends/memcached.py", line 37, in set self._cache.set(smart_str(key), value, timeout or

Re: Custom Authentication Backend

2009-12-03 Thread Frank DiRocco
Or you could hack/port the library Peter spoke of earlier and add the functionality you are looking for :] but how would you admin it, and i bet alot would break at first sight. On Dec 3, 2009, at 4:33 PM, Peter Herndon wrote: > > On Dec 3, 2009, at 3:29 PM, bfrederi wrote: > >> I'm not

Re: Timer in Django

2009-12-03 Thread Frank DiRocco
Why use a timer, what about storing time in a "taken_time" column in your model, then subtract expiration time from current and check if this number is grater than the "Taken time" timestamp In the view the gets ready to render a browsable object, just do the same time difference hickamajig

Re: Returning Django objects from Ajax request

2009-12-02 Thread Frank DiRocco
I'm not so sure that a django question as much as it is a Python question... http://docs.python.org/library/json.html On Dec 2, 2009, at 2:01 PM, jul wrote: > I'm using jQuery post: > > $.post("/getRestaurant/", location, > function(data) { > /* stuff */ > }); >

Re: Browsing Django modules from interactive python shell

2009-12-02 Thread Frank DiRocco
nagement', 'signals', 'urlresolvers'] Thnx Bill for that info :] On Dec 2, 2009, at 11:37 AM, Kenny Meyer wrote: > On Wed, 2 Dec 2009 11:19:41 -0500 > Frank DiRocco <ofang...@gmail.com> wrote: > >> How about trying to look at whats available for django... mine says &g

Re: Browsing Django modules from interactive python shell

2009-12-02 Thread Frank DiRocco
How about trying to look at whats available for django... mine says this >>> import django >>> dir(django) ['VERSION', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'conf', 'contrib', 'core', 'db', 'dispatch', 'forms', 'get_version', 'http', 'middleware',

Re: missing template for login page

2009-12-02 Thread Frank DiRocco
I'm very interested in this as well. I wrote almost all the forms and logic to do what this module already does :/ I should lrn2RTFM! but that's been an uphill battle for many ppl ;) On Dec 2, 2009, at 8:48 AM, Andreas Kuntzagk wrote: > Hi, > > I try to get user authentication working. I

Re: Inlineformset_factory and User model

2009-12-02 Thread Frank DiRocco
request.user will give you the User object from the django.contrib.auth.models, but Authors has no relation. If you slightly modify your Book model to make authors relate to the above module, you can eliminate the Authors Model and the "user" of you Book model. class Book(models.Model):

Re: Help with installing MySQLdb package for Django on OS X Snow Leopard

2009-12-02 Thread Frank DiRocco
James, With Snow Leo and preinstalled MySQL5 the package I'm using is here. http://sourceforge.net/projects/mysql-python/files/ MySQL-python-1.2.3c1.tar.gz Direct Link: http://sourceforge.net/projects/mysql-python/files/mysql-python-test/1.2.3c1/MySQL-python-1.2.3c1.tar.gz/download IMHO,