I'm bringing my django code base from production server to a clean install on development. The environments are different, but I'm getting some very strange errors that I don't seem to be able to figure out ... I was wondering if anyone had experienced the same issues ...
Prod Server : django-.97 && Python 2.3.4 Dev Server: django 1.0 && Python 2.5 ### ERROR 1 ### Environment: Request Method: GET Request URL: http://localhost:8000/telelist/ Django Version: 1.0-final-SVN-unknown Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'tarait.tarait1'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.middleware.transaction.TransactionMiddleware') Traceback: File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/home/babo/django/tarait/../tarait/tarait1/views.py" in telelist 1178. if request.method == 'GET' and request.has_key('location') : Exception Type: AttributeError at /telelist/ Exception Value: 'WSGIRequest' object has no attribute 'has_key' ### ERROR 2 ### Environment: Request Method: GET Request URL: http://localhost:8000/blog/venture-capital-pitfalls/ Django Version: 1.0-final-SVN-unknown Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'tarait.tarait1'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.middleware.transaction.TransactionMiddleware') Traceback: File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/home/babo/django/tarait/../tarait/tarait1/views.py" in blog 405. tally_count = Blog.objects.filter(category = i).filter(active = 't').count() File "/usr/lib/python2.5/site-packages/django/db/models/query.py" in count 290. return self.query.get_count() File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py" in get_count 237. data = obj.execute_sql(SINGLE) File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py" in execute_sql 1700. cursor.execute(sql, params) File "/usr/lib/python2.5/site-packages/django/db/backends/util.py" in execute 19. return self.cursor.execute(sql, params) File "/usr/lib/python2.5/site-packages/django/db/backends/postgresql/ base.py" in execute 52. return self.cursor.execute(smart_str(sql, self.charset), self.format_params(params)) Exception Type: ProgrammingError at /blog/venture-capital-pitfalls/ Exception Value: ERROR: operator does not exist: character varying = integer LINE 1: ...M "tarait1_blog" WHERE ("tarait1_blog"."category" = 0 AND "... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. SELECT COUNT(*) FROM "tarait1_blog" WHERE ("tarait1_blog"."category" = 0 AND "tarait1_blog"."active" = True ) Neither error occurs on the production server. These are fairly strange errors that occur on both the dev server locally and the local apache server ... Anyone have any ideas ? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---