Is this what You mean??
TypeError at / 'MediaDefiningClass' object is not iterableRequest Method: GET Request URL: http://localhost:8000/ Exception Type: TypeError Exception Value: 'MediaDefiningClass' object is not iterable Exception Location: C:\Python26\lib\site-packages\django\contrib\admin \sites.py in register, line 73 Python Executable: C:\Python26\python.exe Python Version: 2.6.1 Python Path: ['C:\\ajan\\meds', 'C:\\Python26\\lib\\site-packages\ \setuptools-0.6c9-py2.6.egg', 'C:\\Windows\\system32\\python26.zip', 'C:\\Python26\\DLLs', 'C:\\Python26\\lib', 'C:\\Python26\\lib\\plat- win', 'C:\\Python26\\lib\\lib-tk', 'C:\\Python26', 'C:\\Python26\\lib\ \site-packages', 'C:\\Python26\\lib\\site-packages\\PIL'] Server time: Thu, 2 Jul 2009 13:23:02 -0600 Traceback Switch back to interactive view C:\Python26\lib\site-packages\django\core\handlers\base.py in get_response 0.0. # Get urlconf from request object, if available. Otherwise use default.0. urlconf = getattr(request, "urlconf", settings.ROOT_URLCONF)0.0. resolver = urlresolvers.RegexURLResolver(r'^/', urlconf)0. try: 0. callback, callback_args, callback_kwargs = resolver.resolve(0. request.path_info) ... 0.0. # Apply view middleware0. for middleware_method in self._view_middleware:0. response = middleware_method(request, callback, callback_args, callback_kwargs) 0. if response:0. return response▶ Local vars Variable Value exc_info (<type 'exceptions.TypeError'>, TypeError ("'MediaDefiningClass' object is not iterable",), <traceback object at 0x024896C0>) exceptions <module 'django.core.exceptions' from 'C:\Python26\lib\site- packages\django\core\exceptions.pyc'> middleware_method <bound method AuthenticationMiddleware.process_request of <django.contrib.auth.middleware.AuthenticationMiddleware object at 0x0247DDB0>> receivers [(<function _rollback_on_exception at 0x02220CF0>, None)] request <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': '6a3c7b5a4e068befe47abf61ccd959f7'}, META: {'ALLUSERSPROFILE': 'C:\\ProgramData', 'APPDATA': 'C:\\Users\\jim\ \AppData\\Roaming', 'APR_ICONV1_PATH': 'C:\\Program Files\\CollabNet Subversion Server\\httpd\\bin\\iconv', 'CLASSPATH': '.;C:\\Program Files\\Java\\jre6\\lib\\ext\\QTJava.zip', 'COMMONPROGRAMFILES': 'C:\ \Program Files\\Common Files', 'COMPUTERNAME': 'SMILEY-PC', 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'DJANGO_SETTINGS_MODULE': 'meds.settings', 'EUDIR': 'C:\\EUPHORIA', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GRAILS_HOME': 'c:\\Grails\ \grails-1.0.4', 'GROOVY_HOME': 'C:\\Program Files\\Groovy\ \Groovy-1.5.4', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Users\\jim', 'HTTP_ACCEPT': 'image/gif, image/jpeg, image/pjpeg, application/x-ms- application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/ vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en- us', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': 'sessionid=6a3c7b5a4e068befe47abf61ccd959f7', 'HTTP_HOST': 'localhost: 8000', 'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322)', 'JAVA_HOME': 'c:\\program files\\java\\jre6', 'LOCALAPPDATA': 'C:\\Users\\jim\\AppData\\Local', 'LOGONSERVER': '\\\ \SMILEY-PC', 'NUMBER_OF_PROCESSORS': '4', 'ONLINESERVICES': 'Online Services', 'OS': 'Windows_NT', 'PATH': 'C:\\Program Files\\CollabNet Subversion Server;C:\\Windows\\system32;C:\\Windows;C:\\Windows\ \System32\\Wbem;C:\\Python26;C:\\Python26\\lib\\site-packages;c:\ \Program Files\\Common Files\\Roxio Shared\\DLLShared\\;c:\\Program Files\\Common Files\\Roxio Shared\\9.0\\DLLShared\\;C:\\Program Files\ \jEdit;%GROOVY_HOME%\\bin;C:\\Program Files\\MySQL\\MySQL Server 5.1\ \bin;C:\\Program Files\\Common Files\\DivX Shared\\%sqliute%;C:\ \Program Files\\QuickTime\\QTSystem\\;C:\\EUPHORIA\\BIN;;C:\\EUPHORIA\ \BIN;C:\\Program Files\\Groovy\\Groovy-1.5.4\\bin;c:\\program files\ \java\\jre6\\bin;c:\\Grails\\grails-1.0.4\\bin;%PYTHON_HOME%; %PYTHON_HOME%\\bin;%PYTHON_HOME%\\debug_toolbar;', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.groovy;.gy', 'PATH_INFO': u'/', 'PCBRAND': 'Pavilion', 'PLATFORM': 'HPD', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 15 Stepping 11, GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '0f0b', 'PROGRAMDATA': 'C:\\ProgramData', 'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'PUBLIC': 'C:\ \Users\\Public', 'PYTHON_HOME': 'c:\\python26\\', 'QTJAVA': 'C:\ \Program Files\\Java\\jre6\\lib\\ext\\QTJava.zip', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'ROXIOCENTRAL': 'c:\\Program Files\\Common Files\\Roxio Shared\ \9.0\\Roxio Central33\\', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'smiley-PC', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.6.1', 'SESSIONNAME': 'Console', 'SQLITE': 'c:\\ajan\\sqlite-3_6_14_2', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\Windows', 'TEMP': 'C:\\Users\ \jim\\AppData\\Local\\Temp', 'TMP': 'C:\\Users\\jim\\AppData\\Local\ \Temp', 'USERDOMAIN': 'smiley-PC', 'USERNAME': 'jim', 'USERPROFILE': 'C:\\Users\\jim', 'WINDIR': 'C:\\Windows', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x019130C0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x0246D6F0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> resolver <RegexURLResolver meds.urls ^/> response None self <django.core.handlers.wsgi.WSGIHandler object at 0x0245EE70> settings <django.conf.LazySettings object at 0x01C721F0> urlconf 'meds.urls' urlresolvers <module 'django.core.urlresolvers' from 'C:\Python26\lib \site-packages\django\core\urlresolvers.pyc'> C:\Python26\lib\site-packages\django\core\urlresolvers.py in resolve 0. reverse_dict = property(_get_reverse_dict)0.0. def resolve (self, path):0. tried = []0. match = self.regex.search (path)0. if match:0. new_path = path[match.end():] 0. for pattern in self.url_patterns: ...0. try:0. sub_match = pattern.resolve(new_path) 0. except Resolver404, e:0. tried.extend([(pattern.regex.pattern + ' ' + t) for t in e.args[0] ['tried']])0. else:0. if sub_match:▶ Local vars Variable Value match <_sre.SRE_Match object at 0x0247CE58> new_path u'' path u'/' self <RegexURLResolver meds.urls ^/> tried [] C:\Python26\lib\site-packages\django\core\urlresolvers.py in _get_url_patterns 0. return self._urlconf_module0. except AttributeError:0. self._urlconf_module = import_module(self.urlconf_name)0. return self._urlconf_module0. urlconf_module = property (_get_urlconf_module)0.0. def _get_url_patterns(self):0. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) ...0. try:0. iter(patterns) 0. except TypeError:0. raise ImproperlyConfigured ("The included urlconf %s doesn't have any"0. "patterns in it" % self.urlconf_name)0. return patterns▶ Local vars Variable Value self <RegexURLResolver meds.urls ^/> C:\Python26\lib\site-packages\django\core\urlresolvers.py in _get_urlconf_module 0. tried.append (pattern.regex.pattern)0. raise Resolver404, {'tried': tried, 'path': new_path}0.0. def _get_urlconf_module(self): 0. try:0. return self._urlconf_module0. except AttributeError:0. self._urlconf_module = import_module(self.urlconf_name) ...0. return self._urlconf_module0. urlconf_module = property (_get_urlconf_module)0.0. def _get_url_patterns(self):0. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)0. try:▶ Local vars Variable Value self <RegexURLResolver meds.urls ^/> C:\Python26\Lib\site-packages\django\utils\importlib.py in import_module 0. raise TypeError("relative imports require the 'package' argument")0. level = 00. for character in name:0. if character != '.':0. break0. level += 10. name = _resolve_name(name [level:], package, level)0. __import__(name) ...0. return sys.modules[name]▶ Local vars Variable Value name 'meds.urls' package None C:\ajan\meds\..\meds\urls.py in <module> 0.from django.conf.urls.defaults import *0.from django.contrib import admin0.from meds.patients.views import search0.admin.autodiscover() ... 0.0.urlpatterns = patterns('',0. (r'^admin/(.*)', admin.site.root), 0. 0.# r'^admin/doc/', include('django.contrib.admindocs.urls'), 0. ( r'^', include('meds.patients.urls')),▶ Local vars Variable Value __builtins__ {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'WindowsError': <type 'exceptions.WindowsError'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2008 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-Z plus Return to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built- in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'min': <built- in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-Z plus Return to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built- in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __doc__ None __file__ None __name__ None __package__ None admin None handler404 None handler500 None include None patterns None search None url None C:\Python26\lib\site-packages\django\contrib\admin\__init__.py in autodiscover 0. try:0. imp.find_module('admin', app_path)0. except ImportError:0. continue0.0. # Step 3: import the app's admin file. If this has errors we want them0. # to bubble up.0. import_module ("%s.admin" % app) ...0. # autodiscover was successful, reset loading flag.0. LOADING = False▶ Local vars Variable Value app 'meds.patients' app_path ['C:\\ajan\\meds\\..\\meds\\patients'] imp <module 'imp' (built-in)> settings <django.conf.LazySettings object at 0x01C721F0> C:\Python26\Lib\site-packages\django\utils\importlib.py in import_module 0. raise TypeError("relative imports require the 'package' argument")0. level = 00. for character in name:0. if character != '.':0. break0. level += 10. name = _resolve_name(name [level:], package, level)0. __import__(name) ...0. return sys.modules[name]▶ Local vars Variable Value name 'meds.patients.admin' package None C:\ajan\meds\..\meds\patients\admin.py in <module> 0.# inlines = [PillsInline]0. list_display = ['order_date']0. search_fields = ['Pills']0. date_hierarchy = 'order_date'0.0.#admin.site.register (Patient)0.#admin.site.register( Doctor)0.admin.site.register (PillsAdmin) ...▶ Local vars Variable Value Doctor None Patient None Pills None PillsAdmin None PillsInline None __builtins__ {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'WindowsError': <type 'exceptions.WindowsError'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2008 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-Z plus Return to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built- in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'min': <built- in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-Z plus Return to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built- in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __doc__ None __file__ None __name__ None __package__ None admin None C:\Python26\lib\site-packages\django\contrib\admin\sites.py in register 0. if admin_class and settings.DEBUG:0. from django.contrib.admin.validation import validate0. else: 0. validate = lambda model, adminclass: None0.0. if isinstance(model_or_iterable, ModelBase):0. model_or_iterable = [model_or_iterable]0. for model in model_or_iterable: ...0. if model in self._registry: 0. raise AlreadyRegistered('The model %s is already registered' % model.__name__)0.0. # If we got **options then dynamically construct a subclass of0. # admin_class with those **options.0. if options:▶ Local vars Variable Value admin_class <class 'django.contrib.admin.options.ModelAdmin'> model_or_iterable <class 'meds.patients.admin.PillsAdmin'> options {} self <django.contrib.admin.sites.AdminSite object at 0x023A2D70> validate <function validate at 0x02456AB0> Environment: Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.1 alpha 1 SVN-10123 Python Version: 2.6.1 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'meds.patients'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.csrf.middleware.CsrfViewMiddleware', 'django.contrib.csrf.middleware.CsrfResponseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware') Traceback: File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response 83. request.path_info) File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in resolve 184. for pattern in self.url_patterns: File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_url_patterns 208. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_urlconf_module 203. self._urlconf_module = import_module (self.urlconf_name) File "C:\Python26\Lib\site-packages\django\utils\importlib.py" in import_module 35. __import__(name) File "C:\ajan\meds\..\meds\urls.py" in <module> 4. admin.autodiscover() File "C:\Python26\lib\site-packages\django\contrib\admin\__init__.py" in autodiscover 56. import_module("%s.admin" % app) File "C:\Python26\Lib\site-packages\django\utils\importlib.py" in import_module 35. __import__(name) File "C:\ajan\meds\..\meds\patients\admin.py" in <module> 21. admin.site.register(PillsAdmin) File "C:\Python26\lib\site-packages\django\contrib\admin\sites.py" in register 73. for model in model_or_iterable: Exception Type: TypeError at / Exception Value: 'MediaDefiningClass' object is not iterable Request information GET No GET data POST No POST data COOKIES Variable Value sessionid '6a3c7b5a4e068befe47abf61ccd959f7' META Variable Value ALLUSERSPROFILE 'C:\\ProgramData' APPDATA 'C:\\Users\\jim\\AppData\\Roaming' APR_ICONV1_PATH 'C:\\Program Files\\CollabNet Subversion Server\\httpd\ \bin\\iconv' CLASSPATH '.;C:\\Program Files\\Java\\jre6\\lib\\ext\\QTJava.zip' COMMONPROGRAMFILES 'C:\\Program Files\\Common Files' COMPUTERNAME 'SMILEY-PC' COMSPEC 'C:\\Windows\\system32\\cmd.exe' CONTENT_LENGTH '' CONTENT_TYPE 'text/plain' DJANGO_SETTINGS_MODULE 'meds.settings' EUDIR 'C:\\EUPHORIA' FP_NO_HOST_CHECK 'NO' GATEWAY_INTERFACE 'CGI/1.1' GRAILS_HOME 'c:\\Grails\\grails-1.0.4' GROOVY_HOME 'C:\\Program Files\\Groovy\\Groovy-1.5.4' HOMEDRIVE 'C:' HOMEPATH '\\Users\\jim' HTTP_ACCEPT 'image/gif, image/jpeg, image/pjpeg, application/x-ms- application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/ vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*' HTTP_ACCEPT_ENCODING 'gzip, deflate' HTTP_ACCEPT_LANGUAGE 'en-us' HTTP_CONNECTION 'Keep-Alive' HTTP_COOKIE 'sessionid=6a3c7b5a4e068befe47abf61ccd959f7' HTTP_HOST 'localhost:8000' HTTP_USER_AGENT 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322)' JAVA_HOME 'c:\\program files\\java\\jre6' LOCALAPPDATA 'C:\\Users\\jim\\AppData\\Local' LOGONSERVER '\\\\SMILEY-PC' NUMBER_OF_PROCESSORS '4' ONLINESERVICES 'Online Services' OS 'Windows_NT' PATH 'C:\\Program Files\\CollabNet Subversion Server;C:\\Windows\ \system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Python26;C:\ \Python26\\lib\\site-packages;c:\\Program Files\\Common Files\\Roxio Shared\\DLLShared\\;c:\\Program Files\\Common Files\\Roxio Shared\\9.0\ \DLLShared\\;C:\\Program Files\\jEdit;%GROOVY_HOME%\\bin;C:\\Program Files\\MySQL\\MySQL Server 5.1\\bin;C:\\Program Files\\Common Files\ \DivX Shared\\%sqliute%;C:\\Program Files\\QuickTime\\QTSystem\\;C:\ \EUPHORIA\\BIN;;C:\\EUPHORIA\\BIN;C:\\Program Files\\Groovy\ \Groovy-1.5.4\\bin;c:\\program files\\java\\jre6\\bin;c:\\Grails\ \grails-1.0.4\\bin;%PYTHON_HOME%;%PYTHON_HOME%\\bin;%PYTHON_HOME%\ \debug_toolbar;' PATHEXT '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.groovy;.gy' PATH_INFO u'/' PCBRAND 'Pavilion' PLATFORM 'HPD' PROCESSOR_ARCHITECTURE 'x86' PROCESSOR_IDENTIFIER 'x86 Family 6 Model 15 Stepping 11, GenuineIntel' PROCESSOR_LEVEL '6' PROCESSOR_REVISION '0f0b' PROGRAMDATA 'C:\\ProgramData' PROGRAMFILES 'C:\\Program Files' PROMPT '$P$G' PUBLIC 'C:\\Users\\Public' PYTHON_HOME 'c:\\python26\\' QTJAVA 'C:\\Program Files\\Java\\jre6\\lib\\ext\\QTJava.zip' QUERY_STRING '' REMOTE_ADDR '127.0.0.1' REMOTE_HOST '' REQUEST_METHOD 'GET' ROXIOCENTRAL 'c:\\Program Files\\Common Files\\Roxio Shared\\9.0\ \Roxio Central33\\' RUN_MAIN 'true' SCRIPT_NAME u'' SERVER_NAME 'smiley-PC' SERVER_PORT '8000' SERVER_PROTOCOL 'HTTP/1.1' SERVER_SOFTWARE 'WSGIServer/0.1 Python/2.6.1' SESSIONNAME 'Console' SQLITE 'c:\\ajan\\sqlite-3_6_14_2' SYSTEMDRIVE 'C:' SYSTEMROOT 'C:\\Windows' TEMP 'C:\\Users\\jim\\AppData\\Local\\Temp' TMP 'C:\\Users\\jim\\AppData\\Local\\Temp' USERDOMAIN 'smiley-PC' USERNAME 'jim' USERPROFILE 'C:\\Users\\jim' WINDIR 'C:\\Windows' wsgi.errors <open file '<stderr>', mode 'w' at 0x019130C0> wsgi.file_wrapper <class 'django.core.servers.basehttp.FileWrapper'> wsgi.input <socket._fileobject object at 0x0246D6F0> wsgi.multiprocess False wsgi.multithread True wsgi.run_once False wsgi.url_scheme 'http' wsgi.version (1, 0) Settings Using settings module meds.settings Setting Value ABSOLUTE_URL_OVERRIDES {} ADMINS () ADMIN_FOR () ADMIN_MEDIA_PREFIX '/media/' ALLOWED_INCLUDE_ROOTS () APPEND_SLASH True AUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend',) BANNED_IPS () CACHE_BACKEND 'locmem://' CACHE_MIDDLEWARE_KEY_PREFIX '' CACHE_MIDDLEWARE_SECONDS 600 COMMENTS_ALLOW_PROFANITIES False COMMENTS_BANNED_USERS_GROUP None COMMENTS_FIRST_FEW 0 COMMENTS_MODERATORS_GROUP None COMMENTS_SKETCHY_USERS_GROUP None DATABASE_ENGINE 'sqlite3' DATABASE_HOST '' DATABASE_NAME 'c:/ajan/meds/med6.db' DATABASE_OPTIONS {} DATABASE_PASSWORD '********************' DATABASE_PORT '' DATABASE_USER '' DATETIME_FORMAT 'N j, Y, P' DATE_FORMAT 'N j, Y' DEBUG True DEBUG_PROPAGATE_EXCEPTIONS False DEFAULT_CHARSET 'utf-8' DEFAULT_CONTENT_TYPE 'text/html' DEFAULT_FILE_STORAGE 'django.core.files.storage.FileSystemStorage' DEFAULT_FROM_EMAIL 'webmas...@localhost' DEFAULT_INDEX_TABLESPACE '' DEFAULT_TABLESPACE '' DISALLOWED_USER_AGENTS () EMAIL_HOST 'localhost' EMAIL_HOST_PASSWORD '********************' EMAIL_HOST_USER '' EMAIL_PORT 25 EMAIL_SUBJECT_PREFIX '[Django] ' EMAIL_USE_TLS False FILE_CHARSET 'utf-8' FILE_UPLOAD_HANDLERS ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') FILE_UPLOAD_MAX_MEMORY_SIZE 2621440 FILE_UPLOAD_PERMISSIONS None FILE_UPLOAD_TEMP_DIR None FIXTURE_DIRS () FORCE_SCRIPT_NAME None IGNORABLE_404_ENDS ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php') IGNORABLE_404_STARTS ('/cgi-bin/', '/_vti_bin', '/_vti_inf') INSTALLED_APPS ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'meds.patients'] INTERNAL_IPS () JING_PATH '/usr/bin/jing' LANGUAGES (('ar', 'Arabic'), ('bn', 'Bengali'), ('bg', 'Bulgarian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('et', 'Estonian'), ('es-ar', 'Argentinean Spanish'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('ga', 'Irish'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('ko', 'Korean'), ('km', 'Khmer'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('lt', 'Lithuanian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) LANGUAGES_BIDI ('he', 'ar', 'fa') LANGUAGE_CODE 'en-us' LANGUAGE_COOKIE_NAME 'django_language' LOCALE_PATHS () LOGIN_REDIRECT_URL '/accounts/profile/' LOGIN_URL '/accounts/login/' LOGOUT_URL '/accounts/logout/' MANAGERS () MEDIA_ROOT '' MEDIA_URL '' MIDDLEWARE_CLASSES ('django.middleware.common.CommonMiddleware', 'django.contrib.csrf.middleware.CsrfViewMiddleware', 'django.contrib.csrf.middleware.CsrfResponseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware') MONTH_DAY_FORMAT 'F j' PASSWORD_RESET_TIMEOUT_DAYS '********************' PREPEND_WWW False PROFANITIES_LIST '********************' ROOT_URLCONF 'meds.urls' SECRET_KEY '********************' SEND_BROKEN_LINK_EMAILS False SERVER_EMAIL 'r...@localhost' SESSION_COOKIE_AGE 1209600 SESSION_COOKIE_DOMAIN None SESSION_COOKIE_NAME 'sessionid' SESSION_COOKIE_PATH '/' SESSION_COOKIE_SECURE False SESSION_ENGINE 'django.contrib.sessions.backends.db' SESSION_EXPIRE_AT_BROWSER_CLOSE False SESSION_FILE_PATH None SESSION_SAVE_EVERY_REQUEST False SETTINGS_MODULE 'meds.settings' SITE_ID 1 TEMPLATE_CONTEXT_PROCESSORS ('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media') TEMPLATE_DEBUG True TEMPLATE_DIRS ('c:/ajan/meds/template',) TEMPLATE_LOADERS ('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source') TEMPLATE_STRING_IF_INVALID '' TEST_DATABASE_CHARSET None TEST_DATABASE_COLLATION None TEST_DATABASE_NAME None TEST_RUNNER 'django.test.simple.run_tests' TIME_FORMAT 'P' TIME_ZONE 'America/Chicago' TRANSACTIONS_MANAGED False URL_VALIDATOR_USER_AGENT u'Django/1.1 alpha 1 SVN-10123 (http:// www.djangoproject.com)' USE_ETAGS False USE_I18N True YEAR_MONTH_FORMAT 'F Y' On Jul 2, 11:59 am, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Thu, Jul 2, 2009 at 12:43 PM, jayvandal <jayvan...@gmail.com> wrote: > > > Hi, > > I get this error but don't understand what it means > > ======================================== > > TypeError at / > > 'MediaDefiningClass' object is not iterableRequest Method: GET > > Request URL:http://localhost:8000/ > > Exception Type: TypeError > > Exception Value: 'MediaDefiningClass' object is not iterable > > Exception Location: C:\Python26\lib\site-packages\django\contrib\admin > > \sites.py in register, line 73 > > Python Executable: C:\Python26\python.exe > > Python Version: 2.6.1 > > Python Path: ['C:\\ajan\\meds', 'C:\\Python26\\lib\\site-packages\ > > \setuptools-0.6c9-py2.6.egg', 'C:\\Windows\\system32\\python26.zip', > > 'C:\\Python26\\DLLs', 'C:\\Python26\\lib', 'C:\\Python26\\lib\\plat- > > win', 'C:\\Python26\\lib\\lib-tk', 'C:\\Python26', 'C:\\Python26\\lib\ > > \site-packages', 'C:\\Python26\\lib\\site-packages\\PIL'] > > > Any help will be appreciated > > Jayvandal > > You've ommitted most of the traceback, if you could provide the rest of it > we'd have a much better chance of being to help you. > > Alex > > -- > "I disapprove of what you say, but I will defend to the death your right to > say it." --Voltaire > "The people's good is the highest law."--Cicero- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---