Setting Up Django in a Virtual Environment

In this post I am going to setup Django using Pip through command line.  And I will not use any editor like Visual Studio to create a web application in Django. In this way I will better explain the installation process of Django.  And there is no dependency on any code editor tool. You can use any code editor you like. If you are not familiar with Pip and how to setup a virtual environment, please read my post Python setup and creating virtual environment.

Lets create a virtual directory and name it “MyFristApp” by using the following command,

Read more ›

Posted in CPython, Django, Python Tagged with: , , ,

Python setup and creating virtual environment

The reason to write down this post is that I feel the Introduction to Python and Introduction to Django series I started I am using Microsoft Visual Studio as code editor. I feel that using MS Visual Studio specially for beginners like me is not a correct way to start. Specially for Python. Because MS Visual Studio no doubt a great code editor but it will do lot of things itself (like default settings, creating virtual environment), which good if you are expert but if you are trying to learn Python and Django like me then you have to first understand the basics and you should learn how to use PIP and create virtual environment.

Read more ›

Posted in CPython, Django, Python Tagged with: , , , , ,

SCALA – defining Value and Variables

In my previous post I give a brief introduction about SCALA, and show you how to write down your first program in SCALA using REPL (SCALA Command Promote). I hope you find it interesting to learn SCALA. c

Lets start with variables and core data types in SCALA. There are four terms which we need to understand before we start writing down the code. These terms are,

  1. Literal is data that directly appears in the source code. Like in my previous blog a text “Hello World”.
  2. Value is an immutable, that is a data can be assigned to a Value when it is defined but can never be reassigned.
  3. Variable is an mutable type, a value can be assigned when defining and reassign anytime later.
  4. Type is a definition of data on which we are working on.

Read more ›

Posted in SCALA Tagged with: , ,

Introduction to SCALA

Why SCALA?

You might get surprised why I am writing a blog about SCALA. Writing blog on DotNet and Python and suddenly jump to SCALA. The reason is that I get a project, which I have to complete in SCALA. As I start exploring the language I find out its quite interesting. Therefore I thought to write a series of posts to share what I am going to learn about SCALA.

Read more ›

Posted in SCALA Tagged with:

Introduction to Django – Part 3

In this post I am going to show how to create a web app with Django using Visual Studio. The default files and folder structure of Django.  I already explains some basics of Django and how to install Python tool for Visual Studio in my previous post. If you missed out please read Introduction to Django – Part 2.

Read more ›

Posted in Django Tagged with: , , , ,

Introduction to Django – Part 2

In my previous post I wrote briefly about web frameworks and Django. In this post I will give brief introduction about different IDE to develop Django application. In the Introduction to Django series I will use Visual Studio IDE for development purpose. But I will try not use to use features or code which are purely related to Visual Studio, so that if you want to use any other IDE to run the code you can easily do that.

Read more ›

Posted in Django Tagged with: , , ,

Introduction to Django

Django is a web framework written in Paython. It’s free and open source web framework, used for rapid development. The Django project website defines Django as

“Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.”

Before start exploring about the Django, lets get an idea of what is web framework. Because most of the people compare Django with WordPress or tools like WordPress. Which is not correct?

Read more ›

Posted in Django Tagged with: , ,

Introduction to Python – Part 3

This is 3rd post of Introduction to Python. In my previous post, I give brief introduction about numbers and strings. In this post I will show you how to write conditions and loops.

If statements

Conditions play an important role in any programming language. Where you decide if this action happen then do this. Or if this condition is true perform this action. In python we use if statements for decisions.

Read more ›

Posted in CPython, Python, Visual Studio, Visual Studio 2013 Tagged with: , , , ,

Introduction to Python – part 2

In the previous post  of Python series, I give you a brief introduction of Python and how to create a simple program using Visual Studio 2013.  In this post I am planning to cover some basic things about how to display output, get input from the user and strings and variables.  If you are wondering how to user or create python project using Visual Studio, please refer to Introduction to Python – Part 1.

Read more ›

Posted in CPython, Python, Visual Studio 2013 Tagged with: , ,

Introduction to Python – Part1

Python, I am going to write series of blogs about Python. I will show you from scratch how to write Hello World program in Python and will take up to advance level of programming specially in web development. As I am also new Python and going to learn this language. The reason I choose to learn Python is that, it is open source, it is very well matured language, as Google is using Python.  And Python is very easy to learn. There are number of free tools available to write code and learn Python. Even Microsoft is providing support for Python in its Visual Studio. You can use Microsoft Visual Studio to create applications using Python. Before learning Python I was thinking that it’s a scripting language only. But as I start learning about Python I find out that Python is not only used for web development but also used for following development purposes as well,

  1. Desktop GUIs
  2. Scientific and Numeric
  3. Network Programming
  4. Software & Game Development

Read more ›

Posted in CPython, Python, Visual Studio 2012, Visual Studio 2013 Tagged with: , , , ,