diff --git a/djinit/templates/project/settings/development.j2 b/djinit/templates/project/settings/development.j2 index 3de8340..d787801 100644 --- a/djinit/templates/project/settings/development.j2 +++ b/djinit/templates/project/settings/development.j2 @@ -16,6 +16,17 @@ DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": BASE_DIR / "db.sqlite3", + "OPTIONS": { + "transaction_mode": "IMMEDIATE", + "timeout": 5, # seconds + "init_command": """ + PRAGMA journal_mode=WAL; + PRAGMA synchronous=NORMAL; + PRAGMA mmap_size = 134217728; + PRAGMA journal_size_limit = 27103364; + PRAGMA cache_size=2000; + """, + }, } } diff --git a/single_output.txt b/single_output.txt new file mode 100644 index 0000000..1d7d02b --- /dev/null +++ b/single_output.txt @@ -0,0 +1,14 @@ +ℹ + +═════════════════════════════════════════════ +═════════════════════════ + Django App Creation +═════════════════════════════════════════════ +═════════════════════════ + +ℹ +✗ App creation is not supported for Single +Folder Structure projects. +This structure is designed to be a single-app +project. +✗ Failed to create Django app 'testapp' diff --git a/standard_output.txt b/standard_output.txt new file mode 100644 index 0000000..b1a3532 --- /dev/null +++ b/standard_output.txt @@ -0,0 +1,14 @@ +ℹ + +═════════════════════════════════════════════ +═════════════════════════ + Django App Creation +═════════════════════════════════════════════ +═════════════════════════ + +ℹ +✓ Created Django app 'testapp' in +/home/sankalp/Projects/djinit/test_standard +✗ Could not find USER_DEFINED_APPS section in +base.py +✗ Failed to create Django app 'testapp' diff --git a/unified_output.txt b/unified_output.txt new file mode 100644 index 0000000..42f0688 --- /dev/null +++ b/unified_output.txt @@ -0,0 +1,14 @@ +ℹ + +═════════════════════════════════════════════ +═════════════════════════ + Django App Creation +═════════════════════════════════════════════ +═════════════════════════ + +ℹ +✗ App creation is not supported for Unified +Structure projects. +Please manually create your app in 'apps/' +and register it in 'core/settings/base.py'. +✗ Failed to create Django app 'testapp'