https://github.com/mehtadigisha/api
Web APIs for Django.
https://github.com/mehtadigisha/api
api django django-rest-framework djangorestframework python3
Last synced: 3 months ago
JSON representation
Web APIs for Django.
- Host: GitHub
- URL: https://github.com/mehtadigisha/api
- Owner: mehtadigisha
- Created: 2024-05-10T08:10:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-13T12:42:19.000Z (about 1 year ago)
- Last Synced: 2024-05-14T11:56:42.032Z (about 1 year ago)
- Topics: api, django, django-rest-framework, djangorestframework, python3
- Language: Python
- Homepage:
- Size: 16.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django API
"Simple Django API showcasing CRUD operations for managing products. Utilizes Django Rest Framework for efficient API development."## Requirements
Before you get started, make sure you have the following installed:
- Python 3
- Django
- Django REST Framework
- Other required packages specified in `requirements.txt`## Setup
1. **Clone the repository**: Start by cloning this repository to your local machine.
```bash
git clone
```2. **Navigate to the project directory**: Change into the project directory.
```bash
cd
```3. **Create a virtual environment**: This step is optional but recommended for isolating your project's dependencies.
```bash
python -m venv venv
```4. **Activate the virtual environment**: Depending on your operating system, use the following commands to activate the virtual environment:
- **On Windows**:
```bash
venv\Scripts\activate
```- **On macOS/Linux**:
```bash
source venv/bin/activate
```5. **Install dependencies**: Install the required packages using `requirements.txt`.
```bash
pip install -r requirements.txt
```6. **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.
7. **Set up the database**: Create the OTP model and apply migrations to set up the database.
- **Create migrations**:
```bash
python manage.py makemigrations
```- **Apply migrations**:
```bash
python manage.py migrate
```8. **Run the development server**: Start the Django development server to test the application.
```bash
python manage.py runserver
```