Re: Django IndexError: list index out of range

2013-08-24 Thread Oleg Gorjajnov
Yes, this is typo. But I don't see there no edit button суббота, 24 августа 2013 г., 20:52:45 UTC+4 пользователь WongoBongo написал: > > Can you change the name of this file from > > newweb/polls/__init.py__ > > to > > newweb/polls/__init__.py > > That file name is not right. > > K > > > > On

Re: Django IndexError: list index out of range

2013-08-24 Thread Kelvin Wong
Can you change the name of this file from newweb/polls/__init.py__ to newweb/polls/__init__.py That file name is not right. K On Saturday, August 24, 2013 8:02:38 AM UTC-7, Oleg Gorjajnov wrote: > > I'm new to Django. > > > newweb/ > manage.py > newweb/ >

Re: Django IndexError: list index out of range

2013-08-24 Thread Oleg Gorjajnov
No, I have no problems with manage.py runserver or syncdb. Just now tried build this code in PyCharm and got the same error суббота, 24 августа 2013 г., 19:42:04 UTC+4 пользователь tom написал: > > > On 24 Aug 2013, at 16:02, Oleg Gorjajnov > wrote: > > And this is *not

Re: Django IndexError: list index out of range

2013-08-24 Thread Thomas Scrace
On 24 Aug 2013, at 16:02, Oleg Gorjajnov wrote: > And this is not my case. > > So what's wrong with that? It must work well without meta classes. > Do you get any problems when you do manage.py runserver or syncdb? I think your problem stems from trying to build

Django IndexError: list index out of range

2013-08-24 Thread Oleg Gorjajnov
s.py", line 3, in class Poll(models.Model): File "C:\python27\lib\site-packages\django\db\models\base.py", line 93, in __new__ kwargs = {"app_label": model_module.__name__.split('.')[-2]} IndexError: list index out of range - What to do? I have read that t

IndexError: list index out of range

2009-09-21 Thread Chris McComas
I am trying to write to CSV, I was able to do so before, not sure what the problem is... When my query returns results, I get this error http://dpaste.com/96399/ Here's my view http://dpaste.com/96398/ If the query is empty it opens the CSV with only the header row... What am I doing wrong?

Re: IndexError (list index out of range) in admin when updating a regex char primary key

2009-03-29 Thread TeenSpirit83
Karen you're always a big help for me on django. Thank you so much! I was imaging the same thing you explained about problems with the objects pointing to the key i want to change. So I was thinking to create a new counter primary key for that model and turn the current primary key into a simple

Re: IndexError (list index out of range) in admin when updating a regex char primary key

2009-03-26 Thread Karen Tracey
On Thu, Mar 26, 2009 at 7:06 AM, TeenSpirit83 wrote: > > I can't find nothing similar on this group! Can you please help me? > I get this error trace in the django 1.0.2 admin when updating a char > primary key in a regex field. > Thank you in advance! > I think

IndexError (list index out of range) in admin when updating a regex char primary key

2009-03-26 Thread TeenSpirit83
I can't find nothing similar on this group! Can you please help me? I get this error trace in the django 1.0.2 admin when updating a char primary key in a regex field. Thank you in advance! Environment: Request Method: POST Request URL: http://localhost/admin/webamf/azienda/04573030659/ Django

Re: Model fails in shell but not in runserver - IndexError: list index out of range

2009-01-26 Thread phoebebright
go/towns/models.py", line 8, in ? > >    class Category(models.Model): > >  File "/usr/lib/python2.4/site-packages/django/db/models/base.py", > > line 51, in __new__ > >    kwargs = {"app_label": model_module.__name__.split('.')[-2]} > > IndexE

Re: Model fails in shell but not in runserver - IndexError: list index out of range

2009-01-26 Thread Karen Tracey
t recent call last): > File "", line 1, in ? > File "/home/django/towns/models.py", line 8, in ? >class Category(models.Model): > File "/usr/lib/python2.4/site-packages/django/db/models/base.py", > line 51, in __new__ > kwargs = {"app_label&q

Model fails in shell but not in runserver - IndexError: list index out of range

2009-01-26 Thread phoebebright
y(models.Model): File "/usr/lib/python2.4/site-packages/django/db/models/base.py", line 51, in __new__ kwargs = {"app_label": model_module.__name__.split('.')[-2]} IndexError: list index out of range I can try and import any class from the model and I get the same error

Re: template IndexError (list index out of range)

2008-04-12 Thread Jonathan Lukens
Of course. Thank you. I'm nearly braindead from doing taxes. On Apr 12, 11:12 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Apr 12, 2008 at 9:28 AM, Jonathan Lukens <[EMAIL PROTECTED]> > wrote: > > > > > > > I started getting an IndexError on a page today that has worked fine > > in

Re: template IndexError (list index out of range)

2008-04-12 Thread Karen Tracey
On Sat, Apr 12, 2008 at 9:28 AM, Jonathan Lukens <[EMAIL PROTECTED]> wrote: > > I started getting an IndexError on a page today that has worked fine > in the past. The uses a wrapped object_list generic view to render a > template with the following loop: > >{% for baby in object_list %}

template IndexError (list index out of range)

2008-04-12 Thread Jonathan Lukens
I started getting an IndexError on a page today that has worked fine in the past. The uses a wrapped object_list generic view to render a template with the following loop: {% for baby in object_list %} {% if baby.photo %} {% endif