Skip to content

Commit 9767efd

Browse files
acdhaPatrick Lauber
authored and
Patrick Lauber
committed
Tweaks to use sqlite3 by default to avoid needing to install MySQL just to use the example
Removed misleading LANGUAGE_CODE="en-us", which would cause an error with the multilingual URL middleware if it wasn't overruled further down in the file. Added TextPlugin to demo the text editor Signed-off-by: Patrick Lauber <[email protected]>
1 parent 86dc2ae commit 9767efd

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

example/manage.py

100644100755
File mode changed.

example/settings.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
MANAGERS = ADMINS
1515

16-
DATABASE_ENGINE = 'mysql'#'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
17-
DATABASE_NAME = 'cms' # Or path to database file if using sqlite3.
18-
DATABASE_USER = 'cms' # Not used with sqlite3.
19-
DATABASE_PASSWORD = 'cms' # Not used with sqlite3.
20-
DATABASE_HOST = '127.0.0.1' # Set to empty string for localhost. Not used with sqlite3.
16+
DATABASE_ENGINE = 'sqlite3'#'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
17+
DATABASE_NAME = 'dev.db' # Or path to database file if using sqlite3.
18+
DATABASE_USER = '' # Not used with sqlite3.
19+
DATABASE_PASSWORD = '' # Not used with sqlite3.
20+
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
2121
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
2222

2323
# Test database settings
@@ -33,10 +33,6 @@
3333
# system time zone.
3434
TIME_ZONE = 'America/Chicago'
3535

36-
# Language code for this installation. All choices can be found here:
37-
# http://www.i18nguy.com/unicode/language-identifiers.html
38-
LANGUAGE_CODE = 'en-us'
39-
4036
SITE_ID = 1
4137

4238
# If you set this to False, Django will make some optimizations so as not
@@ -162,7 +158,7 @@
162158
},
163159

164160
'body': {
165-
"plugins": ("VideoPlugin", ),
161+
"plugins": ("VideoPlugin", "TextPlugin", ),
166162
"extra_context": {"theme":"16_5"},
167163
"name":gettext("body"),
168164
},

0 commit comments

Comments
 (0)