simple host
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 9 May 2014 12:49:14 +0000 (21:49 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 9 May 2014 12:49:14 +0000 (21:49 +0900)
requirements.txt [new file with mode: 0644]
settings.py
wsgi.py [new file with mode: 0644]

diff --git a/requirements.txt b/requirements.txt
new file mode 100644 (file)
index 0000000..aed3f18
--- /dev/null
@@ -0,0 +1,3 @@
+django-cms
+Markdown
+pysqlite
index 493bcce..33f5142 100644 (file)
@@ -14,7 +14,7 @@ MANAGERS = ADMINS
 DATABASES = {
     'default' : {
         'ENGINE': 'django.db.backends.sqlite3',           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-        'NAME' : '/home/fsij/django/fsij/fsij.db',             # Or path to database file if using sqlite3.
+        'NAME' : '/private/fsij.db',             # Or path to database file if using sqlite3.
         }
 }
 
diff --git a/wsgi.py b/wsgi.py
new file mode 100644 (file)
index 0000000..6eb31cd
--- /dev/null
+++ b/wsgi.py
@@ -0,0 +1,14 @@
+import sys, os, os.path
+
+sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
+sys.path.insert(0, '/private')
+# os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
+
+from django.core.wsgi import get_wsgi_application
+application = get_wsgi_application()
+
+# def application(env, start_response):
+#     start_response('200 OK', [('Content-Type', 'text/html; charset=utf-8')])
+#     return ['<!DOCTYPE html><html><meta charset="utf-8"><title>It works',
+#             "</title><b>It works!</b><br /><br />This is the server's ",
+#             'default wsgi.py.']