Complete rewrite by OpenCode
This commit is contained in:
32
test_direct_import.py
Normal file
32
test_direct_import.py
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Change to project directory
|
||||
os.chdir('/home/adebaumann/development/vgui-cicd')
|
||||
sys.path.insert(0, '.')
|
||||
|
||||
print("Testing direct import of settings module...")
|
||||
|
||||
try:
|
||||
import VorgabenUI.settings as settings_module
|
||||
print("✓ Import successful")
|
||||
|
||||
# Check if attributes exist
|
||||
print("Has DATABASES:", hasattr(settings_module, 'DATABASES'))
|
||||
print("Has BASE_DIR:", hasattr(settings_module, 'BASE_DIR'))
|
||||
|
||||
if hasattr(settings_module, 'DATABASES'):
|
||||
print("DATABASES value:", settings_module.DATABASES)
|
||||
else:
|
||||
print("DATABASES not found")
|
||||
|
||||
if hasattr(settings_module, 'BASE_DIR'):
|
||||
print("BASE_DIR value:", settings_module.BASE_DIR)
|
||||
else:
|
||||
print("BASE_DIR not found")
|
||||
|
||||
except Exception as e:
|
||||
print("✗ Import failed:", e)
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
Reference in New Issue
Block a user