Ask Your Question

theactiveactor's profile - activity

2018-05-15 12:30:44 -0500 received badge  Notable Question (source)
2017-11-21 09:30:13 -0500 received badge  Popular Question (source)
2016-08-29 05:32:39 -0500 received badge  Notable Question (source)
2016-08-29 05:32:39 -0500 received badge  Popular Question (source)
2015-10-05 10:58:31 -0500 marked best answer EnvironmentError: mysql_config not found

I'm getting this error upon installation using either easy_install or

2015-06-22 20:24:37 -0500 received badge  Famous Question (source)
2015-04-20 15:07:29 -0500 received badge  Popular Question (source)
2015-01-19 05:28:52 -0500 received badge  Famous Question (source)
2014-03-28 15:16:58 -0500 received badge  Famous Question (source)
2014-02-05 11:20:53 -0500 received badge  Popular Question (source)
2013-09-25 01:51:34 -0500 received badge  Famous Question (source)
2013-07-22 17:35:12 -0500 received badge  Famous Question (source)
2013-04-07 14:11:51 -0500 received badge  Famous Question (source)
2012-12-20 08:30:59 -0500 received badge  Famous Question (source)
2012-11-23 14:50:47 -0500 asked a question Footer should always reside at bottom of window

The current positioning of the footer is not ideal. If there is little content on the page, then the footer is placed awkwardly near the middle of the page, instead of always residing at the bottom of the window.

For examples, please see:

2012-11-09 11:08:45 -0500 received badge  Great Question (source)
2012-10-11 07:09:32 -0500 received badge  Famous Question (source)
2012-09-12 13:44:37 -0500 received badge  Famous Question (source)
2012-09-04 09:55:04 -0500 commented question Searchbar not working on pages other than questions

Problem looks like missing interaction with live_search.js, which rewrites the request url. Could someone please give a primer on how we're supposed to configure this script to get search working on an arbitrary page?

2012-09-04 09:41:20 -0500 asked a question Reasonable Site Load time with Pingdom

I'm looking into optimizing my site speed, using Pingdom. I'm assuming that this tests the first page load scenario.

Without optimizing beyond Askbot defaults, the load speed was 1.25s. What caught my attention was that the delay looks like its dominated by Django/Askbot processing- 564ms wait time, which seems like a lot. Is this a reasonable number? Are there things I could do to reduce it?

2012-09-04 09:18:34 -0500 answered a question Admin Site Error on WebFaction

Never mind, I found the problem. Using the webfaction panel, I unintentionally installed Django 1.4, but I also installed Django 1.3.1 locally to the app. This version mismatch appeared to have caused the issue. After recreating my Webfaction app to match the version, everything looks good.

2012-09-03 11:26:58 -0500 asked a question Admin Site Error on WebFaction

Trying to deploy my site onto Webfaction. Everything seems to be working, except the Admin Site. I keep getting this error when trying to access it:

'admin_static' is not a valid tag library: ImportError raised loading django.contrib.admin.templatetags.admin_static: cannot import name staticfiles_storage. Running Django 1.3.1 on Python 2.7.3

2012-09-02 14:29:07 -0500 received badge  Good Question (source)
2012-09-01 11:51:45 -0500 received badge  Nice Question (source)
2012-09-01 11:19:15 -0500 asked a question Searchbar not working on pages other than questions

Is there some Javascript magic I need to do in order to make the search bar work on an arbitrary page derived from "two_column_body.html"?

The issue I'm seeing is that on other pages, when I search for anything, the result always display all questions. I noticed that the GET URL issued is different than when I'm on the questions screen:

  • Not working: GET /questions/?search=&query=asdf
  • Working: GET /questions/scope:all/sort:activity-desc/query:asdf/page:1/
2012-08-05 21:53:21 -0500 asked a question Why does Askbot require javascript?

Askbot does not seem to degrade well when Javascript is disabled. For one, this persistent red banner up top states "Askbot requires javascript", blocking out the top navigation menu. Why is Javascript a requirement?

2012-08-01 13:07:50 -0500 received badge  Famous Question (source)
2012-07-27 21:13:26 -0500 asked a question Best way to provide feedback on user actions?

I want to display a status message notifying the user the result of an action (e.g. question posted). Does AskBot have a built-in mechanism to achieve this?

2012-07-21 15:49:24 -0500 asked a question How to use Django default template loader for admin app?

I'm trying to integrate django-filebrowser into my project. It comes with a set of app templates which it depends on for displaying the file browser. After integration, my file browser looks the templates have not been applied. I figured that askbot's Jinja loader may have something to do with this, but I can't find out where the interception occurs.

Is it possible to revert to Django's default loader for non-askbot apps (e.g. admin app and django-filebrowser)? Which file can I look for to make the change.

2012-07-14 15:32:01 -0500 asked a question Why does askbot use Jinja?

What is the reason that Askbot switched to the Jinja templating system? To my understanding, Jinja is based off the Django template system, but does not support template tags (without massive headache), which most third-party Django apps use. For example, I'm trying to integrate sorl-thumbnails, whose main API is a template tag ("thumbnail"), and I have to figure out a way to to manually render the tag first, before inflating the template. I already had to do this for my personal apps, which is highly annoying.

2012-07-08 20:42:00 -0500 received badge  Nice Question (source)
2012-07-07 23:12:07 -0500 commented answer How to reference a new template file defined in a custom skin?

That is fine, thank you for clarifying. render_into_skin() looks like it's sufficient for my needs.

2012-07-07 23:08:30 -0500 asked a question Best practice for customizing search behavior?

I'm looking to customize the default search behavior, to return additional results besides asked questions. Could you please recommend the cleanest way to do that, minimizing changes core Askbot code.

2012-07-07 15:15:29 -0500 commented answer How to reference a new template file defined in a custom skin?

I did that already, you misunderstood my question. Let me rephrase it this way- calling render_to_response() from a view fails to find template files that are located in a custom skin.

2012-07-04 17:02:39 -0500 asked a question How to reference a new template file defined in a custom skin?

I created a new skin called myskin and set ASKBOT_EXTRA_SKINS_DIR accordingly. Overwriting default templates seems to work.

I want to create a custom home page, with a template called "home.html", located in this new skin, which inherits from "one_column_body.html" (defined in common).

However, in my custom app (installed along with askbot), when I tried to invoke render_to_response() on "home.html", I get this error: "TemplateDoesNotExist at /"

2012-04-12 19:37:57 -0500 received badge  Famous Question (source)
2011-07-03 03:57:36 -0500 received badge  Notable Question (source)
2010-12-27 23:18:39 -0500 received badge  Popular Question (source)
2010-10-01 12:54:10 -0500 received badge  Student (source)
2010-10-01 12:51:42 -0500 received badge  Supporter
2010-10-01 12:51:42 -0500 received badge  Scholar (source)
2010-07-24 21:22:13 -0500 asked a question cannot import other apps' models from

I have an app whose models and views resides in my site's project directory (in contrast to askbot, which resides in /usr/lib/...). When I try import its models from an askbot's as follows:

from myapp import models

I get this error:

ImproperlyConfigured: Error importing middleware askbot.middleware.view_log: "cannot import name models"

Any hints on what may be causing this error or how to debug it?

2010-07-24 21:15:11 -0500 marked best answer EnvironmentError: mysql_config not found

Based on what I found by googling the title of your question - you might need to install libmysql-dev package.

If you are on centos then you can try:

yum install libmysql-dev

On ubuntu:

apt-get install libmysql-dev

You are right - a better manual for the pre-requisite installation would be great.