-
Notifications
You must be signed in to change notification settings - Fork 305
Tips and tricks
aronasorman edited this page Oct 20, 2014
·
3 revisions
- Use
distutils.version.StrictVersion
for comparing version strings.
- to prevent the need to login every single time the server reboots, put
SESSION_ENGINE = "django.contrib.sessions.backends.file"
in your local settings file
Put in two aliases in your .bashrc
:
alias setupxvfb='Xvfb :99 -ac'
alias pmtestxvfb='DISPLAY=:99 python manage.py test'
And then in a background terminal, run setupxvfb
, and on your main terminal, run pmtestxvfb <test args>
. Voila! Firefox won't be popping up a window anytime soon.