aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: c08f893c43c808440e8892788a2a2d7192ee2e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
================================
CodeMash 2012 Django Precompiler
================================

    $ virtualenv django-precompiler
    $ cd django-precompiler
    $ source bin/activate
    $ git init src
    $ cd src

create requirements.txt

    $ pip install -r requirements.txt

    $ django-admin.py startproject codemash
    $ mv codemash/ codemash-base
    $ mv codemash-base/* .
    $ rm -rf codemash-base/
    $ chmod +x manage.py
    $ ./manage.py runserver

yay, django default page! now let's setup a template

    $ mkdir codemash/templates

create codemash/templates/index.html

edit codemash/settings.py
- import os
- add PROJECT_DIR
- update TEMPLATE_DIRS

edit codemash/urls.py