Эх сурвалжийг харах

django: Fix template directory setting.

INADA Naoki 12 жил өмнө
parent
commit
55309fa52f

+ 1 - 1
django/hello/hello/settings.py

@@ -111,7 +111,7 @@ 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.
-    "/home/hyoung/FrameworkBenchmarks/django/hello/templates",
+    os.path.expanduser("~/FrameworkBenchmarks/django/hello/templates"),
 )
 
 INSTALLED_APPS = (