Develop your first web application in Django 1.10 – Part 0

web application in Django 1.10 - Part 0

 

Django is a very popular and powerful web framework to make small to large scale web application in Python language. In this series I am going to make a simple issue tracking or bug tracking system in Django 1.10.

OhBugz

The application I am going to make is named as OhBugz. It is a simple issue tracking application for a single user which helps to track project related issues. It is not going to make JIRA guys sleepless but good enough to learn how to make a web application in Django. Some of the initial screens are:

OhBugz - Projects List

 

Installation

Since Django is a Python framework so it’s quite obvious that you should have Python installed on your machine. It makes life easier if you know Python language too. I am using Python 3.5 for this tutorial.

Assuming Python and pip is installed, run the following command in terminal:

If all goes well, you should see something like below on your screen:

In my case it tells that Django 1.10.5  is installed.

Creating Project

The prerequisites are fulfilled, it’s time to create new project.

django-admin is a utility shipped with django. Here it is creating a project with name ohbugztracker. Once created, run the following commands:

What it does that it runs Django’s application server. On running you will see the text in your console as you see above. Don’t worry about migrations as it will be covered in future posts. The message which you should focus is Starting development server at http://127.0.0.1:8000/. Open your browser and type the localhost URL given above and it should greet you with the following screen:

Wohoo! we successfully created our first Django project. Wait, I don’t mean it’s over. When I say that the project is created it means the command ran successfully and Django Application Server is up and running. In coming post I will discuss the difference between a project and an app and what does it mean in Django world. For now, enjoy what you have achieved.

As always, the Github repo has been created for this project

 

If you like this post then you should subscribe to my blog for future updates.

* indicates required



2 responses to “Develop your first web application in Django 1.10 – Part 0”

  1. tuxador says:

    Great news! i’ve created a coupl of apps under django, still i considr myself a newbie. Let the fun begin.

Leave a Reply

Your email address will not be published. Required fields are marked *