First time here? Check out the FAQ!
1

Does askbot work with django version 1.2.3?

I am looking to install this on an Ubuntu machine, and would prefer to install django from apt instead of from easy install. However the installer requires exactly 1.2.2 of django before it will continue. This is too high for Lucid, which distributes django version 1.1.1. But Maverick comes with Django version 1.2.3.

Can I use django 1.2.3? If so how can I tell the pip installer to use the installed version?

asked 2011-02-12 00:28:32 -0600
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

Whilst askbot might work, I'm not sure 'startforum' does - I think there is an issue where it requires django==1.1.2, not django > 1.1.2 (if that is even possible to specify?)

-- Edit-- A quick test shows it does install fine:

(askbot)mcMoo:forum jt$ pip freeze | grep Django
Django==1.2.3
(askbot)mcMoo:forum jt$ startforum

Deploying Askbot - Django Q&A forum application
Problems installing? -> please email admin@askbot.org

To CANCEL - hit Ctr-C at any time
Where to deploy (in which directory)? .
Copying files: 
* __init__.py 
* settings.py 
* manage.py 
* urls.py 

copying directories:  doc  cron  upfiles  
Done. Please find further instructions in the file below:
/.. cut .. /INSTALL
answered 2011-02-14 07:02:45 -0600
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag delete link

Comments

Thanks, the 1.2 deployment needs to be tested out, other than that there is no problem changing == to > in the setup.py if you don't want to wait - either clone the repository or get the tarball, make the requirement change and run "python setup.py install" or "python setup.py develop", virtualenv might be a good idea too. I will install 1.2 and work with it for a week or so.
Evgeny's avatar Evgeny (2011-02-14 11:23:49 -0600) edit
As for the feedback from startforum - there aren't any problems - as far as I can see. All startforum does - copy some files and directories.
Evgeny's avatar Evgeny (2011-02-14 11:26:16 -0600) edit
Jmons, I've noticed your tweet about askbot - thanks btw - what are the problems you found when integrating with other django apps. We'd like to solve them, but for now it would be helpful to identify those issues. Anything besides the 1.1 requierement?
Evgeny's avatar Evgeny (2011-02-14 12:08:09 -0600) edit
add a comment see more comments
0

edit: OK, I remember now what was the problem with 1.2 - need to change requirement to use Coffin library version 0.3.3, the default requirement is 0.3.

Give it a shot, a while ago someone tested askbot with 1.2 and it worked. I have not tested yet myself.

For safety - not to affect your site-wide python libraries - you might create a virtual environment

virtualenv /path/to/new/env  --no-site-packages

Then run

/path/to/new/env/bin/pip install askbot

Then using a similar command install the version of django that you would like to use:

/path/to/new/env/bin/pip install django==1.2.3

If you find any barring issues, please tell about them, but hopefully it will just work.

Askbot ships with setup.py file where versions of some dependencies are very specific. You can override them by editing the setup.py, then run /path/to/your/virtual/env/python setup.py install.

There is also option python setup.py develop - useful when you clone code from the repo and plan to use git to maintain your customizations (like skin).

After installing it is possible to run tests python manage.py test askbot - works much faster with postgres. Two or three tests will fail because there is some missing test data, but the remaining tests should pass.

answered 2011-02-12 00:52:34 -0600
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments