This repository has been archived by the owner on Dec 6, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6090147
commit 7f98d4b
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testsettings") | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
args = sys.argv | ||
if len(args) == 2 and args[1] == 'test': | ||
args.append('emailusernames') | ||
|
||
execute_from_command_line(args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': ':memory:', | ||
}, | ||
} | ||
|
||
INSTALLED_APPS = ( | ||
'emailusernames', | ||
'django.contrib.auth', | ||
'django.contrib.contenttypes', | ||
) | ||
|
||
AUTHENTICATION_BACKENDS = ( | ||
'emailusernames.backends.EmailAuthBackend', | ||
) |