forked from hacktoolkit/django-htk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extends localized string export options to group by language
- also adds default templates: `robots.txt`, `data.json` - adds `json_file_download` view for easily rendering a downloadable JSON file response - allows `jsondumps` template filter to take in an arg for `indent`
- Loading branch information
Showing
6 changed files
with
237 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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 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 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 @@ | ||
{% load htk_tags %}{{ json|jsondumps:4 }} |
This file contains 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,13 @@ | ||
{% spaceless %} | ||
{% if request.host == constants.canonical_domain %} | ||
User-agent: * | ||
Disallow: /admin | ||
|
||
Crawl-delay: 10 | ||
Sitemap: https://{{ request.host }}/sitemap.xml | ||
Host: {{ request.host }} | ||
{% else %} | ||
User-agent: * | ||
Disallow: / | ||
{% endif %} | ||
{% endspaceless %} |
Oops, something went wrong.