Skip to content

Commit 7601d12

Browse files
authored
Merge pull request #57 from 7anshuai/master
made app name consistently
2 parents 66fa04d + d0c67ab commit 7601d12

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

{{cookiecutter.app_slug}}/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Flask Skeleton
1+
# {{cookiecutter.app_name}}
22

33
## Quick Start
44

{{cookiecutter.app_slug}}/project/server/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class BaseConfig(object):
99
"""Base configuration."""
10-
APP_NAME = os.getenv('APP_NAME', 'Flask Skeleton')
10+
APP_NAME = os.getenv('APP_NAME', '{{cookiecutter.app_name}}')
1111
BCRYPT_LOG_ROUNDS = 4
1212
DEBUG_TB_ENABLED = False
1313
SECRET_KEY = os.getenv('SECRET_KEY', 'my_precious')

{{cookiecutter.app_slug}}/setup-without-docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Create and activate a virtual environment, and then install the requirements.
1111
Update *project/server/config.py*, and then run:
1212

1313
```sh
14-
$ export APP_NAME="Flask Skeleton"
14+
$ export APP_NAME="{{cookiecutter.app_name}}"
1515
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"
1616
$ export FLASK_DEBUG=1
1717
```
1818

1919
Using [Pipenv](https://docs.pipenv.org/) or [python-dotenv](https://github.com/theskumar/python-dotenv)? Use the *.env* file to set environment variables:
2020

2121
```sh
22-
APP_NAME="Flask Skeleton"
22+
APP_NAME="{{cookiecutter.app_name}}"
2323
APP_SETTINGS="project.server.config.DevelopmentConfig"
2424
FLASK_DEBUG=1
2525
```

0 commit comments

Comments
 (0)