Error: That IP address can't be assigned-to in Django?

django

Solution

You are missing two lines of code in network configuration file. Edit the file as a root user with any text editor:

sudo gedit /etc/network/interfaces

Add these two lines:

    auto lo

    iface lo inet loopback

Restart the network using the following command:

sudo /etc/init.d/networking restart

Now, the localserver will work fine.

Problem

I am running Debian 6 stable and I am trying to run Django locally using `./manage.py runserver` command. This is what I get: ``` Validating models... 0 errors found Django version 1.4.1, using settings 'genelaytics.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Error: That IP address can't be assigned-to. ``` I tried creating a new django project, still get the same error. What's the problem? I just fresh re-installed Debian yesterday because of this problem. This problem hasn't gone away. How can I fix it?

Original source

Related problems