I have installed Python 2.7 for Windows, and downloaded Django-1.2.3. Now, I want to build my first website with them. How can I get to the first hello world page, in a browser? Can I use 开发者_JAVA百科Apache/XAMPP to go to http://localhost ? What are the base principles to get a website working? Thank you
Just read the excellent and thorough Django tutorial. Django comes with a built-in simple web-server that you can run your websites on. It's just a Python script you run, and then you go to a port on localhost
(by default port 8000). It's really quite simple and well-explained in the tutorial.
Specifically, look at the section named "The development server" in the page I linked to.
Personally I found this basic web-server to be very useful for all stages of website development.
# django-admin.py startproject myone # cd myone # python manage.py runserver
精彩评论