vasuporov / snapboard

Automatically exported from code.google.com/p/snapboard
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

syncdb fails when creating thread #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Running at revision 52, under django revision 4434.  DB is postgresql,
using psycopy2 for db interaction.

After configuring up the settings.py, I ran the syncdb and got the following:

> python manage.py syncdb
Creating table django_admin_log
Creating table auth_message
Creating table auth_group
Creating table auth_user
Creating table auth_permission
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table snapboard_category
Creating table snapboard_thread
Creating table snapboard_forumuserdata
Creating table snapboard_moderator
Creating table snapboard_abuselist
Creating table snapboard_watchlist
Creating table snapboard_post

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): yes
Username (Leave blank to use 'jpittman'): jedi
E-mail address: jedi@peepz.net
Password: 
Password (again): 
Superuser created successfully.
thread  0 created
Traceback (most recent call last):
  File "manage.py", line 11, in ?
    execute_manager(settings)
  File "/usr/local/lib/python2.4/site-packages/django/core/management.py",
line 1447, in execute_manager
    execute_from_command_line(action_mapping, argv)
  File "/usr/local/lib/python2.4/site-packages/django/core/management.py",
line 1355, in execute_from_command_line
    action_mapping[action](int(options.verbosity), options.interactive)
  File "/usr/local/lib/python2.4/site-packages/django/core/management.py",
line 508, in syncdb
    verbosity=verbosity, interactive=interactive)
  File
"/usr/local/lib/python2.4/site-packages/django/dispatch/dispatcher.py",
line 347, in send
    sender=sender,
  File
"/usr/local/lib/python2.4/site-packages/django/dispatch/robustapply.py",
line 47, in robustApply
    return receiver(*arguments, **named)
  File
"/usr/home/jpittman/snapboard/examplesite/../examplesite/snapboard/management.py
",
line 47, in test_setup
    thread.save()
  File "/usr/local/lib/python2.4/site-packages/django/db/models/base.py",
line 204, in save
    ','.join(placeholders)), db_values)
  File "/usr/local/lib/python2.4/site-packages/django/db/backends/util.py",
line 12, in execute
    return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: value too long for type character varying(80)

> 

Original issue reported on code.google.com by johnnie....@gmail.com on 30 Jan 2007 at 10:09

GoogleCodeExporter commented 8 years ago
Hey Johnie - this bug has been fixed in my personal development branch which 
should
be merged into trunk some time tomorrow.  In the meantime, you can check out:

http://snapboard.googlecode.com/svn/branches/bshi-sandbox

Original comment by bs1...@gmail.com on 31 Jan 2007 at 6:24

GoogleCodeExporter commented 8 years ago
Merged bshi-sandbox into trunk, many enhancements and fixes.  Please verify

Original comment by bs1...@gmail.com on 31 Jan 2007 at 6:59

GoogleCodeExporter commented 8 years ago

Original comment by bs1...@gmail.com on 31 Jan 2007 at 7:00

GoogleCodeExporter commented 8 years ago
Fixed.  New changes look good too.  Thanks

Original comment by johnnie....@gmail.com on 31 Jan 2007 at 7:21

GoogleCodeExporter commented 8 years ago

Original comment by bs1...@gmail.com on 31 Jan 2007 at 3:19