Day 1 - Django and virtualenv

Today begins the new challenge. Day 1. And this first day starts with continuing to pickup a skill that I started learning mid last year- Django. Most of you reading this probably know what Django is, but for those who don’t, it’s a web framework. I’ll start my learning directly from Udemy’s course, Learn Python Django from Scratch by Stone River eLearning. I’ve already covered a few of the beginning videos, and here’s what I’ve learned:

As the course begins, it starts out with setting up your Python environment using virtualenv, which is a development tool that allows you to create isolated python environments, so that as a developer, you can work on multiple Python projects, each requiring their own set of python frameworks, libraries, and etc, and neither of your environments clash with the other. One project might require django, another project might require Python 3. By using virtualenv, I can setup separate Python environments on the same workstation, and I don’t have to worry about having those environments clash with each other.

For most of my development work, especially the Python stuff, I’m using a Linux box, which most standard installs come with Python. From there, it’s just a matter of issuing a couple commands to get up and running with virtualenv. Check out Virtual Environments for instructions on how to set up virtualenv.

Furthermore, if you’ve used virtualenv before, managing each environment can be cumbersome. To deal with that, use virtualenvwrapper . Before virtualenvwrapper, I was creating my own directory for storing each virtual python environment. virtualenvwrapper makes doing this much less a headache.

Ok, so that wasn’t exactly exciting news. Still, it’s something.

Jason T Clark

Jason T Clark

Father. Musician. Gamer. Coder.

comments powered by Disqus
rss facebook twitter github youtube mail spotify instagram linkedin