From 9837da08416b3afba0c594b3f1b71795c9576654 Mon Sep 17 00:00:00 2001 From: David Stanek Date: Sun, 4 Nov 2012 07:19:49 -0500 Subject: some hello world steps --- README.md | 29 ++++++++++++++++++++++------- codemash/templates/index.html | 22 ++++------------------ 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index c08f893..1899655 100644 --- a/README.md +++ b/README.md @@ -2,28 +2,39 @@ CodeMash 2012 Django Precompiler ================================ + +Step 1: Creating a virtualized Python environment +================================================= + $ virtualenv django-precompiler $ cd django-precompiler $ source bin/activate $ git init src $ cd src -create requirements.txt + +Step 2: Starting a new project +============================== + +Student creates requirements.txt $ pip install -r requirements.txt - $ django-admin.py startproject codemash - $ mv codemash/ codemash-base - $ mv codemash-base/* . - $ rm -rf codemash-base/ + $ django-admin.py startproject codemash . $ chmod +x manage.py $ ./manage.py runserver -yay, django default page! now let's setup a template +yay, django default page! + + +Step 3: Hello Codemash! +======================= + +now let's setup a template $ mkdir codemash/templates -create codemash/templates/index.html +Student creates codemash/templates/index.html show very, very barebones HTML on the slide edit codemash/settings.py - import os @@ -31,3 +42,7 @@ edit codemash/settings.py - update TEMPLATE_DIRS edit codemash/urls.py + +yay, Hello Codemash! + +## tag: 1.hello diff --git a/codemash/templates/index.html b/codemash/templates/index.html index c54237f..ba0a13a 100644 --- a/codemash/templates/index.html +++ b/codemash/templates/index.html @@ -1,24 +1,10 @@ - + - - + Hello Codemash! - -
-

It worked!

-

Congratulations on your second Django-powered page.

-
+

It worked!

+

Congratulations on your second Django-powered page.

-- cgit v1.2.3