- Ensure that Python is installed on your system. If not, download and install Python from python.org.
-
Install virtualenv:
pip install virtualenv
-
Create a new virtual environment:
python -m venv venv
-
Activate the virtual environment:
.\venv\Scripts\activate
-
Install Django in the virtual environment:
pip install Django
-
Fork the main repository and Clone your forked repository:
git clone https://github.com/<your username>/rescrapify.git
-
Navigate to the project directory:
cd rescrapify
-
Install project dependencies:
pip install -r requirements.txt
-
Generate SECRET_KEY in python shell:
from django.core.management.utils import get_random_secret_key print('SECRET_KEY=',get_random_secret_key())
-
Add SECRET_KEY in .env :
SECRET_KEY= <YOUR GENERATED SECRET_KEY> EMAIL_HOST_USER = "<Your email Id>" EMAIL_HOST_PASSWORD = "<You email app password>" RAZOR_PAY_KEY_ID = "<Your razorpay key id>" RAZOR_PAY_KEY_SECRET = "<Your razorpay key secret>" LINK = http://127.0.0.1:8000
-
Make changes in the database using makemigrations:
python manage.py makemigrations
-
Update the actual database:
python manage.py migrate
-
Create a Superuser to access the admin panel
python manage.py createsuperuser
-
Try running the server:
python manage.py runserver