Skip to content

upgrade readme (#1)#13

Open
wuuuduu wants to merge 2 commits into
sparingsoftware:masterfrom
wuuuduu:master
Open

upgrade readme (#1)#13
wuuuduu wants to merge 2 commits into
sparingsoftware:masterfrom
wuuuduu:master

Conversation

@wuuuduu
Copy link
Copy Markdown

@wuuuduu wuuuduu commented Aug 24, 2021

Co-authored-by: wuuuduu github@kornel.dev

Co-authored-by: wuuuduu <github@kornel.dev>
Comment thread README.rst
Comment thread README.rst Outdated
)
def get_absolute_url(self):
return reverse('order-detail', kwargs={"pk": self.pk})
return f"{settings.FRONTEND_URL}/order/{self.pk}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

urljoin?

Comment thread README.rst
.. code-block:: python

FRONTEND_URL = "https://mydomain.tld"
assert not FRONTEND_URL.endswith("/")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if that is safe to apply on all projects. Maybe we should just use urljoin and don't care about slash?

Co-authored-by: wuuuduu <git@kornel.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants