Chapter 4 - localhost:8000 not working


#1

Made adjustments to all of the files, added the “from django.conf.urls import include” line to the views.py and made the index.html file, but when I try to load the http://localhost:8000/ page, it says it can’t connect.

I got it to load the first time through at the end of Chapter 3. Not sure what I am doing wrong. Can someone help?


#2

Make sure you have a local server running — that’s the python manage.py runserver command. :)


#3

Thank you so much! I did try that last night, but I got an error:

“Traceback (most recent call last):
File “manage.py”, line 8, in
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management”

I can’t figure out what I might have done wrong between Monday and Tuesday to have made that not work.


#4

AH! I got it. THANK YOU!


#5

Yay! Sounds like you weren’t in your virtual environment. :)