Django Deployment Flashcards

1
Q

What is the difference between Git and GitHub.

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a version control?

A

The reclaimable history of a project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In pythonanywhere.com how does one create a virtual environment?

A
  1. go to consoles
  2. select Bash
  3. enter: mkvirtualenv –python=python3.7 myproj
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Installing django in pythonanywhere.com’s bash console

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Checking the version of Django that you are using

A
  1. In a command prompt Activate the venv that you have been working on
  2. Run python
  3. Import django
  4. Enter: Django.__version__
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you check to see if Django was installed correctly in your Bash console?

A

enter: which django-admin.py

should get back something like:

/home/Che1195/.virtualenvs/myproj/bin/django-admin.py

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

All extra libraries used in the creation of your django project needs to…

A

be installed into the bash console.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

3 steps to configuring your pythonanywhere web app

A
  1. Link to a venv
  2. link it to the right source code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly