Upgrading the DeLorean time machine in Python to traverse the space-time continuum

Joined February 2018
Photos and videos
In Django, views connect models to templates. Views enable Django to pull data from the database and print it onto a template. #Django #Python #Programming #webdevelopment
2
activating virtual environment on Linux: $ source virtualenv/bin/activate #Linux #Programming #Django #Python
1
Starting a project in Django in Linux $ django-admin.py startproject projectname #Python #Django #Linux #Programming

1
Python Quest retweeted
20 Mar 2018
Just finished @neiltyson's book, "Astrophysics for People in a Hurry". Excellent all the way through. Last chapter, "Reflections on the Cosmic Perspective," especially good.
16
54
563
In a Python function, the code in the body should be indented exactly four spaces. #Python #Programming
1
In Python, function names should be all lower case and words should be separated by underscores. #Python #programming
area = length * width
In Python, a token error usually results when you forget to close your brackets. There are other reasons for a token error, but forgetting to close a bracket is usually the issue. #Python #Programming
5
11
# Django-admin startproject projectname #django #Linux #Python
pip3 install Django==2.0.3 #django #python #linux
2
1
Some functions take parameters and arguments. Values such as numbers and strings are the arguments. Variables these arguments are assigned to are the parameters. #python #Programming
To work as root in Linux, without always having to type "sudo" with every command, type: $ sudo -i Then enter your password. You will become root with super user privileges for that session. #Linux #Programming
1
Shutting down computer from shell: $ sudo poweroff #linux
Interacting with Django always starts with manage.py #python #Linux #Django

1
$ manage.py startapp appname #Django #Python

$ manage.py startapp appname #Django #Python