Update README.md

This commit is contained in:
Lucas Schumacher 2024-05-19 21:03:28 -04:00
parent 85b6e44461
commit ce2d75c41f

View File

@ -14,6 +14,7 @@ The `manage.py` file is a python script that was automatically generated by `dja
## How to run the dev server
### Step 1: Installing dependencies
Install python 3 and the django module. Python 2 is incompatible and [is no longer receiving security updates](https://www.python.org/doc/sunset-python-2/). You will also need git to fetch this repository.
**NOTE**: On some *inferior* linux distros you have to run python with the `python3` command to actually run the modern version of python.
```
# For debian/ubuntu based systems
@ -41,7 +42,7 @@ Before we can run the server we need to make sure a database is setup to store e
```
python3 manage.py migrate
```
**NOTE**: This command also has to be run every time there is an update to the database schema to migrate the db to the new schema.
**NOTE**: This command also has to be run every time there is an update to the database schema to migrate the db to the new schema. The runserver command will warn you if it detects unmigrated changes.
### Step 3.5: Creating an admin user for the admin portal (optional)
Again the manage.py script can do this for us.