Apache
Erro do django-reversion 1.5 com django <1.3.x
by Felipe 'chronos' Prenholato on 11:06, under Apache, Django, Servidores
Nota: Olá meus caros leitores, apesar do ChronosBox ser um ótimo Blog, eu estou focando meus esforços em um blog conjunto com meu amigo Handrus Nogueira, portanto não deixem de visitar o Dev With Passion! Todos os posts do ChronosBox estarão no Dev With Passion, exceto por alguns comentários novos. Abraços!
Isso me aconteceu a pouco e eu não vi resultados no google para o erro em específico, então estou eu aqui fazendo minha parte
.
Caso você ver o erro abaixo e tiver rodando reversion 1.5 + django 1.2.x, você precisa instalar alguma versão menor que a 1.5 do reversion, pois a 1.5 só suporta django 1.3 (veja tabela de versões aqui).
Segue a exception:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | [Tue Sep 27 10:19:17 2011] [error] MyLDAPUser->AUTHENTICATE: felipe.rafael@pdg.com.br authenticated :D [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] mod_wsgi (pid=14847): Exception occurred processing WSGI script '/var/www/qas3/portal/apache/virtualenv-qas3.wsgi'. [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] Traceback (most recent call last): [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/core/handlers/wsgi.py", line 252, in __call__ [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] response = middleware_method(request, response) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/site-packages/reversion/middleware.py", line 20, in process_response [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] reversion.revision.end() [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/site-packages/reversion/revisions.py", line 301, in end [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] comment = self._state.comment, [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/db/models/manager.py", line 138, in create [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] return self.get_query_set().create(**kwargs) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/db/models/query.py", line 358, in create [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] obj.save(force_insert=True, using=self.db) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/db/models/base.py", line 458, in save [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] self.save_base(using=using, force_insert=force_insert, force_update=force_update) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/db/models/base.py", line 551, in save_base [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] result = manager._insert(values, return_id=update_pk, using=using) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/db/models/manager.py", line 195, in _insert [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] return insert_query(self.model, values, **kwargs) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/db/models/query.py", line 1524, in insert_query [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] return query.get_compiler(using=using).execute_sql(return_id) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/db/models/sql/compiler.py", line 788, in execute_sql [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] cursor = super(SQLInsertCompiler, self).execute_sql(None) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/db/models/sql/compiler.py", line 732, in execute_sql [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] cursor.execute(sql, params) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/db/backends/util.py", line 15, in execute [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] return self.cursor.execute(sql, params) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/src/django/django/db/backends/mysql/base.py", line 86, in execute [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] return self.cursor.execute(query, args) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/site-packages/MySQLdb/cursors.py", line 176, in execute [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] if not self._defer_warnings: self._warning_check() [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] File "/opt/python2.6/lib/python2.6/site-packages/MySQLdb/cursors.py", line 92, in _warning_check [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] warn(w[-1], self.Warning, 3) [Tue Sep 27 10:19:17 2011] [error] [client 192.168.20.79] Warning: Field 'manager_slug' doesn't have a default value |