A website for appointment
It's highly recomended to setup django in a virtual environment
Create a python virtual environment with venv
package
$ python -m venv <environment name>
Source the appropriate environment activation script depending on your shell.
$ source /path/to/environment/bin/activate
Note: activate
without any suffix is for Bash
shell.
Install django in the virtual environment with the following command:
$ pip install -r requirements.txt
Do migration only once before starting the server, or after any change to the database model with
python hospitalmgmt/manage.py migrate [port]
Run the server with the following code inside the virtual environment:
python hospitalmgmt/manage.py runserver [port]