From d318411b4a00a13df65d91936921d92ce8aedc6d Mon Sep 17 00:00:00 2001 From: "Mr.Majboor" <127334056+Majboor@users.noreply.github.com> Date: Sun, 9 Apr 2023 16:39:43 +0500 Subject: [PATCH] Update Readme have added installation using `python` directly and also added for pyharm seperately --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 8cfa6c0..f0b6f3a 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,38 @@ These tables can also be dropped using: python manage.py drop ``` +Installation using python +------------------------------------ +Clone the repository from GitHub +``` +git clone https://github.com/dfm/osrc.git +``` + + +Open PyCharm and create a new project from the cloned repository. +Open a terminal in PyCharm and navigate to the project directory. + + +Create a new virtual environment +``` +python -m venv env +``` +Activate the virtual environment +``` +source env/bin/activate +``` +Install the required packages +``` +pip install -r requirements.txt +``` + +Create the database tables +```createdb osrc``` + +```python manage.py create ``` + +Run the server +```python manage.py runserver``` License & Credits -----------------