Skip to content

Commit 4355059

Browse files
committed
setup fixes
1 parent 4abba8f commit 4355059

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

docs/dev-setup.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ git clone https://github.com/dimagi/logistics.git
1919
## Setup the Python virtual environment
2020

2121
```
22-
mkvirtualenv cstock -p $(which python3.8)
22+
mkvirtualenv cstock -p $(which python3.9)
2323
```
2424

2525
Then in the code root directory, run:
@@ -71,10 +71,10 @@ Run the following command and fill in the prompts:
7171

7272
## Run the server
7373

74-
Start the server with:
74+
Start the server with:
7575

7676
```
77-
./manage.py createsuperuser
77+
./manage.py runserver
7878
```
7979

8080
You should be able to login to the dashboard with the user you just created.
@@ -90,6 +90,23 @@ Celery is required for scheduled SMS reminders as well as for background jobs th
9090
celery -A logistics_project worker -l info
9191
```
9292

93+
## (Optional) Populate report tables
94+
95+
Some reports will not work until the data warehouse is populated.
96+
You can do this by running the following command:
97+
98+
```
99+
./manage.py update_warehouse
100+
```
101+
102+
If you get an error running this command, you may also need to add a message object to the system,
103+
which can be done from the "message tester" tab.
104+
Note: you must be running the SMS router for this to work.
105+
106+
You can make this run faster by temporarily changing the `HSA_WAREHOUSE_START_DATE` and `FACILITY_WAREHOUSE_START_DATE`
107+
in `logistics_project/apps/malawi/warehouse/config.py` to a recent date.
108+
Do not commit these changes to source control!
109+
93110
## Testing
94111

95112
You can run individual tests using the following syntax:

0 commit comments

Comments
 (0)