title: How to implement FirebaseDB with a Django Web Application
body: <p>Am trying to implement Firebase Realtime Database with my Django Web Application. After properly setting up the configuration with Firebase, I got confused about how data will write into my Firebase Database from my Django website instead of using Sqlite, or Postgres.  </p>
  
  <p>Under <code>settings.py</code>, do I need to set my engine to Firebase? Am totally confused here. I do not want to use the normal ORM such as Sqlite, Postgres etc. I want my app to use Firebase.</p>
  
  <p>Is there something else I need to understand about Firebase? </p>
  
  <p><strong>settings.py</strong></p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  </code></pre>
  
  <p><strong>pyrebase_settings</strong> file</p>
  
  <pre><code>import pyrebase
  
  config = {
      "apiKey": "my_api_key_is_here",
      "authDomain": "my_auth_domain_is_here",
      "databaseURL": "my_firebase_database_url_is_here",
      "projectId": "my_firebase_project_id_is_here",
      "storageBucket": "my_firebase_storageBucket_is_here",
      "serviceAccount": "my_serviceAccount.json_file_path_is_here",
      "messagingSenderId": "messagingSenderId_is_here"
  }
  
  # initialize app with config
  firebase = pyrebase.initialize_app(config)
  
  # authenticate a user
  auth = firebase.auth()
  user = auth.sign_in_with_email_and_password("email@usedforauthentication.com", "FstrongPasswordHere")
  
  
  db = firebase.database()
  </code></pre>