This project is a simple Django API that responds with the text "Hello World 6" to a request for the appropriate URL path.
-
Clone the Repository:
git clone https://github.com/Marriammi/django_project.git cd .\first\
-
Create a virtual environment to install dependencies in and activate it:
virtualenv2 --no-site-packages env source env/bin/activate -
Install Dependencies:
pip install -r requirements.txt
-
Start the Server:
python manage.py runserver
-
Open your browser and go to the address http://127.0.0.1:8000
To interact with the Hello World API, you can make HTTP GET requests to the following endpoint:
GET /api/v1/hello-world-6This API endpoint will respond with a JSON message containing the greeting. Example of using:
http://127.0.0.1:8000/api/v1/hello-world-6
This example assumes that your Django development server is running locally on http://127.0.0.1:8000. Make sure to adjust the URLs accordingly if your setup is different.