Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
remove contrib.auth and database settings
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam committed Aug 12, 2019
1 parent c031535 commit c540a11
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@

def main():
parser = OptionParser()
parser.add_option(
"--DATABASE_ENGINE", dest="DATABASE_ENGINE", default="sqlite3")
parser.add_option("--DATABASE_NAME", dest="DATABASE_NAME", default="")
parser.add_option("--DATABASE_USER", dest="DATABASE_USER", default="")
parser.add_option(
"--DATABASE_PASSWORD", dest="DATABASE_PASSWORD", default="")
parser.add_option("--TEST", dest="TEST_SUITE", default=None)

options, args = parser.parse_args()
Expand All @@ -38,14 +32,6 @@ def main():
settings.configure(**{
# Set USE_TZ to True to work around bug in django-storages
"USE_TZ": True,
"DATABASES": {
'default': {
"ENGINE": 'django.db.backends.%s' % options.DATABASE_ENGINE,
"NAME": options.DATABASE_NAME,
"USER": options.DATABASE_USER,
"PASSWORD": options.DATABASE_PASSWORD,
}
},
"CACHES": {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
Expand All @@ -62,8 +48,6 @@ def main():
"collectfast/templates"),
),
"INSTALLED_APPS": (
"django.contrib.auth",
"django.contrib.contenttypes",
app_name,
"django.contrib.staticfiles",
),
Expand Down

0 comments on commit c540a11

Please sign in to comment.