input: Write a function to create a Django application that includes a model for storing user details such as name, address, and email. The function should handle the entire process from creating the Django project to defining the User model and performing migrations.
  
  assert create_django_app() == "Django app created with User model and migrations completed."
output: 
  def create_django_app():
      import os
      import django
      from django.core.management import call_command
      from django.conf import settings
  
      # Set up Django settings
      settings.configure(
          INSTALLED_APPS=[
              'django.contrib.admin',
              'django.contrib.auth',
              'django.contrib.contenttypes',
              'django.contrib.sessions',
              'django.contrib.messages',
              'django.contrib.staticfiles',
              'myapp',
          ],
          DATABASES={
              'default': {
                  'ENGINE': 'django.db.backends.sqlite3',
                  'NAME': 'db.sqlite3',
              }
          },
      )
  
      # Initialize Django
      django.setup()
  
      # Create the Django project
      os.makedirs('myproject', exist_ok=True)
      with open('myproject/manage.py', 'w') as f:
          f.write("""import os
  import sys
  
  if __name__ == "__main__":
      os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings')
      from django.core.management import execute_from_command_line
      execute_from_command_line(sys.argv)
  """)
  
      # Create the Django app
      os.makedirs('myapp', exist_ok=True)
      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(max_length=100)
  """)
  
      with open('myapp/apps.py', 'w') as f:
          f.write("""from django.apps import AppConfig
  
  class MyappConfig(AppConfig):
      default_auto_field = 'django.db.models.BigAutoField'
      name = 'myapp'
  """)
  
      with open('myapp/__init__.py', 'w') as f:
          f.write("default_app_config = 'myapp.apps.MyappConfig'\n")
  
      # Perform migrations
      call_command('makemigrations', 'myapp')
      call_command('migrate')
  
      return "Django app created with User model and migrations completed."
  