Hello everybody,

Description:

margaux mmm # ./manage.py syncdb
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table immo_zipcode
Creating table immo_zone
Creating table immo_configurationdeterrain
Creating table immo_formedeterrain
Creating table immo_terraintype
Creating table immo_secteur
Creating table immo_ville
Creating table immo_quartier
Creating table immo_departement
Creating table immo_pubpresse
Creating table immo_pubinternet
Creating table immo_categoriedelot
Creating table immo_categoriedeterrain
Creating table immo_categoriedehabitable
Creating table immo_categoriedelcp
Creating table immo_souscategoriedehabitable
Creating table immo_souscategoriedelcp
Creating table immo_genredebien
Creating table immo_loidefiscalisation
Creating table immo_equipementprivatif
Creating table immo_equipementcollectif
Creating table immo_annexe
Creating table immo_typedemandat
Creating table immo_typedebail
Creating table immo_activite
Creating table immo_activitepourlcp
Creating table immo_statutdebien
Creating table immo_typedecode
Creating table immo_code
Creating table immo_typedenvironnement
Creating table immo_environnement
Creating table immo_typedemeuble
Creating table immo_meuble
Creating table immo_typedepiece
Creating table immo_piece
Creating table immo_typedeinformationcomplementaire
Creating table immo_informationcomplementaire
Creating table immo_typedepiecelcp
Creating table immo_piecelcp
Creating table immo_typedeprestation
Creating table immo_mandat
Creating table immo_lotaddresse
Creating table immo_textes
Creating table immo_categoriededocument
Creating table immo_document
Creating table immo_imagepublique
Creating table immo_bien
Creating table immo_pourvente
Creating table immo_pourlocation
Creating table immo_terrain
Creating table immo_descriptifdeimmeuble
Creating table immo_lot
Creating table immo_lcp
Creating table immo_typetransactionlcp
Creating table immo_userprofile
Creating table immo_typedeinformationcomplementairecontact
Creating table immo_informationcomplementairecontact
Creating table immo_typedeclient
Creating table immo_civilite
Creating table immo_contactclassification
Creating table immo_location
Creating table immo_lotissement
Creating table immo_residence
Creating table immo_descriptifderesidence
Creating table immo_prestationderesidence
Creating table registration_registrationprofile
Creating table django_project_version
Creating table django_evolution

You just installed Django's auth system, which means you don't have
any superusers defined.
Would you like to create one now? (yes/no): no
Installing baseline version
Traceback (most recent call last):
  File "./manage.py", line 11, in <module>
    execute_manager(settings)
  File "/home/mmm/sites/mmm/__init__.py", line 340, in execute_manager

  File "/home/mmm/sites/mmm/__init__.py", line 295, in execute

  File "/home/mmm/django/core/management/base.py", line 195, in run_from_argv
  File "/home/mmm/django/core/management/base.py", line 222, in execute
  File "/home/mmm/django/core/management/base.py", line 351, in handle
  File "/home/mmm/lib/django/core/management/commands/syncdb.py", line
98, in handle_noargs
    emit_post_sync_signal(created_models, verbosity, interactive)
  File "/home/mmm/lib/django/core/management/sql.py", line 205, in
emit_post_sync_signal
    interactive=interactive)
  File "/home/mmm/django/dispatch/dispatcher.py", line 148, in send
  File "/home/mmm/lib/django/contrib/auth/management/__init__.py",
line 28, in create_permissions
    defaults={'name': name, 'content_type': ctype})
  File "/home/mmm/django/db/models/manager.py", line 96, in get_or_create
  File "/home/mmm/django/db/models/query.py", line 339, in get_or_create
  File "/home/mmm/django/db/models/base.py", line 328, in save
  File "/home/mmm/django/db/models/base.py", line 400, in save_base
  File "/home/mmm/django/db/models/manager.py", line 138, in _insert
  File "/home/mmm/django/db/models/query.py", line 894, in insert_query
  File "/home/mmm/django/db/models/sql/subqueries.py", line 309, in execute_sql
  File "/home/mmm/django/db/models/sql/query.py", line 1756, in execute_sql
  File "/home/mmm/django/db/backends/util.py", line 19, in execute
psycopg2.ProgrammingError: value too long for type character varying(50)

Apparently, this patch fixed it:
Index: ../../lib/django/contrib/auth/models.py
===================================================================
--- ../../lib/django/contrib/auth/models.py     (revision 9637)
+++ ../../lib/django/contrib/auth/models.py     (working copy)
@@ -60,9 +60,9 @@

     Three basic permissions -- add, change and delete -- are
automatically created for each Django model.
     """
-    name = models.CharField(_('name'), max_length=50)
+    name = models.CharField(_('name'), max_length=100)
     content_type = models.ForeignKey(ContentType)
-    codename = models.CharField(_('codename'), max_length=100)
+    codename = models.CharField(_('codename'), max_length=150)

     class Meta:
         verbose_name = _('permission')

Is it worth reporting the bug?

Regards, James.

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

Reply via email to