Re: TypeError: 'module' object is not iterable - django 4

2022-02-01 Thread muwaga micheal
Issue was sorted.. Here is the link. python 3.x - TypeError: 'module' object is not iterable in django 4 - Stack Overflow <https://stackoverflow.com/questions/70924854/typeerror-module-object-is-not-iterable-in-django-4> On Monday, January 31, 2022 at 11:53:03 AM UTC+3 muwa

TypeError: 'module' object is not iterable - django 4

2022-01-31 Thread muwaga micheal
Drives\MDigital\CIT-Letures\python10_env\lib\site-packages\django\urls\resolvers.py", line 634, in url_patterns iter(patterns) TypeError: 'module' object is not iterable The above exception was the direct cause of the following exception: Traceback (most recent call last): File

While executing a Celery Task : 'AsyncResult' object is not iterable

2020-04-21 Thread Dilipkumar Noone
two python lists after task execution. Based on list content I want to display pop up message. When I execute the task using celery and run the Django web development server on form submit , I am getting error message: 'AsyncResult' object is not iterable”. Please suggest how to re

How to make the mock object iterable ['TypeError: 'Mock' object is not iterable'] Need to Mock the django query that is iterating through for loop

2019-05-08 Thread Shashank Gupta
I am trying to mock the below django query object : 1.) if MyModel.objects.filter(data='some_data').exists(): then 2.) for row in MyModel.objects.filter(ListId=id): I am trying to test below django query inside my method. def my_method(some_parameter): if formsList.objects.f

Re: 'type' object is not iterable when I use any decorators

2015-05-06 Thread Shekar Tippur
t; permission_classes = [permissions.TokenHasReadWriteScope] >> queryset = User.objects.all() >> serializer_class = UserSerializer >> model=User >> >> >> When I use this, I get the error: >> >> 'type' object is not iterable >

Re: 'type' object is not iterable when I use any decorators

2015-05-03 Thread Vijay Khemlani
ser_passes_test(lambda u: u.is_superuser) > class UserViewSet(viewsets.ModelViewSet): > permission_classes = [permissions.TokenHasReadWriteScope] > queryset = User.objects.all() > serializer_class = UserSerializer > model=User > > > When I use this, I get the error: &

'type' object is not iterable when I use any decorators

2015-05-03 Thread Shekar Tippur
) class UserViewSet(viewsets.ModelViewSet): permission_classes = [permissions.TokenHasReadWriteScope] queryset = User.objects.all() serializer_class = UserSerializer model=User When I use this, I get the error: 'type' object is not iterable TypeError at /users/ '

Re: object is not iterable

2013-05-24 Thread Michael Radziej
Hi Olivier, > The error is: > Exception Type:TypeErrorException Value: > > 'Relais' object is not iterable > > > > > Have you got an idea on what cause this problem ? It would really help to see a full traceback, could you provide one? Kind regards M

object is not iterable

2013-05-24 Thread Olivier
is_set.all() RelaisFormSet = formset_factory(RelaisForm) formset = RelaisFormSet(initial=relaisList) # <== this line The error is: Exception Type:TypeErrorException Value: 'Relais' object is not iterable Have you got an idea on what cause this problem ? Thank you ;) -- You received t

Re: password reset getting error - 'function' object is not iterable

2010-05-28 Thread Nuno Maltez
At a first glance it looks like a problem with your urls. Could you show us your custom template and url definitions from urls.py? Nuno On Thu, May 27, 2010 at 7:10 PM, Pankaj Singh < singh.pankaj.iitkg...@gmail.com> wrote: > > > > > Exception Value: > > '

password reset getting error - 'function' object is not iterable

2010-05-27 Thread Pankaj Singh
. ** TypeError at /accounts/password/reset/ 'function' object is not iterable Request Method: GET Request URL: http://10.115.4.34:1234/accounts/password/reset/ Exception Type: TypeError Exception Value: 'function' object is not

Re: object is not iterable.

2010-05-14 Thread Gonzalo Delgado
El 14/05/10 18:00, Niels escribió: > In my template this error occurs: > > Caught an exception while rendering: 'Gallery' object is not iterable > > It occurs in this part: > {% for image in car.images %} > > > Where my models looks like: > >

Re: object is not iterable.

2010-05-14 Thread Gonzalo Delgado
El 14/05/10 18:00, Niels escribió: > In my template this error occurs: > > Caught an exception while rendering: 'Gallery' object is not iterable > > It occurs in this part: > {% for image in car.images %} > > > Where my models looks like: > >

object is not iterable.

2010-05-14 Thread Niels
In my template this error occurs: Caught an exception while rendering: 'Gallery' object is not iterable It occurs in this part: {% for image in car.images %} Where my models looks like: from photologue.models import Gallery,Photo ... class CarDetail(models.Model):

Re: TypeError: 'float' object is not iterable

2010-01-20 Thread Simon Brunning
2010/1/20 Christopher Bird : > Hi > > Im trying iterating over a dictionary. > i have no problem with this but when i get to the last key:value > ( value is a list) i get the following error > > > value= list > TypeError: 'float' object is not iterable >

TypeError: 'float' object is not iterable

2010-01-19 Thread Christopher Bird
Hi Im trying iterating over a dictionary. i have no problem with this but when i get to the last key:value ( value is a list) i get the following error value= list TypeError: 'float' object is not iterable django code {% for states in prices_demand.items %} {{ states.0 }} {

Re: TemplateSyntaxError: 'property' object is not iterable

2009-12-18 Thread Chris Curvey
ing to collect bar instances >        return bars >    bars = property(get_bars) > > in my template, I'd like to do something like this: > > {% for bar in foo.bars %} >   {{bar.snafu}} > {% endfor %} > > But when I do that, I get "TemplateSyntaxError: 'proper

TemplateSyntaxError: 'property' object is not iterable

2009-12-17 Thread Chris Curvey
ndfor %} But when I do that, I get "TemplateSyntaxError: 'property' object is not iterable." If I change it to {% for bar in foo.get_bars() %}, I get a TemplateSyntaxError: could not parse the remainder" If I change it to {% for bar in foo.get_bars %}, the template ru

Re: 'RelatedManager' object is not iterable

2009-08-04 Thread british.assassin
Yeah, that did it, thanks. I didn't even notice that, lol Thanks again. On Aug 4, 8:56 pm, Daniel Roseman wrote: > On Aug 4, 8:15 pm, "british.assassin" > wrote: > > > > > > > {% extends "base.html" %} > > > {% block title %}EvoWebs{% endblock %} > > > {% block body %} > > {% if categories %}

Re: 'RelatedManager' object is not iterable

2009-08-04 Thread Daniel Roseman
On Aug 4, 8:15 pm, "british.assassin" wrote: > > {% extends "base.html" %} > > {% block title %}EvoWebs{% endblock %} > > {% block body %} > {% if categories %} > {% for category in categories %} > > {{category.name}} > {% for forum in category.forums %} > {{forum.name}} > {% endfor %} > > {% e

Re: 'RelatedManager' object is not iterable

2009-08-04 Thread british.assassin
{'categories':categories}) > > > And in the template file I am trying to iterate through these via > > doing: > > > {% for category in categories %} > > > But every time I try this I get an exception saying: 'RelatedManager' > > object is not

Re: 'RelatedManager' object is not iterable

2009-08-04 Thread Alex Gaynor
#x27;:categories}) > > And in the template file I am trying to iterate through these via > doing: > > {% for category in categories %} > > But every time I try this I get an exception saying: 'RelatedManager' > object is not iterable. > > I was under the i

'RelatedManager' object is not iterable

2009-08-04 Thread british.assassin
{% for category in categories %} But every time I try this I get an exception saying: 'RelatedManager' object is not iterable. I was under the impression that the output from obkects.all() was iterable? I would appreciate any help anyone can give. Thanks --~--~-~--~~---

Re: 'NoneType' object is not iterable

2009-05-09 Thread Kalle
Hi Malcolm, Thank you very much for the detailed answer! Everything is working OK now. ///Kalle On May 8, 11:53 pm, Malcolm Tredinnick wrote: > On Fri, 2009-05-08 at 11:24 -0700,Kallewrote: > > Hi, > > > I'm just started to play with Django, and ran into this problem right > > away. > > > *

Re: 'NoneType' object is not iterable

2009-05-08 Thread Malcolm Tredinnick
On Fri, 2009-05-08 at 11:24 -0700, Kalle wrote: > Hi, > > I'm just started to play with Django, and ran into this problem right > away. > > * I'm using the python script at the bottom to POST to the url. > * I'm using "manage.py runserver" to run my app > * Everything works fine when I'll run my

'NoneType' object is not iterable

2009-05-08 Thread Kalle
ase.py" in get_response 77. request.path_info) Exception Type: TypeError at http://127.0.0.1:8000/uncaughtexception/drop Exception Value: 'NoneType' object is not iterable --- test script --- HOST = "127.0.0.1:8000" URL = "http://%s/uncaug

Re: UserProfile / admin.site.unregister / "'PropertiedClass' object is not iterable" Error

2009-04-08 Thread Karen Tracey
time to add that to the admin side of things (in > appengine), I get the error: > 'PropertiedClass' object is not iterable > You've left a good bit of info out that might help people help you. First, the full traceback of the error is always a good thing to include, as the

UserProfile / admin.site.unregister / "'PropertiedClass' object is not iterable" Error

2009-04-08 Thread James
error: 'PropertiedClass' object is not iterable This is the latest version of the offending file: from django.contrib import admin from django.contrib.auth.models import User from django.contrib.auth.admin import UserAdmin from userprofile.models import UserProfile admin.site.unregiste

Re: 'NoneType' object is not iterable

2008-11-12 Thread Javi
It works!! Thank you very much!! The django.root PythonOption stripped the initial "/" Greetings. On Nov 11, 11:54 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi Javi, > > > I've tried putting FORCE_SCRIPT_NAME="" but everything continues at > > the same state. I'm running the app in Apache2/

Re: 'NoneType' object is not iterable

2008-11-11 Thread Rajesh Dhawan
Hi Javi, > I've tried putting FORCE_SCRIPT_NAME="" but everything continues at > the same state. I'm running the app in Apache2/mod_python. I've pasted > the htttp.conf file athttp://rafb.net/p/Ya1VKT55.html I can't see your conf file there. Perhaps you want to paste again at http://dpaste.com/

Re: 'NoneType' object is not iterable

2008-11-11 Thread Zeddy
se.py", line 77, in get_response request.path_info) TypeError: 'NoneType' object is not iterable , POST:, COOKIES:{}, META:{'HTTP_ACCEPT': '*/*', 'HTTP_HOST': '88.80.7.248', 'HTTP_PRAGMA': 'no-cache', 'HT

Re: 'NoneType' object is not iterable

2008-11-10 Thread Diego Cibils
Hi Javi, I'm having the same problem... any progress so far? Thanks. On Nov 10, 8:35 am, Javi <[EMAIL PROTECTED]> wrote: > Hello Rajesh, > > I've tried putting FORCE_SCRIPT_NAME="" but everything continues at > the same state. I'm running the app in Apache2/mod_python. I've pasted > the htttp.c

Re: 'NoneType' object is not iterable

2008-11-10 Thread Javi
Hello Rajesh, I've tried putting FORCE_SCRIPT_NAME="" but everything continues at the same state. I'm running the app in Apache2/mod_python. I've pasted the htttp.conf file at http://rafb.net/p/Ya1VKT55.html I'm going to continue trying to solve it. On Nov 5, 7:11 pm, Rajesh Dhawan <[EMAIL PROT

Re: 'NoneType' object is not iterable

2008-11-05 Thread Rajesh Dhawan
Hi Javi, > Thanks but I'd already tried it. I don't understand why in the > production server is not added the preceeding slash to the url. My > urls.py is as follows: > urlpatterns = patterns('candidateTool.assessmentSystem.views', > (r'^$', 'index'), > (r'^enter/$', 'enter'), > (r'^

Re: 'NoneType' object is not iterable

2008-11-04 Thread Javi
t; > On Nov 4, 9:35 am, Javi <[EMAIL PROTECTED]> wrote: > > > Hello everybody! > > I'm using django 1.0-1 version and Apache as a server web. In the dev > > server everything works fine but in the production server I get the > > following error when I ask for a

Re: 'NoneType' object is not iterable

2008-11-04 Thread Xiong Chiamiov
receeding ones. On Nov 4, 9:35 am, Javi <[EMAIL PROTECTED]> wrote: > Hello everybody! > I'm using django 1.0-1 version and Apache as a server web. In the dev > server everything works fine but in the production server I get the > following error when I ask for a url: > &g

'NoneType' object is not iterable

2008-11-04 Thread Javi
Hello everybody! I'm using django 1.0-1 version and Apache as a server web. In the dev server everything works fine but in the production server I get the following error when I ask for a url: NoneType' object is not iterable Request Method: POST Request URL:http://loca

Anyone familiar with ''ModelBase' object is not iterable' error?

2008-05-19 Thread Kenneth McDonald
I'm trying to get a form working so that a user can enter data without using the admin interface. I've gotten this far, but this error has me stumped, as I'm not sure where in my chain of things (form from model, template, etc.) it's likely cause is. Hoping someone else has had something s

Re: ManyRelatedManager object is not iterable

2007-05-30 Thread Russell Keith-Magee
e 18 > > > > > > Caught an exception while rendering: 'ManyRelatedManager' object is not > > iterable > > > > 18 {% for obligation in oblig_list %} > > > OK. I figured out the problem. Russ was right that I had forgotten > a .all--the probl

Re: ManyRelatedManager object is not iterable

2007-05-30 Thread Todd O'Bryan
On Tue, 2007-05-29 at 21:38 -0400, Todd O'Bryan wrote: > Template error > In > template > /home/tobryan1/workspace/dmi/src/dmi/orgs/templates/obligationList.html, > error at line 18 > > > Caught an exception while rendering: 'ManyRelatedManager'

Re: ManyRelatedManager object is not iterable

2007-05-29 Thread Todd O'Bryan
On Wed, 2007-05-30 at 09:50 +0800, Russell Keith-Magee wrote: > On 5/30/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > > > Caught an exception while rendering: 'ManyRelatedManager' object is not > > iterable > > > > 18 {% for obligat

Re: ManyRelatedManager object is not iterable

2007-05-29 Thread Russell Keith-Magee
On 5/30/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > Caught an exception while rendering: 'ManyRelatedManager' object is not > iterable > > 18 {% for obligation in oblig_list %} > > Any ideas what's going on? The Manager isn't iterable, but

ManyRelatedManager object is not iterable

2007-05-29 Thread Todd O'Bryan
) And the (relevant part of the) error I get in the browser: Template error In template /home/tobryan1/workspace/dmi/src/dmi/orgs/templates/obligationList.html, error at line 18 Caught an exception while rendering: 'ManyRelatedManager' object is not iterable 18 {% for obligation in