Ask Your Question

How to update after deploy? --force throws error

asked 2013-04-02 11:58:34 -0600

mynameistechno gravatar image

I'm trying to figure out the best way to put custom settings in an outside file and using --append-settings option for the askbot-setup script. However since I have already created/setup the app before, when I use the --force option I get an error:

Please select database engine:
1 - for postgresql, 2 - for sqlite, 3 - for mysql, 4 - oracle (type 1/2/3/4)
> 2
Traceback (most recent call last):
  File "/Users/mmatyas/.virtualenvs/askbot/bin/askbot-setup", line 8, in <module>
    load_entry_point('askbot==0.7.48', 'console_scripts', 'askbot-setup')()
  File "/Users/mmatyas/projects/askbot-devel2/askbot/deployment/", line 126, in askbot_setup
  File "/Users/mmatyas/projects/askbot-devel2/askbot/deployment/", line 155, in deploy_askbot
    create_new_project = bool(options.force)
AttributeError: 'dict' object has no attribute 'force'

Am I doing something wrong? Is this the best way to do this? We don't want to manually add the settings every time to the generated settings file.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-04-02 12:02:41 -0600

Evgeny gravatar image

When you are upgrading the code, currently the only way to update is to manually modify it.

Askbot helps you with this task by telling what needs to be done upon attempt to run any management command, such as python runserver or python migrate --list.

The traceback you've posted may be a result of a bug, we'll have a look.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-04-02 11:58:34 -0600

Seen: 650 times

Last updated: Apr 02 '13