First time here? Check out the FAQ!

gabriel_cervantes's profile - activity

2016-03-08 09:08:00 -0500 received badge Nice Question (source)
2016-03-08 09:04:21 -0500 received badge Notable Question (source)
2016-03-08 09:04:21 -0500 received badge Popular Question (source)
2015-10-28 10:46:19 -0500 received badge Notable Question (source)
2015-09-16 14:26:07 -0500 received badge Popular Question (source)
2015-06-18 06:08:54 -0500 received badge Famous Question (source)
2015-06-16 03:12:36 -0500 received badge Famous Question (source)
2015-05-26 18:39:59 -0500 commented question Error running Askbot on Openshift

It turns out that it was the same bug causing this issue: http://askbot.org/en/question/13218/fielderror-at/%3C/p (http://askbot.org/en/question/13218/fielderror-at/</p<>>)

2015-05-26 13:55:16 -0500 commented question FieldError at /

I have the same problem on OpenShift. I thought it was related to the environment.

2015-05-24 22:36:35 -0500 asked a question Error running Askbot on Openshift

I've been trying to get Askbot to run on Openshift but I keep bumping into this error:

Environment:

Request Method: GET Request URL: ...

Django Version: 1.5.12 Python Version: 2.7.5 Installed Applications: ('longerusername', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.humanize', 'django.contrib.sitemaps', 'django.contrib.messages', 'compressor', 'askbot', 'askbot.deps.django_authopenid', 'south', 'askbot.deps.livesettings', 'keyedcache', 'robots', 'django_countries', 'djcelery', 'djkombu', 'followit', 'tinymce', 'group_messaging') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware', 'askbot.middleware.forum_mode.ForumModeMiddleware', 'askbot.middleware.cancel.CancelActionMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'askbot.middleware.view_log.ViewLogMiddleware', 'askbot.middleware.spaceless.SpacelessMiddleware')

Traceback: File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 101. resolver_match = resolver.resolve(request.path_info) File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve 338. for pattern in self.url_patterns: File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/core/urlresolvers.py" in url_patterns 366. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module 361. self._urlconf_module = import_module(self.urlconf_name) File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/utils/importlib.py" in import_module 35. __import__(name) File "/var/lib/openshift/556280355973caf2c40000c0/app-root/runtime/repo/urls.py" in <module> 16. admin.autodiscover() File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/contrib/admin/__init__.py" in autodiscover 29. import_module('%s.admin' % app) File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/utils/importlib.py" in import_module 35. __import__(name) File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/robots/admin.py" in <module> 5. from robots.forms import RuleAdminForm File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/robots/forms.py" in <module> 7. class RuleAdminForm(forms.ModelForm): File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/forms/models.py" in __new__ 221. raise FieldError(message)</module></module></module>

Exception Type: FieldError at /questions/ Exception Value: Unknown field(s) (a, l, _) specified for Rule

The Openshift environemnt is pretty simple: just Python 2.7.5 and PostgreSQL 9.2. This is how I installed Askbot onto Openshift:

  1. run askbot-install on my localmachine and edit settings.py
  2. push everything to Openshift's GIT repo
  3. have Openshift run the rest of the commands in the official installation guide via the deploy hook

Theoretically, this should replicate what one typically does when following the official installation guide.

Any thoughts on what might be causing this error?

2015-05-24 18:14:48 -0500 commented answer DatabaseError: column "avatar_urls" of relation "auth_user" already exists

It works now. Thanks!

2015-05-24 18:14:40 -0500 received badge Scholar ( source )
2015-05-15 09:00:14 -0500 received badge Enthusiast
2015-05-13 12:03:14 -0500 received badge Popular Question (source)
2015-05-13 12:03:14 -0500 received badge Famous Question (source)
2015-05-13 12:03:14 -0500 received badge Notable Question (source)
2015-05-09 10:38:21 -0500 asked a question What versions of Django does Askbot support?

I've managed to successfully install AskBot using the official documentation. However, it seems that it comes with Django 1.5.12 which is no longer supported.

If I update Django to the latest version, will AskBot still work? If not, what is the latest version that AskBot supports?

2015-05-03 11:54:11 -0500 received badge Editor (source)
2015-05-02 19:51:01 -0500 received badge Student (source)
2015-05-02 19:39:15 -0500 asked a question DatabaseError: column "avatar_urls" of relation "auth_user" already exists

I'm trying to install the latest version of askbot from askbot-devel (0.7.53) but I got stuck on the following error.

C:\Projects\askbottest>python manage.py migrate askbot WARNING!!! You are using a 'locmem' (local memory) caching backend, which is OK for a low volume site running on a single-process server. For a multi-process configuration it is neccessary to have a production cache system, such as redis or memcached.

With local memory caching and multi-process setup you might intermittently see outdated content on your site.

Running migrations for askbot: - Migrating forwards to 0189_add_avatar_urls_jsonfield_to_auth_user.

askbot:0189_add_avatar_urls_jsonfield_to_auth_user FATAL ERROR - The following SQL query failed: ALTER TABLE "auth_user" ADD COLUMN "avatar_urls" text NOT NULL DEFAULT '{}'; The error was: column "avatar_urls" of relation "auth_user" already exists

Error in migration: askbot:0189_add_avatar_urls_jsonfield_to_auth_user DatabaseError: column "avatar_urls" of relation "auth_user" already exists

Any ideas?

EDIT:

I ended up replacing forward() with this:

def forwards(self, orm): #db.add_column('auth_user', 'avatar_urls', # self.gf('jsonfield.fields.JSONField')(default={}), # keep_default=False) pass

in 0189_add_avatar_urls_jsonfield_to_auth_user.py

I was able to complete the migration but this is just a quick workaround not a proper solution.