Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix cookiecutter.json file and add jinja2 tag {% raw %} to avoid
cookiecutter parser error
- Loading branch information
1 parent
1e0e419
commit 30da87a
Showing
8 changed files
with
27 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"project_name": "project_name", | ||
"repo_name": "{{ cookiecutter.project_name|replace(' ', '_')|lower }}", | ||
"description": "A short description of the project.", | ||
"description": "A short description of the project." | ||
} |
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
4 changes: 4 additions & 0 deletions
4
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/public/templates/index.html
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{% raw %} | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
{% endraw %} | ||
<h1>Welcome to {{cookiecutter.project_name}}</h1> | ||
{% raw %} | ||
{% endblock content %} | ||
{% endraw %} |
2 changes: 2 additions & 0 deletions
2
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/templates/home.html
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{% raw %} | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<h2>Hi {{ user.name }}!</h2> | ||
{% endblock content %} | ||
{% endraw %} |
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