2018-01-08 03:20:50 +11:00
|
|
|
==================================
|
|
|
|
Installation for local development
|
|
|
|
==================================
|
2014-02-21 20:44:37 +11:00
|
|
|
|
2018-03-12 21:59:38 +11:00
|
|
|
Local development is done with `pipenv`_ to maintain packages.
|
2014-02-21 20:44:37 +11:00
|
|
|
|
2018-03-12 21:59:38 +11:00
|
|
|
Installation::
|
2014-02-21 20:44:37 +11:00
|
|
|
|
|
|
|
$ cd dpaste/
|
2018-01-08 03:20:50 +11:00
|
|
|
$ pipenv install --three --dev
|
2014-02-21 20:44:37 +11:00
|
|
|
|
2018-03-12 21:59:38 +11:00
|
|
|
Copy the settings file and edit it, to meet your needs::
|
2017-05-19 23:30:27 +10:00
|
|
|
|
|
|
|
$ cp dpaste/settings/local.py.example dpaste/settings/local.py
|
|
|
|
$ nano dpaste/settings/local.py
|
|
|
|
|
2018-03-12 21:59:38 +11:00
|
|
|
Run the testsuite::
|
2014-02-21 20:44:37 +11:00
|
|
|
|
2018-03-12 21:59:38 +11:00
|
|
|
$ pipenv run ./runtests.py
|
2014-02-21 20:44:37 +11:00
|
|
|
|
2018-03-12 21:59:38 +11:00
|
|
|
To run the project on your local machine::
|
2014-02-21 20:44:37 +11:00
|
|
|
|
2018-03-12 21:59:38 +11:00
|
|
|
$ pipenv run ./manage.py migrate
|
2018-01-08 03:20:50 +11:00
|
|
|
$ pipenv run ./manage.py runserver
|
2018-03-12 21:59:38 +11:00
|
|
|
|
|
|
|
.. _pipenv: https://docs.pipenv.org/
|