Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cookiecutter flask
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Remy Mudingay
Cookiecutter flask
Commits
db0246de
Commit
db0246de
authored
8 years ago
by
Jeremy Epstein
Browse files
Options
Downloads
Patches
Plain Diff
rename cli.py to commands.py
parent
2f1168b6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py
+5
-5
5 additions, 5 deletions
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/commands.py
+0
-0
0 additions, 0 deletions
...iecutter.app_name}}/{{cookiecutter.app_name}}/commands.py
with
5 additions
and
5 deletions
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py
+
5
−
5
View file @
db0246de
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"""
The app module, containing the app factory function.
"""
"""
The app module, containing the app factory function.
"""
from
flask
import
Flask
,
render_template
from
flask
import
Flask
,
render_template
from
{{
cookiecutter
.
app_name
}}
import
c
li
,
public
,
user
from
{{
cookiecutter
.
app_name
}}
import
c
ommands
,
public
,
user
from
{{
cookiecutter
.
app_name
}}.
assets
import
assets
from
{{
cookiecutter
.
app_name
}}.
assets
import
assets
from
{{
cookiecutter
.
app_name
}}.
extensions
import
bcrypt
,
cache
,
csrf_protect
,
db
,
debug_toolbar
,
login_manager
,
migrate
from
{{
cookiecutter
.
app_name
}}.
extensions
import
bcrypt
,
cache
,
csrf_protect
,
db
,
debug_toolbar
,
login_manager
,
migrate
from
{{
cookiecutter
.
app_name
}}.
settings
import
ProdConfig
from
{{
cookiecutter
.
app_name
}}.
settings
import
ProdConfig
...
@@ -68,7 +68,7 @@ def register_shellcontext(app):
...
@@ -68,7 +68,7 @@ def register_shellcontext(app):
def
register_commands
(
app
):
def
register_commands
(
app
):
"""
Register Click commands.
"""
"""
Register Click commands.
"""
app
.
cli
.
add_command
(
c
li
.
test
)
app
.
cli
.
add_command
(
c
ommands
.
test
)
app
.
cli
.
add_command
(
c
li
.
lint
)
app
.
cli
.
add_command
(
c
ommands
.
lint
)
app
.
cli
.
add_command
(
c
li
.
clean
)
app
.
cli
.
add_command
(
c
ommands
.
clean
)
app
.
cli
.
add_command
(
c
li
.
urls
)
app
.
cli
.
add_command
(
c
ommands
.
urls
)
This diff is collapsed.
Click to expand it.
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/c
li
.py
→
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/c
ommands
.py
+
0
−
0
View file @
db0246de
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment