-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add home page #5494
Add home page #5494
Conversation
This pull request introduces 2 alerts when merging 823df1d into 21af455 - view on LGTM.com new alerts:
|
Are "STOREFRONT_URL" and "DASHBOARD_URL" set in saleor-platform? |
@fowczarek, there is PR for it right now: saleor/saleor-platform#24 |
This pull request introduces 2 alerts when merging 78c00b0 into 21af455 - view on LGTM.com new alerts:
|
|
||
|
||
def home(request): | ||
storefront = os.environ.get("STOREFRONT_URL", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't have those set (for ex. someone cloned saleor and running it outside of docker) that will result in broken link in template. Maybe worth adding localhost:3000 as second arg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The links will not be broken, links to the dashboard and storefront won't appear in this situation. If we put there default links and somebody doesn't have running instances of the dash and store it will cause broken links.
Add view for a splash page and create a template with links to the playground, dashboard, and storefront.
Impact
Pull Request Checklist