"Simple Django API showcasing CRUD operations for managing products. Utilizes Django Rest Framework for efficient API development."
Before you get started, make sure you have the following installed:
- Python 3
- Django
- Django REST Framework
- Other required packages specified in
requirements.txt
-
Clone the repository: Start by cloning this repository to your local machine.
git clone <repository_url>
-
Navigate to the project directory: Change into the project directory.
cd <project_directory>
-
Create a virtual environment: This step is optional but recommended for isolating your project's dependencies.
python -m venv venv
-
Activate the virtual environment: Depending on your operating system, use the following commands to activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install dependencies: Install the required packages using
requirements.txt
.pip install -r requirements.txt
-
Configure your settings: Make sure to update
settings.py
with the appropriate configurations for your project, including the SMS API key and other necessary settings. -
Set up the database: Create the OTP model and apply migrations to set up the database.
-
Create migrations:
python manage.py makemigrations
-
Apply migrations:
python manage.py migrate
-
-
Run the development server: Start the Django development server to test the application.
python manage.py runserver