From 65c16bdc58e6e35b06091cf9a0c449e09b12d5a8 Mon Sep 17 00:00:00 2001 From: FlaviaBastos Date: Mon, 29 Aug 2016 14:26:26 -0600 Subject: [PATCH] Fix #160 -- Add step to run collectstatic and info for testing env (#194) * Add step to run collectstatic and infor for testing env #160 * remove info for testing --- doc/development/setup.rst | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/doc/development/setup.rst b/doc/development/setup.rst index 8aec197153..e00844beee 100644 --- a/doc/development/setup.rst +++ b/doc/development/setup.rst @@ -7,7 +7,7 @@ Obtain a copy of the source code -------------------------------- Just clone our git repository including its submodules:: - git clone --recursive https://github.com/pretix/pretix.git + git clone --recursive https://github.com/pretix/pretix.git cd pretix/ External Dependencies @@ -21,7 +21,7 @@ External Dependencies Your local python environment ----------------------------- -Please execute ``python -V`` or ``python3 -V`` to make sure you have Python 3.4 +Please execute ``python -V`` or ``python3 -V`` to make sure you have Python 3.4 (or newer) installed. Also make sure you have pip for Python 3 installed, you can execute ``pip3 -V`` to check. Then use Python's internal tools to create a virtual environment and activate it for your current session:: @@ -30,7 +30,7 @@ environment and activate it for your current session:: source env/bin/activate You should now see a ``(env)`` prepended to your shell prompt. You have to do this -in every shell you use to work with pretix (or configure your shell to do so +in every shell you use to work with pretix (or configure your shell to do so automatically). Working with the code @@ -44,6 +44,10 @@ If you are working with Python 3.4, you will also need (you can skip this for Py pip install -r requirements/py34.txt +Next, you need to copy the SCSS files from the source folder to the STATIC_ROOT directory:: + + python manage.py collectstatic + Then, create the local database:: python manage.py migrate @@ -117,8 +121,8 @@ Then execute ``python -m smtpd -n -c DebuggingServer localhost:1025``. Working with the documentation ------------------------------ -First, you should install the requirements necessary for building the documentation. -Make sure you have your virtual python environment activated (see above). Then, install the +First, you should install the requirements necessary for building the documentation. +Make sure you have your virtual python environment activated (see above). Then, install the packages by executing:: cd doc/