Running the Django application

You can get this Django blog application from the GitHub repository for this book (https://github.com/PacktPublishing/Learning-Kibana-7-Second-Edition). Now, we will learn more about the blog application and demonstrate how to run it:

  1. We need to download this application from the GitHub page, and then navigate inside the main directory to execute the following commands:
# make migrations
python3 manage.py makemigrations

# migrate the tables
python3 manage.py migrate

# run the server
python3 manage.py runserver
  1. After successfully executing the preceding command, we can run the server using the following URL:
http://127.0.0.1:8000/blogs
  1. We can access swagger using the following link:
http://127.0.0.1:8000/swagger/

This application is very simple: the user can add blogs and list them using the API. The following screenshot shows the default UI of Django for adding a blog:

The preceding screenshot shows the Django blog application UI screen, where we can add a blog and list it. In this way, we can configure the APM agent with the Django application. Similarly, APM agents can be configured in all the supported languages and frameworks. We can verify whether the APM agent is sending the data by clicking on the Check agent status button on the Setup Instructions page.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.238.159