input: Write a function to create a Django application with a model that stores the name, address, and email of a user. The function should automatically generate the necessary Django project files and model, perform migrations, and return a message indicating the successful completion of these steps.
  assert create_django_app()=="Django application created with User model and migrations completed successfully."
  assert create_django_app()=="Django application created with User model and migrations completed successfully."
  assert create_django_app()=="Django application created with User model and migrations completed successfully."
output: 
  def create_django_app():
      import os
      import django
      from django.core.management import call_command
  
      os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings')
      django.setup()
  
      # Create Django project
      call_command('startproject', 'myproject')
      os.chdir('myproject')
  
      # Create Django app
      call_command('startapp', 'myapp')
  
      # Define User model
      with open('myapp/models.py', 'w') as f:
          f.write("""
  from django.db import models
  
  class User(models.Model):
      name = models.CharField(max_length=100)
      address = models.CharField(max_length=200)
      email = models.EmailField()
  """)
  
      # Add app to INSTALLED_APPS
      with open('myproject/settings.py', 'r') as f:
          settings = f.read()
      with open('myproject/settings.py', 'w') as f:
          f.write(settings.replace(
              "INSTALLED_APPS = [",
              "INSTALLED_APPS = [\n    'myapp',"
          ))
  
      # Perform migrations
      call_command('makemigrations', 'myapp')
      call_command('migrate')
  
      return "Django application created with User model and migrations completed successfully."
  