Official Documenation: https://docs.djangoproject.com/en/4.2/
Follow these steps to set up and run the application:
-
Clone the repository:
-
Change directory into any sample project, create a virtual environment and install dependencies:
cd django_rest_framework
python -m venv venv
. venv/bin/activate
on Windows: venv\Scripts\activate
pip install -r requirements.txt
-
Create a Django project and name it config in the current directory:
django-admin startproject config .
-
Create a Django app named test_app:
python manage.py startapp
-
Run the server:
python manage.py runserver
-
Usage To use the application, navigate to http://127.0.0.1:8000/ in your web browser.
You can also access the API at http://localhost:8000/api