Python, Django, and Pinax
Python
Python Commands
Generally speaking, you do not need to be a Python developer to use Django. However, some understanding of Python can help you better understand Pinax.
The following commands will help you get started using Python on the command line.
Enter the Python interactive shell
$ python
You will know you are in the Python interactive shell when you see the Python prompt.
>>>
Enter the Python help utility
>>> help()
Exit the Python help utility
>>> q
Import a module
>>> import <module>
Exit the Python interactive shell
>>> exit()
Python Guiding Principles
You can read Guido van Rossum's guiding principles for Python as captured by Tim Peters via the command line by using the import this
command or at PEP 20: The Zen of Python.
>>> import this
Python and Django Code Style
Similarly to natural languages, programming languages have style conventions that clarify meaning and improve readability. For information about Python style conventions read PEP 8: Style Guide for Python Code and for Django conventions read the Django Coding Style Guide