|
I have an older version of OSQA running on my site. How do I upgrade it (presumably through subversion)? What is the recommended stable release? Thanks for your help! |
|
The trunk of subversion is generally what this site runs (and our hosted sites). It generally stays pretty stable. You can run svn update on your previous checkout, then run the migrations with South (hopefully you set that up in the beginning). The DB migration should go smoothly, but post here if you have any problems. So to summarize:
Note - I just did an upgrade, and at first glance it seemed that What is the procedure for applying the database migrations?
(08 Nov '10, 20:12)
Kevin Yank
@Kevin, it's pretty basic (discussed here)
(08 Nov '10, 20:20)
rickross ♦♦
1
Actually, meta.osqa.net is currently running SVN-886 whereas the trunk is at SVN-1029.
(08 May '11, 05:35)
dharmatech
|
|
I would suggest this:
Why?
Of course don't forget the database migration and Apache restart:
I just tried an update to beta3 (rev 956) from rev 777; when I try to migrate, I get a ream of errors: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. Error: Can't find the file 'forms.py' in the directory containing 'manage.py'. It appears you've customized things. You'll have to run django-admin.py, passing it your settings module. (If the file forms.py does indeed exist, it's causing an ImportError somehow.) Same happens when I try as the osqa or www-data users, and as root. Am I missing some env settings on the command line?
(09 Apr '11, 22:49)
askvictor
1
OK; fixed that - I had to specify to the shell the settings that live in osqa.wsgi. Namely PYTHONPATH=/path/to/osqa:/path/to/osqa/osqa-server and DJANGO_SETTINGS_MODULE=osqa-server.settings What is the accepted way to set these up? .bashrc?
(09 Apr '11, 22:58)
askvictor
|