Installing django on dreamhost (help a newb out)

Posted by augustfirst on Stack Overflow See other posts from Stack Overflow or by augustfirst
Published on 2010-12-24T02:46:01Z Indexed on 2010/12/24 2:54 UTC
Read the original article Hit count: 253

Filed under:
|
|

I'm trying to get django running on my dreahost account. I've been trying to sort of use two tutorials at once: the one on the dreamhost wiki and the one in the django book.

I installed django using the script on the wiki page, but I ran into trouble immediately while trying to work through the django book. It says:

To start the server, change into your project directory (cd mysite), if you haven’t already, and run this command:

python manage.py runserver

This launches the server locally, on port 8000, accessible only to connections from your own computer. Now that it’s running, visit 127.0.0.1:8000 with your Web browser. You’ll see a “Welcome to Django” page shaded in a pleasant pastel blue. It worked!

Those instructions seem to assume that you're developing locally, not on a shared server. Where the heck am I supposed to look for the "Welcome to Django" page after starting the server? In my webroot? No dice.

Anyway, I tried to blunder ahead through the django book to its hello world tutorial (chapter 3). But once I've edited the view file and the URLconf, I don't get a nice clean "hello world" text. Instead (as you can see) I get an "import error".

Any help would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about python

Related posts about django