[gpapers] push by marcelCo...@gmail.com - make gpapers work with more recent django versions on 2012-07-02 20:30 GMT

4 views
Skip to first unread message

codesite...@google.com

unread,
Jul 2, 2012, 4:30:19 PM7/2/12
to gpapers...@googlegroups.com
Revision: 4558a4f32523
Author: Marcel Stimberg <marcel...@gmail.com>
Date: Mon Jul 2 13:29:21 2012
Log: make gpapers work with more recent django versions
http://code.google.com/p/gpapers/source/detail?r=4558a4f32523

Modified:
/gpapers/__init__.py
/gpapers/settings.py

=======================================
--- /gpapers/__init__.py Sat Jun 30 16:22:09 2012
+++ /gpapers/__init__.py Mon Jul 2 13:29:21 2012
@@ -2931,7 +2931,9 @@

def init_db():
import django.core.management.commands.syncdb
-
django.core.management.commands.syncdb.Command().handle_noargs(interactive=False)
+
django.core.management.commands.syncdb.Command().handle_noargs(interactive=False,
+
verbosity=0,
+
database='default')


def main(argv):
=======================================
--- /gpapers/settings.py Sat Jun 30 06:35:07 2012
+++ /gpapers/settings.py Mon Jul 2 13:29:21 2012
@@ -15,6 +15,15 @@

MANAGERS = ADMINS

+# For django 1.4
+DATABASES = { 'default':
+ {
+ 'ENGINE' : 'django.db.backends.sqlite3',
+ 'NAME' : os.path.join(DATA_DIR, 'papers_db.sqlite3')
+ }
+}
+
+# For django 1.3
DATABASE_ENGINE = 'sqlite3'
# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = os.path.join(DATA_DIR, 'papers_db.sqlite3') #
Or path to database file if using sqlite3.
DATABASE_USER = '' # Not used with sqlite3.
Reply all
Reply to author
Forward
0 new messages