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 muwaga micheal

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 "C:\

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 resolve

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
',data2='data2'): I am getting **mock object(formsList_queryset) should be iterable** so if I make it iterable like this **[formsList_queryset]**. Then i am getting error **" AttributeError: 'list' object has no attribute 'exists'**. I guess it is because after making the mock object ite

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

2015-05-06 Thread Shekar Tippur
ets.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

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

2015-05-03 Thread Vijay Khemlani
t; When I use this, I get the error: > > 'type' object is not iterable > > > TypeError at /users/ > > 'type' object is not iterable > > Request Method:GETRequest URL:http://127.0.0.1:8000/users/Django Version: > 1.8Exception Type:TypeErrorException Value: > > 'type' object is no

'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/ 'type' object

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 Michael --

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 this messag

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: > > 'funct

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 iterable Exception

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: > > from photo

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: > > from photo

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): images

Re: TypeError: 'float' object is not iterable

2010-01-20 Thread Simon Brunning
2010/1/20 Christopher Bird <birdchristoph...@gmail.com>: > 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' obje

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 }} {{ states.1

Re: TemplateSyntaxError: 'property' object is not iterable

2009-12-18 Thread Chris Curvey
t;        # do something 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 "TemplateSyntaxE

TemplateSyntaxError: 'property' object is not iterable

2009-12-17 Thread Chris Curvey
%} 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 runs, but i

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{%

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 %} >

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 iterable.

Re: 'RelatedManager' object is not iterable

2009-08-04 Thread Alex Gaynor
x.html", > {'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 iterable. > > I w

'RelatedManager' object is not iterable

2009-08-04 Thread british.assassin
r 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

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

'NoneType' object is not iterable

2009-05-08 Thread Kalle
/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/uncaughtexception/drop; % HOST h = httplib.HTTPConnection(HOST) headers = { "Content-Type" : "text/html; char

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

2009-04-08 Thread Karen Tracey
t; > But when it comes 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 in

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

2009-04-08 Thread James
: '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.unregister(User) #class

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

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', 'HTTP_PROXY_CONNECTION': 'Keep-Alive', 'PATH_INFO': u'http://88.80.7.248/prox

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

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

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'), >

Re: 'NoneType' object is not iterable

2008-11-04 Thread Javi
hing 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://localhostenter/ > > Exception Type:         TypeError > > Exce

Re: 'NoneType' object is not iterable

2008-11-04 Thread Xiong Chiamiov
ding 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: > > NoneTyp

'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://localhostenter

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

Re: ManyRelatedManager object is not iterable

2007-05-30 Thread Russell Keith-Magee
> > > > > 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 problem is that it wa

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' object i

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 obligation in oblig

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 the query sets it pr

ManyRelatedManager object is not iterable

2007-05-29 Thread Todd O'Bryan
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 oblig_list %} Any ideas what's going on? Thanks, Todd