First time here? Check out the FAQ!

Revision history  [back]

Here is the version I used to get askbot working on webfaction. It is slightly different than the instructions from Bryce:

In webfaction control panel installed app "Python 2.7/Django 1.3.1" as askbot_webapp

In webfaction control panel created postgres database and remembered password

cd ~/webapps/askbot_webapp
git clone git://github.com/ASKBOT/askbot-devel.git myaskbot 
cd myaskbot/
python2.7 setup.py develop
askbot-setup

Where deploy the forum (directory)? .

Add to settings.py: ASKBOT_CSS_DEVEL = True

python2.7 manage.py collectstatic
python2.7 manage.py syncdb  # Answer 'no' to superuser
python2.7 manage.py migrate # Ignore the errors

# Test out that migrations work and the app runs
python2.7 manage.py runserver

Edit ../myproject.wsgi:

import os
import sys
import os.path

current_directory = os.path.dirname(__file__)
sys.path.append(os.path.join(current_directory, "myaskbot"))

from django.core.handlers.wsgi import WSGIHandler

os.environ['DJANGO_SETTINGS_MODULE'] = 'myaskbot.settings'
application = WSGIHandler()

Create a second webapp called askbot_static for the static files. This should be purely static (no .htaccess)

Attach this to /m within your domain.

cd ~/webapps/askbot_static/
ln -s ~/webapps/askbot_webapp/myaskbot/static/common/
ln -s ~/webapps/askbot_webapp/myaskbot/static/default/
ln -s ~/webapps/askbot_webapp/myaskbot/static/admin/

Login: the first user to create and account becomes superuser.

Here is the version I used to get askbot working on webfaction. It is slightly different than the instructions from Bryce:

In webfaction control panel installed app "Python 2.7/Django 1.3.1" as askbot_webapp

In webfaction control panel created postgres database and remembered password

cd ~/webapps/askbot_webapp
git clone git://github.com/ASKBOT/askbot-devel.git myaskbot 
cd myaskbot/
python2.7 setup.py develop
askbot-setup

Where deploy the forum (directory)? .

Add to settings.py: ASKBOT_CSS_DEVEL = True

python2.7 manage.py collectstatic
python2.7 manage.py syncdb  # Answer 'no' to superuser
python2.7 manage.py migrate # Ignore the errors

# Test out that migrations work and the app runs
python2.7 manage.py runserver

Edit ../myproject.wsgi:

import os
import sys
import os.path

current_directory = os.path.dirname(__file__)
sys.path.append(os.path.join(current_directory, "myaskbot"))

from django.core.handlers.wsgi import WSGIHandler

os.environ['DJANGO_SETTINGS_MODULE'] = 'myaskbot.settings'
application = WSGIHandler()

Create a second webapp called askbot_static for the static files. This should be purely static (no .htaccess)

Attach this to /m within your domain.

cd ~/webapps/askbot_static/
ln -s ~/webapps/askbot_webapp/myaskbot/static/common/
ln -s ~/webapps/askbot_webapp/myaskbot/static/default/
ln -s ~/webapps/askbot_webapp/myaskbot/static/admin/

Login: the first user to create and account becomes superuser.