I'll try to update my code.
On Tue, Aug 10, 2010 at 10:06 AM, Xavier Ordoquy <xordo...@linovia.com>wrote: > Actually I have pinax (trunk) running with the social template and django > 1.2 without issue using sqlite on OSX. > I can change my profile timezone in this application without any issue, > everything seems to be working fine. > > Somehow, the changes you made seem to have messed up something or you don't > use the right pinax/django versions. > > Regards, > Xavier. > > Le 10 août 2010 à 14:21, Daniel França a écrit : > > the log files are for tests purposes only. > I'm inserting the site table myself. > > is it a bug in pinax profiles? accounts? I didn't get the point. > > > On Tue, Aug 10, 2010 at 9:10 AM, Xavier Ordoquy <xordo...@linovia.com>wrote: > >> It is definitively an issue in your code. >> >> syncdb won't run without complaining about the timezone field in your >> account model. >> Once commented, syncdb continues but at some point will fail because it >> expects a site to be configured but at this point, the site table is not >> garanteed to be there... >> >> btw, you also have a couple of hard coded path here and there (the log >> files for example). >> >> Regards, >> Xavier. >> >> Le 10 août 2010 à 13:12, Daniel França a écrit : >> >> ahh... and my code is in github >> if someone wanna test it: http://github.com/danielfranca/Tint >> >> 2010/8/10 Daniel França <daniel.fra...@gmail.com> >> >>> My code is based on Pinax: http://pinaxproject.com/ >>> and the Profile comes from there. >>> >>> >>> On Tue, Aug 10, 2010 at 5:33 AM, tsmets <tsm...@gmail.com> wrote: >>> >>>> My feeling is that you are now hitting a bug from your app & not a >>>> django / python / mac / ... issue. >>>> A stupid gess from me ... >>>> You use a Custom Profile for the User and it is an upgrade from Django >>>> 1.1 and ... you need to adapt the minor details about it . >>>> If you code is in a SVN server I can do a svn export and test it here >>>> if you want ... if I do have the same problem ... it is yr app :( >>>> >>>> \T, >>>> >>>> >>>> >>>> On Aug 9, 10:40 pm, Daniel França <daniel.fra...@gmail.com> wrote: >>>> > Thanx for all the help, >>>> > I tried to run on Sqlite3, and I don't if it's bad or good news, but >>>> there's >>>> > error even in Sqlite3 >>>> > >>>> > just when I tried to create the db (syncdb) I get just after I input >>>> my >>>> > users data or when I try to create a user in shell: >>>> > Traceback (most recent call last): >>>> > File "manage.py", line 31, in <module> >>>> > execute_from_command_line() >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", >>>> > line 429, in execute_from_command_line >>>> > utility.execute() >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", >>>> > line 379, in execute >>>> > self.fetch_command(subcommand).run_from_argv(self.argv) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py", >>>> > line 191, in run_from_argv >>>> > self.execute(*args, **options.__dict__) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py", >>>> > line 218, in execute >>>> > output = self.handle(*args, **options) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py", >>>> > line 347, in handle >>>> > return self.handle_noargs(**options) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", >>>> > line 103, in handle_noargs >>>> > emit_post_sync_signal(created_models, verbosity, interactive, db) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/sql.py", >>>> > line 185, in emit_post_sync_signal >>>> > interactive=interactive, db=db) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/dispatch/dispatcher.py", >>>> > line 162, in send >>>> > response = receiver(signal=self, sender=sender, **named) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", >>>> > line 44, in create_superuser >>>> > call_command("createsuperuser", interactive=True) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", >>>> > line 166, in call_command >>>> > return klass.execute(*args, **defaults) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py", >>>> > line 218, in execute >>>> > output = self.handle(*args, **options) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", >>>> > line 134, in handle >>>> > User.objects.create_superuser(username, email, password) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/models.py", >>>> > line 133, in create_superuser >>>> > u = self.create_user(username, email, password) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/models.py", >>>> > line 129, in create_user >>>> > user.save(using=self._db) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/base.py", >>>> > line 435, in save >>>> > self.save_base(using=using, force_insert=force_insert, >>>> > force_update=force_update) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/base.py", >>>> > line 543, in save_base >>>> > created=(not record_exists), raw=raw) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/dispatch/dispatcher.py", >>>> > line 162, in send >>>> > response = receiver(signal=self, sender=sender, **named) >>>> > File >>>> > >>>> "/Users/danielfranca/workspace/django/view/tint/apps/account/models.py", >>>> > line 61, in create_account >>>> > account, created = >>>> > >>>> Account.objects.get_or_create(user=instance,timezone='America/Sao_Paulo') >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/manager.py", >>>> > line 135, in get_or_create >>>> > return self.get_query_set().get_or_create(**kwargs) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py", >>>> > line 366, in get_or_create >>>> > return self.get(**kwargs), False >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py", >>>> > line 336, in get >>>> > num = len(clone) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py", >>>> > line 81, in __len__ >>>> > self._result_cache = list(self.iterator()) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py", >>>> > line 269, in iterator >>>> > for row in compiler.results_iter(): >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py", >>>> > line 672, in results_iter >>>> > for rows in self.execute_sql(MULTI): >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py", >>>> > line 727, in execute_sql >>>> > cursor.execute(sql, params) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/util.py", >>>> > line 15, in execute >>>> > return self.cursor.execute(sql, params) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", >>>> > line 200, in execute >>>> > return Database.Cursor.execute(self, query, params) >>>> > sqlite3.InterfaceError: Error binding parameter 0 - probably >>>> unsupported >>>> > type. >>>> > >>>> > I don't know if has something todo, but my Mac OSX is is english, and >>>> my >>>> > timezone is São Paulo - Brazil. >>>> > >>>> > Daniel-Francas-MacBook-Pro:tint danielfranca$ python manage.py shell >>>> > 2.7 (r27:82508, Jul 3 2010, 20:17:05) >>>> > [GCC 4.0.1 (Apple Inc. build 5493)] >>>> > Python 2.7 (r27:82508, Jul 3 2010, 20:17:05) >>>> > [GCC 4.0.1 (Apple Inc. build 5493)] on darwin >>>> > Type "help", "copyright", "credits" or "license" for more information. >>>> > (InteractiveConsole)>>> from django.contrib.auth.models import User >>>> > >>> new_user = create_user('teste','te...@gmail.com','teste') >>>> > >>>> > Traceback (most recent call last): >>>> > File "<console>", line 1, in <module> >>>> > NameError: name 'create_user' is not defined>>> new_user = >>>> User.objects.create_user('teste','te...@gmail.com','teste') >>>> > >>>> > Traceback (most recent call last): >>>> > File "<console>", line 1, in <module> >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/models.py", >>>> > line 129, in create_user >>>> > user.save(using=self._db) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/base.py", >>>> > line 435, in save >>>> > self.save_base(using=using, force_insert=force_insert, >>>> > force_update=force_update) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/base.py", >>>> > line 543, in save_base >>>> > created=(not record_exists), raw=raw) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/dispatch/dispatcher.py", >>>> > line 162, in send >>>> > response = receiver(signal=self, sender=sender, **named) >>>> > File >>>> > >>>> "/Users/danielfranca/workspace/django/view/tint/apps/account/models.py", >>>> > line 61, in create_account >>>> > account, created = >>>> > >>>> Account.objects.get_or_create(user=instance,timezone='America/Sao_Paulo') >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/manager.py", >>>> > line 135, in get_or_create >>>> > return self.get_query_set().get_or_create(**kwargs) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py", >>>> > line 366, in get_or_create >>>> > return self.get(**kwargs), False >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py", >>>> > line 336, in get >>>> > num = len(clone) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py", >>>> > line 81, in __len__ >>>> > self._result_cache = list(self.iterator()) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py", >>>> > line 269, in iterator >>>> > for row in compiler.results_iter(): >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py", >>>> > line 672, in results_iter >>>> > for rows in self.execute_sql(MULTI): >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py", >>>> > line 727, in execute_sql >>>> > cursor.execute(sql, params) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/util.py", >>>> > line 15, in execute >>>> > return self.cursor.execute(sql, params) >>>> > File >>>> > >>>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", >>>> > line 200, in execute >>>> > return Database.Cursor.execute(self, query, params) >>>> > InterfaceError: Error binding parameter 0 - probably unsupported type. >>>> > >>>> > On Mon, Aug 9, 2010 at 10:53 AM, Russell Keith-Magee < >>>> > >>>> > russ...@keith-magee.com> wrote: >>>> > > I use PostgreSQL on my Mac as well as MySQL, and I've had many fewer >>>> > > problems with PostgreSQL than I've had with MySQL. >>>> > >>>> > > My personal opinion: Ignore all the ports/fink stuff, and get a good >>>> > > native PostgreSQL install: >>>> > >>>> > >http://postgresqlformac.com >>>> > >>>> > > The 8.4.3 installer has some known problems (easy to fix if you know >>>> > > what they are, but easier to avoid if this is your first time), but >>>> > > other than that, this is a pretty reliable source of installers and >>>> > > native tools. Once you've got the database installed, psycopg2 >>>> > > installs from source fairly cleanly. >>>> > >>>> > > Yours, >>>> > > Russ Magee %-) >>>> > >>>> > > On 8/9/10, lukaszb <lukaszbalcer...@gmail.com> wrote: >>>> > > > I haven't read all the comments here but if you've just started >>>> > > > working on osx you should definitely check out >>>> > >>>> > ... >>>> > >>>> > read more » >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Django users" group. >>>> To post to this group, send email to django-us...@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/django-users?hl=en. >>>> >>>> >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-us...@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. >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@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. > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.