prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <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
  
  </issue>
  <code>
  [start of pontoon/base/management/commands/heroku_deploy_setup.py]
  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 of pontoon/base/management/commands/heroku_deploy_setup.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
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"}]}