First time here? Check out the FAQ!

brayden.jo's profile - activity

2018-04-17 16:42:37 -0500 received badge Nice Answer ( source )
2017-02-22 20:54:02 -0500 commented answer How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

Thank you very much. Everything is working well. :)

2017-02-22 19:58:03 -0500 commented answer How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

Yes you are right. Since there is an error when I execute migrate without '--fake' option, I added the option (I found the answer in this site). My domain is pystock.askbot.com.

2017-02-22 19:42:18 -0500 commented answer How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

when I execute the command, "nothing to migrate" message are shown. There are same error when I try to login and no avatar images. Running migrations for longerusername: - Nothing to migrate. - Loading initial data for longerusername. Installed 0 object(s) from 0 fixture(s) Running migrations for django_authopenid: - Nothing to migrate. - Loading initial data for django_authopenid. Installed 0 object(s) from 0 fixture(s) Running migrations for robots: - Nothing to migrate. - Loading initial data for robots. Installed 0 object(s) from 0 fixture(s) Running migrations for djcelery: - Nothing to migrate. - Loading initial data for djcelery. Installed 0 object(s) from 0 fixture(s) Running migrations for group_messaging: - Nothing to migrate. - Loading initial data for group_messaging. Installed 0 object(s) from 0 fixture(s) Running migrations for askbot: - Nothing to migrate. - Loading initial data for askbot. Installed 0 object(s) from 0 fixture(s)

2017-02-22 19:14:48 -0500 commented answer How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

Yes. you are right. there are some files related to askbot that is installed from github. After deleting files, migration from askbot to 0.7.57 (local server) is done successfully. However, there are still two problem. 1) avatar files are not migrated (I know that avatar directories is not included in the dump.sql) 2) When I try to login, error occurs as below. DatabaseError at /questions/ relation "group_messaging_unreadinboxcounter" does not exist LINE 1: ..."group_messaging_unreadinboxcounter"."count" FROM "group_mes... ^ Request Method: GET Request URL: http://211.239.124.228:15302/questions/ Django Version: 1.5.12 Exception Type: DatabaseError Exception Value: relation "group_messaging_unreadinboxcounter" does not exist LINE 1: ..."group_messaging_unreadinboxcounter"."count" FROM "group_mes... ^ Exception Location: /usr/local/lib/python2.7/dist-packages/dj

2017-02-22 18:16:02 -0500 commented answer How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

I installed askbot using the 'pip install 'askbot<0.8'. when I run 'python manage.py migrate askbot', error occurs as below. django that is installed by pip automatically version is 1.5.12. UnknownMigration: Migration 'askbot:0013_auto_20170222_0242' probably doesn't exist. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/south/migration/base.py", line 313, in migration migration = __import__(full_name, {}, {}, ['Migration']) File "/usr/local/lib/python2.7/dist-packages/askbot/migrations/0013_auto_20170222_0242.py", line 4, in <module> from django.db import migrations, models ImportError: cannot import name migrations

2017-02-22 16:31:57 -0500 received badge Teacher ( source )
2017-02-22 16:31:39 -0500 received badge Student (source)
2017-02-22 16:14:21 -0500 answered a question Where can I download askbot

you can use the pip or git clone from git://github.com/ASKBOT/askbot-devel.git

2017-02-22 16:14:20 -0500 asked a question How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

I am using the askbot hosting. I decided to migrate from askbot to self hosting. From the askbot hosting, I can download backup files as the tar.gz format.

For the self hosting, I am using Ubuntu 16.04 and Python 2.7 (installed version) and postgresql 9.5. At the first time, I installed askbot by using the pip command. Then, I copied everything askbot document as below.

  1. install pip and install askbot

    $ sudo apt install python-pip

    $ pip install askbot

  2. install postgresql

    $ sudo apt-get install postgresql postgresql-contrib

    $ sudo apt-get install python-psycopg2

    $ sudo apt-get install libqp-dev

  3. add the postgres user and database

    $ sudo -u postgres psql

    $ CREATE DATABASE askbotdb;

    $ CREATE ROLE askbotuser WITH LOGIN PASSWORD 'password';

    $ GRANT ALL PRIVILEGES ON DATABASE askbotdb TO askbotuser;

  4. Add users and authorized 'superuser' to restore the backup file downloaded from askbot.org.

    $ create role askbot with login password 'password';

    $ alter role askbot superuser;

    $ alter role askbotuser superuser;

  5. restore backup file.

    $ tar zxvf backups.tar.gz

    $ psql -U askbotuser askbotdb < dump.sql

  6. Edit the pg_hba.conf

  7. restart postgres

  8. make the directory for django project.

    $ sudo usermod -a -G www-data root

    $ sudo mkdir -p /var/www/project_name

    $ sudo chown root:www-data /var/www/project_name

    $ sudo chmod g+w /var/www/project_name

    $ cd /var/www/project_name

    $ askbot-setup

  9. Fill the basic information

    1) . 2) 1 (postgresql) 3) askbotdb 4) askbotuser 5) password for askbotuser

  10. run below command

    $ python manage.py collectstatic

  11. change mode

    $ sudo chmod g+x askbot/upfiles

    $ sudo chmod g+x log/

    $ sudo chown -R root:www-data /var/www/project-name

  12. run below command.

    $ python mange.py migrate askbot --fake-initial

    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.

    Please run command

    python manage.py collectstatic
    

    System check identified some issues:

    WARNINGS: django_authopenid.UserPasswordQueue.user: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField. HINT: ForeignKey(unique=True) is usually better served by a OneToOneField. group_messaging.SenderList.recipient: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField. HINT: ForeignKey(unique=True) is usually better served by a OneToOneField. Operations to perform: Apply all migrations: askbot Running migrations: Rendering model states... DONE Applying askbot.0001_initial...Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv self.execute(args, *cmd_options) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute ...

(more)