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 include the necessary steps to create the Django project, define the model, and perform the migrations. Ensure the function handles all required steps and returns True if the application is successfully created, otherwise return False.
  assert create_django_app()==True
output: 
  def create_django_app():
      import os
      import django
      from django.core.management import call_command
  
      # Set up Django environment
      os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings')
      django.setup()
  
      # Create Django project
      os.system('django-admin startproject myproject')
      os.chdir('myproject')
  
      # Create Django app
      os.system('python manage.py startapp myapp')
  
      # Define the model
      with open('myapp/models.py', 'w') as f:
          f.write("""
  from django.db import models
  
  class UserProfile(models.Model):
      name = models.CharField(max_length=100)
      address = models.CharField(max_length=200)
      email = models.EmailField()
  """)
  
      # Add the 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')
      call_command('migrate')
  
      return True
  