diff --git a/README.rst b/README.rst index e1acb810..5643b2be 100644 --- a/README.rst +++ b/README.rst @@ -5,7 +5,7 @@ django-postgres-extra

- + ==================== =================== **Quality** |QualityBadge|_ @@ -158,19 +158,30 @@ Working with the code λ virtualenv env λ source env/bin/activate -3. Install the development/test dependencies: +3. Create a postgres user for use in tests (skip if your default user is a postgres superuser): + + .. code-block:: bash + + λ createuser --superuser psqlextra --pwprompt + λ export DATABASE_URL=postgres://psqlextra:@localhost/psqlextra + + Hint: if you're using virtualenvwrapper, you might find it beneficial to put + the ``export`` line in ``$VIRTUAL_ENV/bin/postactivate`` so that it's always + available when using this virtualenv. + +4. Install the development/test dependencies: .. code-block:: bash λ pip install -r requirements/test.txt -4. Run the tests: +5. Run the tests: .. code-block:: bash λ tox -5. Run the benchmarks: +6. Run the benchmarks: .. code-block:: bash