Monday, June 15, 2015

Re: django Object not iterable error

No, you need to post the parts of your code that may have triggered the error.

In this case, your urls.py and the method in your views.py that handles the request probably.

On Mon, Jun 15, 2015 at 9:32 PM, Shekar Tippur <ctippur@gmail.com> wrote:
James,

Is this what you mean?

- Shekar
 
Environment:      Request Method: POST  Request URL: http://127.0.0.1:8000/product/    Django Version: 1.8.2  Python Version: 3.4.3  Installed Applications:  ('django.contrib.admin',   'django.contrib.auth',   'django.contrib.contenttypes',   'django.contrib.sessions',   'django.contrib.messages',   'django.contrib.staticfiles',   'product',  )  Installed Middleware:  ('disable.DisableCSRF',   'django.contrib.sessions.middleware.SessionMiddleware',   'django.middleware.common.CommonMiddleware',   'django.middleware.csrf.CsrfViewMiddleware',   'django.contrib.auth.middleware.AuthenticationMiddleware',   'django.contrib.auth.middleware.SessionAuthenticationMiddleware',   'django.contrib.messages.middleware.MessageMiddleware',   'django.middleware.clickjacking.XFrameOptionsMiddleware',   'django.middleware.security.SecurityMiddleware')      Traceback:  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response    119.                 resolver_match = resolver.resolve(request.path_info)  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/django/core/urlresolvers.py" in resolve    368.                     sub_match = pattern.resolve(new_path)  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/django/core/urlresolvers.py" in resolve    238.             kwargs.update(self.default_args)    Exception Type: TypeError at /product/  Exception Value: 'function' object is not iterable

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a5df84ec-2d2f-47ef-bdef-4cbbfaa7406b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALn3ei0WdSBgfSwnnFGcp%2BacFQMm0AXyTFbf4fWOLLnBhf%2B9_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment