Re: Curious Error

2009-03-29 Thread Martin Ostrovsky
You're passing your template variable `classcolors` to the template filter `random`. Looking at the code for random.py: File "/usr/lib/python2.5/random.py", line 248, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: string index out of

Curious Error

2009-03-28 Thread Ramdas S
Can someone advise? I have the same code working in several web sites. But since moving to 10177, I am getting this error. It sometimes works in Dev server, in Apache its been a problem http://dpaste.com/20529/ -- Ramdas S +91 9342 583 065 --~--~-~--~~~---~--~~

Re: Curious error

2008-04-25 Thread Ramdas S
My apologies Karen, I have a root directory called xml where some xml files are created. That is the problem. Never noticed the same Ramdas On Fri, Apr 25, 2008 at 8:06 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 10:26 AM, Ramdas S <[EMAIL PROTECTED]> wrote: > >> No.

Re: Curious error

2008-04-25 Thread Karen Tracey
On Fri, Apr 25, 2008 at 10:26 AM, Ramdas S <[EMAIL PROTECTED]> wrote: > No. I have not! I am facing this problem after upgrading to the latest. > > RS > > > On Fri, Apr 25, 2008 at 7:53 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > >> On Fri, Apr 25, 2008 at 10:06 AM, Ramdas S <[EMAIL PROTECTED]>

Re: Curious error

2008-04-25 Thread Ramdas S
No. I have not! I am facing this problem after upgrading to the latest. RS On Fri, Apr 25, 2008 at 7:53 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 10:06 AM, Ramdas S <[EMAIL PROTECTED]> wrote: > >> I am on the latest SVN. When I just tried syncdb. >> >> I got this

Re: Curious error

2008-04-25 Thread Karen Tracey
On Fri, Apr 25, 2008 at 10:06 AM, Ramdas S <[EMAIL PROTECTED]> wrote: > I am on the latest SVN. When I just tried syncdb. > > I got this error about xml.sax as in this paste bin > > http://dpaste.com/46898/ > > any help or advice > Paste shows the original exception to be: from

Curious error

2008-04-25 Thread Ramdas S
I am on the latest SVN. When I just tried syncdb. I got this error about xml.sax as in this paste bin http://dpaste.com/46898/ any help or advice --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Curious error with Session Variables

2007-05-10 Thread Diego pylorca
Thanks Graham :) it works!! On 5/9/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > Try reenabling PHP, but delve into the PHP setup and disable the > loading of the PHP mhash module first. > > There have been cases where the PHP mhash module has clashed in some > way with the

Re: Curious error with Session Variables

2007-05-09 Thread Graham Dumpleton
Try reenabling PHP, but delve into the PHP setup and disable the loading of the PHP mhash module first. There have been cases where the PHP mhash module has clashed in some way with the Python md5 hash modules and caused the Python module to give back incorrect results. This may have an effect

Re: Curious error with Session Variables

2007-05-09 Thread Diego pylorca
Nop, when I disable mod-php5, the admin works correctly :( my web browsers are firefox and opera and IE, but it is not a client host problem :'( On 5/8/07, John DeRosa <[EMAIL PROTECTED]> wrote: > > > Perhaps check your firewall, anti-hijack, anti-trojan, etc. software. > You may have a cookie

Re: Curious error with Session Variables

2007-05-08 Thread John DeRosa
Perhaps check your firewall, anti-hijack, anti-trojan, etc. software. You may have a cookie guard enabled. For example, Webroot's Spy Sweeper has a set of "shields" for web browsers, and they include the blocking of certain tracking cookies and some IE security 'protection'. Perhaps your

Re: Curious error with Session Variables

2007-05-08 Thread Diego pylorca
m I deployed my site, and in the admin when i try to login i get this message: "Looks like your browser isn't configured to accept cookies. Please enable cookies, reload this page, and try again." the cookies is enabled. my server is a debian etch stable (intalled modpython apache2 and

Re: Curious error with Session Variables

2007-05-08 Thread Diego pylorca
For more info about me config: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch3 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at *** Port 80 and my vhost: ServerName ***.net ServerAlias www..net CustomLog /var/log/apache2/***/access.log combined

Re: Curious error with Session Variables

2007-04-04 Thread chasfs
There are several things going on here. If you have multiple django sites all setting sessions cookies, make sure that the SESSION_COOKIE_NAME and SESSION_COOKIE_DOMAIN are unique in the respective settings.py files. You also need to clean out old session rows in the django_session database. You

Re: Curious error with Session Variables

2007-04-03 Thread Kenneth Gonsalves
On 03-Apr-07, at 11:06 PM, Ramdas S wrote: > Looks like your browser isn't configured to accept cookies. Please > enable cookies, reload this page, and try again. > > > Later if I persist > > I get this error one person on irc was getting this - he solved it by physically restarting apache

Re: Curious error with Session Variables

2007-04-03 Thread Ramdas S
browsing through the user groups, I see that the issue is a clash between Django and PHP4/5. I cannot turn them off, since some sites on our server still use PHP. Is there any solution where we can ensure that Django does not clash with PHP and live peacefully. I am eager to know Ramdas On

Curious error with Session Variables

2007-04-03 Thread Ramdas S
Since last few days I am getting this error on Django web sites hosted. Obviously it is clashing with something. When I work on admin interface to add or delete content, I get logged off and it takes some time for me to login again. I get the following messages Please enter a correct username

Re: Curious error

2007-01-02 Thread Jorge Gajon
On 1/1/07, Ramdas S <[EMAIL PROTECTED]> wrote: class billnumber(models.Model): date = models.DateTimeField(auto_now_add=True, primary_key = True) def __str__(self): return self.id You added the 'primary_key' attribute to your date field, therefore your model will not have an

Re: Curious Error

2007-01-02 Thread Daniel Roseman
Ramdas S wrote: I got this model class billnumber(models.Model): date = models.DateTimeField(auto_now_add=True, primary_key = True) def __str__(self): return self.id class Admin: pass class Meta: ordering = ['-date',] Trying to populate the table using

Curious Error

2007-01-01 Thread Ramdas S
I got this model class billnumber(models.Model): date = models.DateTimeField(auto_now_add=True, primary_key = True) def __str__(self): return self.id class Admin: pass class Meta: ordering = ['-date',] Trying to populate the table using Admin This is

Curious error

2007-01-01 Thread Ramdas S
I got this model class billnumber(models.Model): date = models.DateTimeField(auto_now_add=True, primary_key = True) def __str__(self): return self.id class Admin: pass class Meta: ordering = ['-date',] Trying to populate the table using Admin This is

Re: Curious error with Free Comments

2006-11-16 Thread Ramdas S
I removed the primary_key field now it is working. Otherwise it works with object.slug instead of object.id in case your model has a primary_key on the slug On 11/16/06, Sir Knight < [EMAIL PROTECTED]> wrote: > > > No, I neve touched any of those > > I guess it has to do with the fact that I do

Re: Curious error with Free Comments

2006-11-16 Thread Sir Knight
No, I neve touched any of those I guess it has to do with the fact that I do not have article.id property. What did I do wrong in models this time around Ramdas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Curious error with Free Comments

2006-11-16 Thread [EMAIL PROTECTED]
Have you altered the freecomment model? I had the same error (well.. something similar) when I changed it to accept person_url and person_email. If so, it is an error in your view which is causing this. On Nov 16, 12:06 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote: > Hi, > > I have been trying to

Curious error with Free Comments

2006-11-16 Thread Ramdas S
Hi, I have been trying to integrate Free Comments following the popular article -- http://code.djangoproject.com/wiki/UsingFreeComment I am getting this error. VariableDoesNotExist at /articles/2006/nov/11/shahjahan/ Failed lookup for key [id] in This my code snippet from