Dave Partner

Installing Python and Django and Setting Up Your Environment

  • 0 Replies
  • 457 Views

0 Members and 1 Guest are viewing this topic.

Installing Python and Django and Setting Up Your Environment
« on: November 20, 2016, 08:56:16 AM »
The Django web development framework is written with Python. Therefore, to use Django, we have to first install Python and then install Django and other dependencies we will need to setup a system for the task.

For this tutorial, we will be using Python 2.7.* and Django 1.8.

INSTALLING PYTHON
If you are using a Mac, you probably have Python already installed; to confirm, open a bash console and type "Python" hit the enter key, this should open the Python interactive console. Else, you can download Python from the official Python website >> https://www.python.org/downloads/, select the version for your OS and install the most stable version in the 2.7 series.


If you are using a Windows system you may have to perform other setup processes such as updating your Environment Variables with the Python Path, the instructions here >> http://www.howtogeek.com/197947/how-to-install-python-on-windows/  explain it in details.


INSTALLING DJANGO

Now that you have installed Python on your system, next is to install the Django framework and start hacking away immediately. Follow the instructions here >> https://tutorial.djangogirls.org/en/django_installation/ to install Django on your system. It covers both Mac and Windows installations.


Django is a Python package, to test your installation, open your command line (bash console for Mac) and type "Python" and hit the enter key to open the interactive console, then type "import django" to import the Django package and then "django.get_version()" to check the version of Django you have installed.   


NEXT STEP

If you followed the steps correctly, you should be all set to start building web applications using Django. In this tutorial, we will be building a simple blogging site called SimplebloggerProject from scratch, adding functionalities as we progress.
The project repository is at >> https://github.com/EzechukwuJI/simplebloggerproject

See you in the next tutorial.

See you in the next tutorial.
PS: Join the Facebook group here >> https://www.facebook.com/groups/466737186852664/

Please signup on this site to get alerts as subsequent tutorials are published. Signup here => http://davepartner.com/register/

« Last Edit: November 20, 2016, 09:03:51 AM by Ezechukwu James »