From: Damien Lespiau Date: Sun, 4 Oct 2015 13:34:59 +0000 (+0100) Subject: docs: Fix a few code blocks X-Git-Tag: v1.1.0~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6b1d3b922156ad69c40ce09b3e89919d19bb67c;p=thirdparty%2Fpatchwork.git docs: Fix a few code blocks Signed-off-by: Damien Lespiau Reviwed-by: Stephen Finucane --- diff --git a/docs/development.md b/docs/development.md index 2fe9e5dc..65f66a13 100644 --- a/docs/development.md +++ b/docs/development.md @@ -19,14 +19,14 @@ used to test patchwork against several versions of Django. Inside a virtual env, we'll just install the dependencies needed for patchwork and run it from there. - $ virtualenv django-1.8 + $ virtualenv django-1.8 This will create a virtual env called 'django-1.8' in eponymous directory. 3. Activate a virtual environment - $ source django-1.8/bin/activate - (django-1.8)$ + $ source django-1.8/bin/activate + (django-1.8)$ The shell prompt is preprended with the virtual env name. @@ -36,20 +36,20 @@ used to test patchwork against several versions of Django. text file and install them in one go. One can maintain such a list of dependencies per interesting configuration. - (django-1.8)$ pip install -r docs/requirements-dev.txt + (django-1.8)$ pip install -r docs/requirements-dev.txt You will also need to install a version of Django - we don't install this by default to allow development against multiple versions of Django. This can be installed like so (assuming Django 1.8): - (django-1.8)$ pip install 'django<1.9,>=1.8' + (django-1.8)$ pip install 'django<1.9,>=1.8' Of course, this is a one-time step: once installed in the virtual environment there is no need to to install requirements again. 5. Run the development server - (django-1.8)$ ./manage.py runserver + (django-1.8)$ ./manage.py runserver Once finished, you can kill the server (`Ctrl` + `C`) and exit the virtual environment: