You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* create Makefile for basic commands
* update make commands in readme
* Fixed spacing in Makefile
* Temporarily renamed readme to avoid merge conflict
---------
Co-authored-by: David Wilding <david.wilding@canonical.com>
This will create a Python virtual environment in ``.venv`` and install the required dependencies.
24
+
25
+
Database setup
26
+
~~~~~~~~~~~~~~~~~
27
+
28
+
Create the database tables and initialize them with some test data
29
+
30
+
::
31
+
32
+
make init
33
+
34
+
The above command executes two separate steps. If you want to run them separately, you can do so with:
35
+
36
+
1. Create the database tables::
37
+
38
+
make migrate
39
+
40
+
2. (Optional) Load data into the database. For convenience some data are provided in ``initial_data.yaml``, and can be loaded with::
41
+
42
+
source .venv/bin/activate
43
+
./manage.py loaddata initial_data.yaml
44
+
45
+
46
+
Launch the site
47
+
~~~~~~~~~~~~~~~
48
+
49
+
::
50
+
51
+
make run
52
+
53
+
Explore the dashboard at http://localhost:8000/ or
54
+
login to the admin http://localhost:8000/admin (if you loaded the provided initial data, use admin user ``test``, password ``test``).
55
+
56
+
Nearly every cell in the dashboard is a link to the relevant admin view. The most interesting admin view is for *Projects*, for example http://localhost:8000/admin/projects/project/2/change/.
57
+
58
+
59
+
Automated tests
60
+
===============
61
+
62
+
Some automated tests are included and can be executed by running::
0 commit comments