Skip to content

Commit

Permalink
Use SQLite3 database backend when building docs
Browse files Browse the repository at this point in the history
This prevents Django from loading psycopg2 when running autodocs on models files
  • Loading branch information
kaedroho committed Jul 15, 2014
1 parent d1d8b78 commit 6603c63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
# be configured
os.environ['DJANGO_SETTINGS_MODULE'] = 'wagtail.tests.settings'

# Use SQLite3 database engine so it doesn't attempt to use psycopg2 on RTD
os.environ['DATABASE_ENGINE'] = 'django.db.backends.sqlite3'


# -- General configuration ------------------------------------------------

Expand Down

0 comments on commit 6603c63

Please sign in to comment.