Django Deployment Flashcards
What is the difference between Git and GitHub.
Git: A version control system that helps keep track of changes in your code
Github: A company and a website that helps manage git and hosts your files on their site.
What is a version control?
The reclaimable history of a project
In pythonanywhere.com how does one create a virtual environment?
- go to consoles
- select Bash
- enter: mkvirtualenv –python=python3.7 myproj
Installing django in pythonanywhere.com’s bash console
Enter: pip install -U django==3.0.3
Note: Make sure you are installing the same version of Django being used in your project. This will take some time.
Checking the version of Django that you are using
- In a command prompt Activate the venv that you have been working on
- Run python
- Import django
- Enter: Django.__version__
How do you check to see if Django was installed correctly in your Bash console?
enter: which django-admin.py
should get back something like:
/home/Che1195/.virtualenvs/myproj/bin/django-admin.py
All extra libraries used in the creation of your django project needs to…
be installed into the bash console.
3 steps to configuring your pythonanywhere web app
- Link to a venv
- link it to the right source code