kopia lustrzana https://github.com/wagtail/bakerydemo
Add # noqa to print statements
rodzic
83eeca85d4
commit
32f5e55ef5
|
@ -26,7 +26,7 @@ class Command(BaseCommand):
|
|||
fixtures_dir = os.path.join(settings.PROJECT_DIR, "base", "fixtures")
|
||||
fixture_file = os.path.join(fixtures_dir, "bakerydemo.json")
|
||||
|
||||
print("Copying media files to configured storage...")
|
||||
print("Copying media files to configured storage...") # noqa: T201
|
||||
local_storage = FileSystemStorage(os.path.join(fixtures_dir, "media"))
|
||||
self._copy_files(local_storage, "") # file storage paths are relative
|
||||
|
||||
|
@ -40,6 +40,6 @@ class Command(BaseCommand):
|
|||
call_command("loaddata", fixture_file, verbosity=0)
|
||||
call_command("update_index", verbosity=0)
|
||||
|
||||
print(
|
||||
print( # noqa: T201
|
||||
"Awesome. Your data is loaded! The bakery's doors are almost ready to open..."
|
||||
)
|
||||
|
|
|
@ -14,7 +14,7 @@ if "DJANGO_SECRET_KEY" in os.environ:
|
|||
SECRET_KEY = os.environ["DJANGO_SECRET_KEY"]
|
||||
else:
|
||||
# Use if/else rather than a default value to avoid calculating this if we don't need it
|
||||
print(
|
||||
print( # noqa: T201
|
||||
"WARNING: DJANGO_SECRET_KEY not found in os.environ. Generating ephemeral SECRET_KEY."
|
||||
)
|
||||
SECRET_KEY = "".join(
|
||||
|
|
Ładowanie…
Reference in New Issue