I am currently teaching myself Django and in an attempt to cement my knowledge I am running through the setup of a super simple app. The app will connect and extract information from a network device and I will use that data to present it on a web page using Django.
I have spun up a virtual machine in GCP running Ubuntu 16.04 LTS.
Below is the overall steps to complete this tiny project.
Run the web server and check that everything works as intended
Virtualenv is used to create a separate python environment for your app. This enables you to install whatever you want without having to think about dependencies and requirements of other apps running on the same machine.
After installing it, create your virtual environment:
Activate the environment (in the django-netmiko folder):
You will notice the prompt adding a (django-netmiko) in front to indicate that the virtual environment is active.
Install Django and netmiko
Now that I have the virtual environment up and running I can start to install the essential stuff.
Let me start with Django:
That was simple enough, now I can verify that it’s accessible:
Perfect! On to netmiko:
With these two components installed the next step will be to create the Django project and app! Stay tuned!