- Python 3.8 or higher
- Django 3.2 or higher
- PostgreSQL 12 or higher
-
Clone the repository:
git clone https://github.com/rahul4507/Bynry_Gas_Utility_Service.git
-
Navigate to the project directory:
cd your_project_dir
-
Create a virtual environment:
python -m venv env
-
Activate the virtual environment:
On Windows:
env\Scripts\activate
On Unix or MacOS:
source env/bin/activate
-
Install the requirements:
pip install -r requirements.txt
-
Install PostgreSQL and create a new database.
-
Update the
DATABASES
setting insettings.py
:DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'yourdatabase', 'USER': 'yourusername', 'PASSWORD': 'yourpassword', 'HOST': 'localhost', 'PORT': '5432', } }
-
Run migrations:
python manage.py migrate
-
Start the Django development server:
python manage.py runserver
-
Open your web browser and navigate to
http://localhost:8000
.
username = omkar password = User@123