Skip to main content

Django Testing

Test your Django applications with AI-powered remote browsers. No code installation required.

How It Works

DebuggAI connects to your running Django development server and tests it using remote browsers. Our AI agents understand Django forms, authentication flows, admin interfaces, and complex user workflows.

Quick Setup

1. Start Your Django App

python manage.py runserver    # Your app runs on localhost:8000

2. Create a Test

  • Press Cmd+Alt+C in VS Code
  • Describe what to test: "Test user registration form validation"
  • DebuggAI runs the test using remote browsers

3. Get Results

  • Screenshots and recordings in VS Code Test Results panel
  • Pass/fail status with detailed analysis
  • AI insights about Django-specific functionality

Common Test Examples

Django Forms

"Test user registration form with password validation"
"Check contact form submits and shows success message"
"Verify file upload form handles image files correctly"

Authentication & Admin

"Test admin login and user management interface"
"Check password reset flow sends email and works"
"Verify user permissions restrict access properly"

Models & Views

"Test blog post creation and display on homepage"
"Check e-commerce product browsing and filtering"
"Verify user profile updates save and display correctly"

Django Features Supported

DebuggAI automatically handles:

  • Django Forms - Tests form validation, submission, and error handling
  • Authentication - Tests login/logout, user registration, password reset flows
  • Django Admin - Tests admin interface interactions and CRUD operations
  • Models & Views - Tests database interactions through web interface
  • Static Files - Works with Django's static file serving
  • REST APIs - Tests Django REST Framework through frontend interfaces

Build Tools Supported

  • Standard Django - Works with any Django project structure
  • Django + React/Vue - Supports frontend framework integration
  • Django + HTMX - Tests modern Django with HTMX
  • Docker - Works with containerized Django applications

Troubleshooting

Common Issues

  • Port mismatch: Ensure extension is configured for your Django server port (usually 8000)
  • Server not running: Verify python manage.py runserver is active
  • Static files: Make sure static files are served correctly in development

Getting Help

  • Check Troubleshooting Guide for common solutions
  • Review test results and screenshots for debugging hints
  • Contact support through debugg.ai if needed

CI with Debugg CLI

Automate Django tests in CI with the Debugg CLI:

  • Use the Django snippet in Debugg CLI Workflows
  • Start server: python manage.py runserver 0.0.0.0:8000 and set TEST_URL=http://localhost:8000
  • Add DEBUGGAI_API_KEY as a repository secret

Next: Explore Node.js Testing for API backend testing.