-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
53b6bc4
commit cf5218f
Showing
4 changed files
with
41 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,26 @@ | ||
from __future__ import annotations | ||
|
||
from pathlib import Path | ||
|
||
BASE_DIR = Path(__file__).resolve().parent | ||
|
||
SECRET_KEY = "NOTASECRET" # noqa S105 | ||
|
||
DATABASES = { | ||
"default": { | ||
"ENGINE": "django.db.backends.sqlite3", | ||
"NAME": ":memory:", | ||
"ATOMIC_REQUESTS": True, | ||
}, | ||
} | ||
|
||
TIME_ZONE = "UTC" | ||
|
||
INSTALLED_APPS = [ | ||
"tests.testapp", | ||
"remake_migrations", | ||
# Force django_migrations creation by having an app with migrations: | ||
"django.contrib.contenttypes", | ||
] | ||
|
||
USE_TZ = True |
Empty file.
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,8 @@ | ||
from __future__ import annotations | ||
|
||
from django.apps import AppConfig | ||
|
||
|
||
class TestAppConfig(AppConfig): | ||
name = "tests.testapp" | ||
verbose_name = "Test App" |
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,7 @@ | ||
from __future__ import annotations | ||
|
||
from django.db import models | ||
|
||
|
||
class Book(models.Model): | ||
pass |