From 6cf05d70a87cd33955670d43f14f28067f90379e Mon Sep 17 00:00:00 2001 From: Marc Tamlyn Date: Mon, 16 Jan 2012 10:14:54 +0000 Subject: Test translation to temp file. --- testproject/settings.py | 5 +++++ testproject/templates/sample.html | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 testproject/templates/sample.html (limited to 'testproject') diff --git a/testproject/settings.py b/testproject/settings.py index f60fecd..0454766 100644 --- a/testproject/settings.py +++ b/testproject/settings.py @@ -1,3 +1,7 @@ +import os + +PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) + # Django settings for testproject project. DEBUG = True @@ -103,6 +107,7 @@ MIDDLEWARE_CLASSES = ( ROOT_URLCONF = 'testproject.urls' TEMPLATE_DIRS = ( + os.path.join(PROJECT_PATH, 'templates') # 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. diff --git a/testproject/templates/sample.html b/testproject/templates/sample.html new file mode 100644 index 0000000..3dfbdbb --- /dev/null +++ b/testproject/templates/sample.html @@ -0,0 +1,7 @@ + + + + +

{{ title }}

+ + -- cgit v1.2.3