import os
import django

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'branch_system.settings')
django.setup()

from django.test import Client

client = Client()
try:
    # First GET to get the page
    response = client.get('/login/')
    print(f"GET Status: {response.status_code}")
    
    # Try POST with dummy credentials
    response = client.post('/login/', {
        'username': 'test',
        'password': 'test123'
    })
    print(f"POST Status: {response.status_code}")
except Exception as e:
    print(f"Exception: {e}")
    import traceback
    traceback.print_exc()
