hjwp/Test-Driven-Django-Tutorial

include virtualenv

imposeren opened this issue · 8 comments

Maybe you should suggest using virtualenv instead of plain "easy_install module"?

hjwp commented

hey there,

i think my view is that virtualenvs are a bit of an advanced topic. Basically, a lot of my target audience are beginners, so they're unlikely to have that many different python projects on the go at once, so virtualenv would be an additional complication for them, without much benefit. On the other hand, anyone that has a real need for virtual, isolated python environments probably knows about virtualenv already!

still, i'm open to being persuaded.... what do you think? what do you think of the tutorial in general by the way? should I keep going with it?

I'm a begineer too. But for some reason I need to have virtualenv.
I'm just begining with your tutorial but I already have problems:

  1. no 'chmod +x manage.py' in tutorial
  2. first run of './functional_tests.py' fails differently (django webserver is started after tests are run because of subprocess.Popen)

plus my firefox binary is named firefox-bin so selenium does not start it (I created symlink and that solved the problem)

Should I open new issues for every problem?

hjwp commented

Hi there,

I think we should definitely open up an issue for the
"subprocess.Popen" problem - can you describe in more detail what
happens?

re chmod +x - I've been trying to make it a bit cross-platform
compatible, and that wouldn't work on windows... So I tell people to
run python manage.py test instead of ./manage.py test - I'll
take a look and see I have done that everywhere... but of course l33t
linux haxx0rs are welcome to chmod all they like!

thanks for your help! It's much appreciated.

hp
On Sat, Dec 10, 2011 at 4:10 PM, imposeren
reply@reply.github.com
wrote:

Should I open new issues for every problem?


Reply to this email directly or view it on GitHub:
#11 (comment)


Harry J.W. Percival

Twitter: @hjwp
Mobile:  +44 (0) 78877 02511
Skype:         harry.percival

I think that I have jsut messed with settings_for_fts.py (downloaded from some old git version). Than I donwloaded it as it mentioned in you tutorial and now it works fine.

hjwp commented

did you mean an old version of functional_tests.py?

On Sat, Dec 10, 2011 at 4:58 PM, imposeren
reply@reply.github.com
wrote:

I think that I have jsut messed with settings_for_fts.py (downloaded from some old git version). Than I donwloaded it as it mentioned in you tutorial and now it works fine.


Reply to this email directly or view it on GitHub:
#11 (comment)


Harry J.W. Percival

Twitter: @hjwp
Mobile:  +44 (0) 78877 02511
Skype:         harry.percival

Yes. I just downloaded old version. NOw everything seems to be ok. I'll write if i see anything