prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Broken heroku deploy button
  When i try to deploy pontoon on heroku, i got an infinite charge..
  ![image](https://user-images.githubusercontent.com/39674510/159341794-4393827a-5b36-49b7-89b4-52b9602d1e72.png)
  
  I just clicked on button from README file and logged in to heroku platform
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `pontoon/base/management/commands/heroku_deploy_setup.py`
  Content:
  ```
  1 import os
  2 
  3 from urllib.parse import urlparse, urljoin
  4 
  5 from django.core.management.base import BaseCommand
  6 from django.contrib.sites.models import Site
  7 
  8 from pontoon.base.models import Project, User
  9 
  10 
  11 class Command(BaseCommand):
  12     help = "Setup an instance of Pontoon deployed via Heroku Deploy."
  13 
  14     def handle(self, *args, **options):
  15         site_url = os.environ.get("SITE_URL")
  16         app_host = urlparse(site_url).netloc
  17         admin_email = os.environ.get("ADMIN_EMAIL")
  18         admin_password = os.environ.get("ADMIN_PASSWORD")
  19 
  20         User.objects.create_superuser(admin_email, admin_email, admin_password)
  21         Site.objects.filter(pk=1).update(name=app_host, domain=app_host)
  22 
  23         Project.objects.filter(slug="pontoon-intro").update(
  24             url=urljoin(site_url, "intro/")
  25         )
  26
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/pontoon/base/management/commands/heroku_deploy_setup.py b/pontoon/base/management/commands/heroku_deploy_setup.py
  --- a/pontoon/base/management/commands/heroku_deploy_setup.py
  +++ b/pontoon/base/management/commands/heroku_deploy_setup.py
  @@ -1,11 +1,11 @@
   import os
   
  -from urllib.parse import urlparse, urljoin
  +from urllib.parse import urlparse
   
   from django.core.management.base import BaseCommand
   from django.contrib.sites.models import Site
   
  -from pontoon.base.models import Project, User
  +from pontoon.base.models import User
   
   
   class Command(BaseCommand):
  @@ -19,7 +19,3 @@
   
           User.objects.create_superuser(admin_email, admin_email, admin_password)
           Site.objects.filter(pk=1).update(name=app_host, domain=app_host)
  -
  -        Project.objects.filter(slug="pontoon-intro").update(
  -            url=urljoin(site_url, "intro/")
  -        )
  
verification_info: {"golden_diff": "diff --git a/pontoon/base/management/commands/heroku_deploy_setup.py b/pontoon/base/management/commands/heroku_deploy_setup.py\n--- a/pontoon/base/management/commands/heroku_deploy_setup.py\n+++ b/pontoon/base/management/commands/heroku_deploy_setup.py\n@@ -1,11 +1,11 @@\n import os\n \n-from urllib.parse import urlparse, urljoin\n+from urllib.parse import urlparse\n \n from django.core.management.base import BaseCommand\n from django.contrib.sites.models import Site\n \n-from pontoon.base.models import Project, User\n+from pontoon.base.models import User\n \n \n class Command(BaseCommand):\n@@ -19,7 +19,3 @@\n \n         User.objects.create_superuser(admin_email, admin_email, admin_password)\n         Site.objects.filter(pk=1).update(name=app_host, domain=app_host)\n-\n-        Project.objects.filter(slug=\"pontoon-intro\").update(\n-            url=urljoin(site_url, \"intro/\")\n-        )\n", "issue": "Broken heroku deploy button\nWhen i try to deploy pontoon on heroku, i got an infinite charge..\r\n![image](https://user-images.githubusercontent.com/39674510/159341794-4393827a-5b36-49b7-89b4-52b9602d1e72.png)\r\n\r\nI just clicked on button from README file and logged in to heroku platform\n", "before_files": [{"content": "import os\n\nfrom urllib.parse import urlparse, urljoin\n\nfrom django.core.management.base import BaseCommand\nfrom django.contrib.sites.models import Site\n\nfrom pontoon.base.models import Project, User\n\n\nclass Command(BaseCommand):\n    help = \"Setup an instance of Pontoon deployed via Heroku Deploy.\"\n\n    def handle(self, *args, **options):\n        site_url = os.environ.get(\"SITE_URL\")\n        app_host = urlparse(site_url).netloc\n        admin_email = os.environ.get(\"ADMIN_EMAIL\")\n        admin_password = os.environ.get(\"ADMIN_PASSWORD\")\n\n        User.objects.create_superuser(admin_email, admin_email, admin_password)\n        Site.objects.filter(pk=1).update(name=app_host, domain=app_host)\n\n        Project.objects.filter(slug=\"pontoon-intro\").update(\n            url=urljoin(site_url, \"intro/\")\n        )\n", "path": "pontoon/base/management/commands/heroku_deploy_setup.py"}], "after_files": [{"content": "import os\n\nfrom urllib.parse import urlparse\n\nfrom django.core.management.base import BaseCommand\nfrom django.contrib.sites.models import Site\n\nfrom pontoon.base.models import User\n\n\nclass Command(BaseCommand):\n    help = \"Setup an instance of Pontoon deployed via Heroku Deploy.\"\n\n    def handle(self, *args, **options):\n        site_url = os.environ.get(\"SITE_URL\")\n        app_host = urlparse(site_url).netloc\n        admin_email = os.environ.get(\"ADMIN_EMAIL\")\n        admin_password = os.environ.get(\"ADMIN_PASSWORD\")\n\n        User.objects.create_superuser(admin_email, admin_email, admin_password)\n        Site.objects.filter(pk=1).update(name=app_host, domain=app_host)\n", "path": "pontoon/base/management/commands/heroku_deploy_setup.py"}]}