Installing and Configuring Django Web Framework with Virtual Environments in CentOS/Debian – Part 1

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Gabriel Cánepa

Gabriel Cánepa is a GNU/Linux sysadmin and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

11 Responses

  1. JF says:

    Here is a video How to install pip, virtualenv, django on Centos 7– Django tutorial series lecture 1 that will help you much more than others because it’s so clear to understand.

  2. Jochen says:

    What’s the point in running the development server on A) there is no need for that and B) it’s an unnecessary safety concern.

  3. Gavin S says:

    This article does not cover the topic well and includes unnecessary information and steps that open security vulnerabilities. Do not open ports on your firewall for “others on the same network” to see your django project unless you know what you’re doing. For most development setups of django localhost is the right way to go. The article says you need virtualenvwrapper then doesn’t make use of it.
    On an admin note the whole first part of the article is mistakenly (or just irritatingly) a link.

    • @Gavin,
      Thanks for your comment. Let me explain.
      1) This series is meant as an introduction to Django (as I explain at the top), and not as a full guide covering security. However, since security is also a concern, we may consider adding an extra article to this series covering that topic for a development environment such as the one described here.
      2) When I say “In any event, you can change the default port where the built-in web server will be listening. By using as the network interface to listen on, we allow other computers in the same network to access the project user interface (if you use instead, you will only be able to access the UI from localhost).”, I mean that if you are installing Django in a CLI-only server, how are you supposed to check whether the applications are working (and looking properly) except you can connect to the server from a desktop PC somewhere in the network?
      3) You’re absolutely right about the link in the first part of the article. I am asking Ravi, the owner of the site, to take a look and fix it.
      Best regards.

  4. Ariq Naufal says:

    how about listening on port 80 ?
    i want to install django 1.8.5 on my vps, with default port (:80) .. Please help

  5. Chris Barranger says:

    Just a quick question. Can this be used with Mint? If so, are there any differences?

    • @Chris,
      You can use Django with your distribution of choice. There should not be any differences. If you run into any issues, don’t hesitate to contact me and I’ll be more than glad to jump in and help.

  6. Marin Todorov says:

    Once again a great article by Gabriel. I hope that you write articles for more advanced users! There is certainly lots of things people can learn from you.

Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.