First time here? Check out the FAQ!

cwjacklin's profile - activity

2022-04-10 22:50:12 -0500 received badge Popular Question (source)
2022-04-10 22:50:12 -0500 received badge Famous Question (source)
2022-04-10 22:50:12 -0500 received badge Notable Question (source)
2013-03-30 22:19:17 -0500 asked a question v 0.7.48 0161 + 0162 migration

I am upgrading to 0.7.48

How did junk column in askbot.thread get created?

It's not in askbot models, but first appears in 0161 askbot.thread definition. When I run schemamigration askbot --auto I get this extra migration, which is not part of 0.7.48

  • Deleted field junk on askbot.Thread Created 0162_auto__del_field_thread_junk.py. You can now apply this migration with: ./manage.py migrate askbot

any ideas?

2012-10-14 17:49:25 -0500 received badge Famous Question (source)
2012-09-03 04:23:00 -0500 commented question null value in column "description"

i traced it to badges.init_badges() in run() ... supposed to be able to get_or_create but error results rather than creating.

2012-08-17 18:25:51 -0500 received badge Supporter (source)
2012-08-16 01:24:13 -0500 asked a question page after login to answer a question or comment

if i am not logged in and I ask a question or post a comment, after logging in, I am redirected to LOGIN_REDIRECT_URL

The javascript currently doesn't seem have next=

am i correct in this? if so, can this be a feature request for next release?

thanks.

2012-08-14 23:15:19 -0500 received badge Student (source)
2012-08-14 22:40:25 -0500 asked a question followit doesn't work with django 1.4

when i try to follow users, I get ERROR: [HTTP/1.1 403 FORBIDDEN]

this is because django-followit doesn't support csrf.

Will followit CSRF support be added in the next release?

thanks.

2012-08-14 11:25:01 -0500 commented answer login page keeps reloading

Will this error be fixed in the next release? I guess the next release will be the django 1.4 compatibility release.

2012-08-14 11:24:47 -0500 answered a question login page keeps reloading

Will this error be fixed in the next release? I guess the next release will be the django 1.4 compatibility release.

2012-08-14 11:24:11 -0500 commented answer login page keeps reloading

the reloading code checks if both Facebook keys are there. see provider_javascript.html in skin/common/template/authopenid, so you have to remove one of the FB keys to prevent autoreload

2012-08-14 00:24:06 -0500 commented answer login page keeps reloading

I have the same issue. Cleared all cookies and go to /account/signin/ still get the constant refresh.

2012-08-13 22:37:05 -0500 commented answer oauth, create user error, pk not updated

with django 1.3.1, self.features.can_return_id_from_insert is default to false. We use postgresql. Django is unable to return the pk from the inserted user, to the way to fix this is to use autocommmit.

This is obscure way to resolve it, but this worked for us. You can enable this if you have Postgresql > 8.2 by setting this in your django db settings. 'OPTIONS': {
'autocommit': True, },

2012-08-13 16:42:28 -0500 asked a question oauth, create user error, pk not updated

when creating user in askbot, we need the id of the newly created user in EmailFeedSetting, called from post_save. I look in the django create user code self.save_base(), the pk is not updated after create user, so id is null in User object. This leads to error in saving EmailFeedSetting().

How does Askbot handle this? Is there another place where user pk is updated?

Thanks,

Error Log user = User.objects.create_user(username, email) File "/home/pubmedly/lib/python2.7/django/contrib/auth/models.py", line 136, in create_user user.save(using=self._db) File "/home/pubmedly/lib/python2.7/django/db/models/base.py", line 460, in save self.save_base(using=using, force_insert=force_insert, force_update=force_update)

File "/home/pubmedly/lib/python2.7/django/db/models/base.py", line 578, in save_base [Mon Aug 13 16:49:59 2012] [error] created=(not record_exists), raw=raw, using=using)

File "/home/pubmedly/lib/python2.7/django/dispatch/dispatcher.py", line 172, in send [Mon Aug 13 16:49:59 2012] [error] response = receiver(signal=self, sender=sender, **named)

File "/home/pubmedly/.virtualenvs/django131/lib/python2.7/site-packages/askbot/models/__init__.py", line 3000, in add_missing_subscriptions instance.add_missing_askbot_subscriptions()

File "/home/pubmedly/.virtualenvs/django131/lib/python2.7/site-packages/askbot/models/__init__.py", line 1761, in user_add_missing_askbot_subscriptions feed_setting.save()

File "/home/pubmedly/.virtualenvs/django131/lib/python2.7/site-packages/askbot/models/user.py", line 323, in save super(EmailFeedSetting,self).save(args,*kwargs)

File "/home/pubmedly/lib/python2.7/django/db/models/base.py", line 460, in save [Mon Aug 13 16:49:59 2012] [error] self.save_base(using=using, force_insert=force_insert, force_update=force_update)

File "/home/pubmedly/lib/python2.7/django/db/models/base.py", line 553, in save_base [Mon Aug 13 16:49:59 2012] [error] result = manager._insert(values, return_id=update_pk, using=using)

File "/home/pubmedly/lib/python2.7/django/db/models/manager.py", line 195, in _insert [Mon Aug 13 16:49:59 2012] [error] return insert_query(self.model, values, **kwargs)

File "/home/pubmedly/lib/python2.7/django/db/models/query.py", line 1436, in insert_query [Mon Aug 13 16:49:59 2012] [error] return query.get_compiler(using=using).execute_sql(return_id)

File "/home/pubmedly/lib/python2.7/django/db/models/sql/compiler.py", line 796, in execute_sql [Mon Aug 13 16:49:59 2012] [error] cursor = super(SQLInsertCompiler, self).execute_sql(None)

File "/home/pubmedly/lib/python2.7/django/db/models/sql/compiler.py", line 738, in execute_sql [Mon Aug 13 16:49:59 2012]

File "/home/pubmedly/lib/python2.7/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute [Mon Aug 13 16:49:59 2012]

IntegrityError: null value in column "subscriber_id" violates not-null constraint

2012-08-13 01:09:33 -0500 commented question Require login to access feedback form

maybe there's a setting to enable recapcha?