1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
Setting up for dev
==================
To set up a local dev environment you should just need to run::
fab bootstrap
And to install the devscripts_ and debhelper_ packages.
After that, running the tests should be as easy as::
. virtualenv/bin/activate
fab test
If you don't activate the virtualenv first, then some tests will probably
fail, as they spawn Python processes that need to find the modules that ship
with lp:pkgme-binary.
To generate a pretty coverage report in coverage/index.html, use::
fab coverage
Running the local development server should be just::
fab run
This will also start a single celery worker for you. You can also manage the
celery worker on its own using::
fab celery_start
fab celery_stop
If you've already got celery running, you can start the dev server *without*
a celery worker using::
fab manage:runserver
Setting up for production
=========================
First copy django_project/production_credentials.cfg.example to
django_project/production_credentials.cfg and then edit the file to
specify appropriate values.
.. _devscripts: https://apps.ubuntu.com/cat/applications/devscripts/
.. _debhelper: https://apps.ubuntu.com/cat/applications/debhelper/
|