Skip to content

Instantly share code, notes, and snippets.

@eknuth
Created October 15, 2011 19:04
Show Gist options
  • Save eknuth/1289991 to your computer and use it in GitHub Desktop.
Save eknuth/1289991 to your computer and use it in GitHub Desktop.

Revisions

  1. eknuth created this gist Oct 15, 2011.
    11 changes: 11 additions & 0 deletions settings.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    import os
    SITE_ROOT = os.path.dirname(os.path.realpath(__file__))


    TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
    os.path.join(SITE_ROOT, 'templates')

    )
    1 change: 1 addition & 0 deletions urls.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    url(r'^$', 'om.views.home', name='home'),
    5 changes: 5 additions & 0 deletions views.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    from annoying.decorators import render_to

    @render_to('hero.html')
    def home(request):
    return {}