To Clone repository and run on local machine:
Copy <>Code snippet from repository
Open terminal and create folder to clone repository into
Navigate to that folder in your terminal and enter the command where [code snippet] is the link from the <>Code tab on the repository:
git clone [code snippet]
Then write the following commands:
cd devOps cd blog python3 -m venv blog source blog/bin/activate python3 -m pip install django pip install django-cripy-forms pip3 install crispy-bootstrap4 python3 manage.py runserver
The second to last line from your terminal window should be: Starting development server at http://127.0.0.1:8000/
Copy and paste this link from the second to last line of the terminal into your browser: http://127.0.0.1:8000/
######################
also note these instructions were followed during development from this link at stackoverflow: https://stackoverflow.com/questions/75706202/attributeerror-settings-object-has-no-attribute-crispy-template-pack
" First include this in your settings.py
CRISPY_TEMPLATE_PACK = 'bootstrap4'
After doing that you might encounter a challenge that the template does not exist. If that occurs, make sure you have crispy-bootstrap installed - pip install crispy-bootstrap4 and add 'crispy_bootstrap4' to your list of INSTALLED_APPS.
"
#####################################
Note, these links and scripts were copy-paste from the devOps tutorial:
https://github.com/devopsjourney1/django-tutorial/blob/master/lab8/blog/website/templates/base.html