Django for ISchoolers: Difference between revisions

Content added Content deleted
imported>Aldeka
No edit summary
imported>Aldeka
Line 94: Line 94:
# Django, handily, comes with some local server software (warning: never use Django's built-in dev server for actually hosting a site in production! It's not meant for that.). This local dev server makes it easy to see the changes you make to your web app as you build it. Let's make sure our project works by verifying that the dev server will start.
# Django, handily, comes with some local server software (warning: never use Django's built-in dev server for actually hosting a site in production! It's not meant for that.). This local dev server makes it easy to see the changes you make to your web app as you build it. Let's make sure our project works by verifying that the dev server will start.


## Run the command:
* Run the command:
<code>python manage.py runserver</code>
<code>python manage.py runserver</code>


## Review the output in your terminal. It should look similar to:
* Review the output in your terminal. It should look similar to:


<code>Validating models...
<code>Validating models...
Line 107: Line 107:


# Now that the server’s running, visit [http://127.0.0.1:8000/ http://127.0.0.1:8000/] with your Web browser. You’ll see a “Welcome to Django” page, in pleasant, light-blue pastel. It worked!
# Now that the server’s running, visit [http://127.0.0.1:8000/ http://127.0.0.1:8000/] with your Web browser. You’ll see a “Welcome to Django” page, in pleasant, light-blue pastel. It worked!



== Using version control ==
== Using version control ==