-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Remove logic for guessing slug from an unregistered domain #5143
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
Merged
stsewd
merged 19 commits into
readthedocs:master
from
stsewd:remove-cname-from-unregister-domain-fixed
Jan 29, 2019
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
7965864
Remove logic for guessing slug from unregistered domain
stsewd 2ddf251
Fix tests
stsewd 346de2d
Isort
stsewd c2b693e
Merge branch 'master' into remove-cname-from-unregister-domain
stsewd 5c467a0
Remove unused code
stsewd 93a1c23
Merge branch 'master' into remove-cname-from-unregister-domain
stsewd dc9a352
Merge branch 'master' into remove-cname-from-unregister-domain
stsewd ec79bff
Better test
stsewd 6cdde5e
More tests
stsewd fc043e6
Merge branch 'master' into remove-cname-from-unregister-domain
stsewd d95cb5e
Merge branch 'master' into remove-cname-from-unregister-domain-fixed
stsewd afd1b25
Merge branch 'master' into remove-cname-from-unregister-domain-fixed
stsewd 6a54929
Isort
stsewd 2d3f0ba
Remove dnspython from dependencies
stsewd 21415aa
Merge branch 'master' into remove-cname-from-unregister-domain-fixed
stsewd 2b400c7
Add a custom 404 for invalid hostnames
davidfischer d9a815d
Verbiage update
davidfischer d188c34
fix tests
stsewd 9eabe8e
Merge branch 'master' into remove-cname-from-unregister-domain-fixed
stsewd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% extends "base.html" %} | ||
{% load core_tags %} | ||
{% load i18n %} | ||
|
||
{% block title %} | ||
{% trans "Maze Found - Invalid Host" %} | ||
{% endblock %} | ||
|
||
{% block header-wrapper %} | ||
{% include "error_header.html" %} | ||
{% endblock %} | ||
|
||
{% block notify %}{% endblock %} | ||
|
||
{# Hide the language select form so we don't set a CSRF cookie #} | ||
{% block language-select-form %}{% endblock %} | ||
|
||
|
||
{% block content %} | ||
<h1>{% trans '404 - Invalid Host' %}</h1> | ||
<h3>{% blocktrans %}The host "{{ host }}" is unknown to Read the Docs{% endblocktrans %}</h3> | ||
|
||
<p> | ||
{% with docsurl='https://docs.readthedocs.io/en/stable/custom_domains.html' %} | ||
{% blocktrans trimmed %} | ||
If you control this domain and believe this is in error, | ||
please review our <a href="{{ docsurl }}">custom domain documentation</a>. | ||
In the past, we allowed custom domains to point to us without configuring the domain in the Read the Docs dashboard | ||
and we attempted to intelligently guess the correct project based on DNS settings. | ||
Now, we believe that explicit is better than implicit. | ||
Below are some steps to help you get your domain working again: | ||
{% endblocktrans %} | ||
{% endwith %} | ||
</p> | ||
|
||
|
||
<ul style="margin-left: 2em; list-style: inherit"> | ||
<li>{% trans 'Ensure you have a CNAME record pointing to <code>readthedocs.io</code>' %}</li> | ||
<li>{% trans 'Add your desired domain in the Read the Docs dashboard for your project (under Your Project >> Admin >> Domains)' %}</li> | ||
</ul> | ||
|
||
|
||
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,8 +35,6 @@ celery==4.1.1 | |
|
||
django-allauth==0.38.0 | ||
|
||
dnspython==1.16.0 | ||
|
||
# VCS | ||
httplib2==0.12.0 | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn't be
is an error
?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.
Either works but I think yours is better.
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.
Interesting, I guess is used more in other areas?