First time here? Check out the FAQ!

Adi Roiban's profile - activity

2013-12-02 12:30:33 -0500 received badge Notable Question (source)
2013-03-10 23:37:50 -0500 received badge Popular Question (source)
2012-12-26 18:16:12 -0500 received badge Notable Question (source)
2012-10-18 10:49:55 -0500 received badge Famous Question (source)
2012-09-09 12:53:33 -0500 received badge Famous Question (source)
2012-07-30 08:26:21 -0500 received badge Famous Question (source)
2011-11-29 07:57:17 -0500 received badge Famous Question (source)
2011-11-07 14:58:40 -0500 received badge Popular Question (source)
2011-08-11 02:37:02 -0500 received badge Notable Question (source)
2011-05-24 23:43:34 -0500 received badge Popular Question (source)
2011-04-10 18:06:06 -0500 commented answer Can I respond to a question via email?
Email notification are ok since you are in control over the email format . Email reply integration can get messy since email formating is pretty loose. Maybe a plugin for various email clients can be created to post an answer or a commend based on email notifications...
2011-04-04 05:14:21 -0500 asked a question Is there a way to use placeholders in the FAQ page for various karma values.

I would like to create a faq page that explains the importantance of karma/reputation number and what options are unlocked at various karma levels.

I remember that in OSQA there were some placeholders that could be used in the FAQ page and osqa would replace them with the value defined in the admin page.

I see there are some similar strings in the translation PO file, but I don't know how to use them.

Is such option available in askbot?

Thanks!

2011-04-04 05:10:15 -0500 asked a question Can i load about and faq page from static files?

Is there an option to load the content of about and faq page from a static file... mabye use markdown.

Right now in the admin section I can only see some textareas, but editing text in there is not easy. Right now I will have to copy the text in a text editor, edit, copy it back and save.

2011-04-04 04:45:48 -0500 commented answer Migration errors using latest git branch
Thanks for the answer. The django_authopenid was not removed... not sure what was the problem. It was still in testing so I just done a clean reinstall. I have also tested a new update and this time it was ok (but i think that no DB migration were required).
2011-04-04 04:44:17 -0500 marked best answer Migration errors using latest git branch

Adi, have you done python manage.py flush some time before the upgrade?

If so - then the migration history was erased from the database and the only way to recover is to "fake"-migrate the apps to the pre-upgrade stage. And then run the actual upgrade the command is:

python manage.py migrate <the_app> <schema_version> --fake

But you need to know to what schema version to go, for example:

python manage.py migrate django_authopenid 0005 --fake

Secondly - might have you accidentally removed app django_authopenid from the list of installed apps?

2011-03-24 09:02:31 -0500 commented question Migration errors using latest git branch
Thanks for you comment! It looks like „django_authopenid” is listed and has 5 revisions. I am just following the documentation and information available at http://askbot.org/en/question/310/how-do-you-manage-askbot-and-upgrades.
2011-03-24 06:36:17 -0500 asked a question Migration errors using latest git branch

I am trying to migrate askbot to the latest version available in devel branch and running : python manage.py migrate i got the following error:

    Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/core/management/__init__.py", line 362, in execute_manager
    utility.execute()
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/core/management/__init__.py", line 303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/core/management/base.py", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/core/management/base.py", line 222, in execute
    output = self.handle(*args, **options)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/south/management/commands/migrate.py", line 105, in handle
    ignore_ghosts = ignore_ghosts,
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/south/migration/__init__.py", line 171, in migrate_app
    applied = check_migration_histories(applied, delete_ghosts, ignore_ghosts)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/south/migration/__init__.py", line 74, in check_migration_histories
    m = h.get_migration()
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/south/models.py", line 34, in get_migration
    return self.get_migrations().migration(self.migration)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/south/models.py", line 31, in get_migrations
    return Migrations(self.app_name)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/south/migration/base.py", line 60, in __call__
    self.instances[app_label] = super(MigrationsMetaclass, self).__call__(app_label_to_app_module(app_label), **kwds)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/south/migration/base.py", line 88, in __init__
    self.set_application(application, force_creation, verbose_creation)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/south/migration/base.py", line 160, in set_application
    raise exceptions.NoMigrations(application)
south.exceptions.NoMigrations: Application '<module 'askbot.deps.django_authopenid' from '/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/askbot/deps/django_authopenid/__init__.pyc'>' has no migrations.

Also if I drop all tables and try to do a new install following the documentation, I got the following error:

$ python manage.py migrate django_authopenid
The app 'django_authopenid' does not appear to use migrations. ./manage.py migrate [appname] [migrationname|zero] [--all] [--list] [--skip] [--merge] [--no-initial-data] [--fake] [--db-dry-run] [--database=dbalias]

2011-03-06 18:34:23 -0500 commented answer How to fix "UndefinedError: 'settings' is undefined" in git branch
Uh... Thanks for the answer. I only did `python manage.py migrate` as in your other answer there was no notes about `python manage.py migrate askbot`
2011-03-06 07:48:09 -0500 received badge Editor (source)
2011-03-06 07:41:15 -0500 asked a question How to fix "UndefinedError: 'settings' is undefined" in git branch

Hi,

I am trying the git branch and I got the following error. Does anyone has any clue of what might go wrong ... or what should I do to fix it. The version installed using pip is working.

I have upgrade askbot based on this information: http://askbot.org/en/question/310/how-do-you-manage-askbot-and-upgrades

It looks like it is related to the database upgrade... droping all tables and recreating the database solved this problem...

    Traceback (most recent call last):
  File "passenger_wsgi.py", line 22, in application
    return application(environ, start_response)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
    response = self.get_response(request)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/core/handlers/base.py", line 141, in get_response
    return self.handle_uncaught_exception(request, resolver, exc_info)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/core/handlers/base.py", line 180, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/views/defaults.py", line 24, in server_error
    return http.HttpResponseServerError(t.render(Context({})))
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/template/__init__.py", line 165, in render
    return self.nodelist.render(context)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/template/__init__.py", line 784, in render
    bits.append(self.render_node(node, context))
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/django/template/__init__.py", line 797, in render_node
    return node.render(context)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/askbot/templatetags/extra_tags.py", line 124, in render
    return jinja_template.render(context)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/coffin/template/__init__.py", line 51, in render
    return super(Template, self).render(**context)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/askbot/skins/default/templates/500.jinja.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/askbot/skins/default/templates/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/askbot/skins/default/templates/base.html", line 4, in top-level template code
    {% spaceless %}
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/coffin/template/defaulttags.py", line 348, in _strip_spaces
    return strip_spaces_between_tags(caller().strip())
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/askbot/skins/default/templates/base.html", line 6, in template
    <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title>
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/jinja2/environment.py", line 371, in getattr
    return getattr(obj, attribute)
2011-03-06 06:44:57 -0500 marked best answer How to configure STATIC_URL setting?

Put

STATIC_URL = '/path_to_your_statics'

and

STATIC_ROOT = '/'

in your settings.py

2011-03-06 06:44:42 -0500 received badge Supporter ( source )
2011-03-06 06:44:10 -0500 marked best answer Where to report bugs?

Adi, I've checked carefully now, the django-staticfiles is not used, so please remove it from the list of installed apps.

2011-03-06 06:44:10 -0500 received badge Scholar ( source )
2011-03-01 12:06:53 -0500 commented answer How to configure STATIC_URL setting?
OK. But what and where are my 'statics' ... I have no prior Django knowledge, just the information available in the documentation
2011-02-28 03:31:00 -0500 commented question Where to report bugs?
Thans! Since your answer is a comment it looks like I can not mark this question as answered.
2011-02-28 03:02:36 -0500 asked a question How to configure STATIC_URL setting?

I tried to follow the installation steps from here http://askbot.org/doc/initialize-database-tables.html, but when I try to start the webserver I got the following error:

Are there any hints about how to configure static files?

$ python manage.py runserver `hostname -i`:8000
...
.py", line 3, in <module>
    settings = StaticfilesSettings("STATICFILES")
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/staticfiles/utils.py", line 160, in __init__
    value = callback(value)
  File "/var/www/intreaba.ubuntu.ro/lib/python2.5/site-packages/staticfiles/settings.py", line 46, in configure_url
    raise ImproperlyConfigured("You're using the staticfiles app "
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the required STATIC_URL setting.
2011-02-28 02:48:38 -0500 received badge Student (source)
2011-02-28 02:47:47 -0500 asked a question Where to report bugs?

Where should I report a bug?

I have installed askbot using pip and it looks like django-staticfiles dependecy was left out.