diff options
author | Mike Crute <mcrute@gmail.com> | 2012-10-24 16:59:46 -0400 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2012-10-24 17:03:08 -0400 |
commit | 3584f33f468ac027390b6312e93b2b55d06da740 (patch) | |
tree | 7f501f787e9e6708a93155bea55a2554317941af /README.md | |
parent | ebffa435ca99b24eaecebb7a58b76f28a3249a49 (diff) | |
download | django-precompiler-3584f33f468ac027390b6312e93b2b55d06da740.tar.bz2 django-precompiler-3584f33f468ac027390b6312e93b2b55d06da740.tar.xz django-precompiler-3584f33f468ac027390b6312e93b2b55d06da740.zip |
First steps
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 34 |
1 files changed, 33 insertions, 1 deletions
@@ -1 +1,33 @@ | |||
1 | Hello World! | 1 | ================================ |
2 | CodeMash 2012 Django Precompiler | ||
3 | ================================ | ||
4 | |||
5 | $ virtualenv django-precompiler | ||
6 | $ cd django-precompiler | ||
7 | $ source bin/activate | ||
8 | $ git init src | ||
9 | $ cd src | ||
10 | |||
11 | create requirements.txt | ||
12 | |||
13 | $ pip install -r requirements.txt | ||
14 | |||
15 | $ django-admin.py startproject codemash | ||
16 | $ mv codemash/ codemash-base | ||
17 | $ mv codemash-base/* . | ||
18 | $ rm -rf codemash-base/ | ||
19 | $ chmod +x manage.py | ||
20 | $ ./manage.py runserver | ||
21 | |||
22 | yay, django default page! now let's setup a template | ||
23 | |||
24 | $ mkdir codemash/templates | ||
25 | |||
26 | create codemash/templates/index.html | ||
27 | |||
28 | edit codemash/settings.py | ||
29 | - import os | ||
30 | - add PROJECT_DIR | ||
31 | - update TEMPLATE_DIRS | ||
32 | |||
33 | edit codemash/urls.py | ||