Django for ISchoolers: Difference between revisions

Content added Content deleted
imported>Aldeka
imported>Aldeka
Line 92: Line 92:
=== Start your local development server ===
=== Start your local development server ===


# 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 106: Line 106:
Quit the server with CONTROL-C.</code>
Quit the server with CONTROL-C.</code>


# 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 ==