Skip to content

Commit

Permalink
Fix deployment using Deploy to Heroku button
Browse files Browse the repository at this point in the history
Remove reference to Project.url field which was removed in #2862.
  • Loading branch information
mathjazz committed Nov 22, 2023
1 parent 73c05e4 commit 514d5ca
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pontoon/base/management/commands/heroku_deploy_setup.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -19,7 +19,3 @@ def handle(self, *args, **options):

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/")
)

0 comments on commit 514d5ca

Please sign in to comment.