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
Copy file name to clipboardExpand all lines: README.md
+11-6
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ To stop the application and remove all containers, run the following.
59
59
docker-compose down
60
60
```
61
61
62
-
5. Create a superuser so that you can log into http://localhost:8000/admin by running the following in your terminal: `$ docker-compose run --rm manage createsuperuser`
62
+
5. Create a superuser so that you can log into http://localhost:8000/admin by running the following in your terminal: `$ docker-compose run --rm app ./manage.py createsuperuser`
63
63
64
64
## Editing Code
65
65
@@ -89,17 +89,22 @@ If you would like to tail the logs in the console then you remove the detach fla
89
89
90
90
The following are examples of some common Django management commands that you may need to run.
91
91
92
-
* Make Migrations: `docker-compose run --rm manage makemigrations`
93
-
* Merge Migrations: `docker-compose run --rm manage makemigrations --merge`
94
-
* Run Migrations: `docker-compose run --rm manage`
95
-
* Test: `docker-compose run --rm manage test`
92
+
* Make Migrations: `docker-compose run --rm app ./manage.py makemigrations`
93
+
* Merge Migrations: `docker-compose run --rm app ./manage.py makemigrations --merge`
94
+
* Run Migrations: `docker-compose run --rm app ./manage.py`
96
95
97
96
To see the full list of management commands use `help`.
98
97
99
98
```plain
100
-
docker-compose run --rm manage help
99
+
docker-compose run --rm app ./manage.py help
101
100
```
102
101
102
+
### Automated Tests
103
+
104
+
* We use [pytest](https://docs.pytest.org/en/latest/contents.html) with the [pytest-django](https://pytest-django.readthedocs.io/en/latest/) plugin for running tests.
105
+
* Please add tests for your code when contributing.
106
+
* Run the test suite using `docker-compose run --rm app pytest`
107
+
103
108
### Import Postman collection
104
109
Postman is a free interactive tool for verifying the APIs of your project. You can download it at postman.com/downloads.
0 commit comments