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 range
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
--~--~-~--~~~---~--~~
Yo
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.
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]>
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 erro
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 xml.sax.saxut
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" group
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 Py
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 on
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 g
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 syst
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 mysq
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
P
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
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
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 4/3/0
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 an
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 'i
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
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 throwin
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 throwin
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 no
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
"D
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 int
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 article_detail.html
25 matches
Mail list logo