From 302efd016236d86b024627a876cfcc7ec9671608 Mon Sep 17 00:00:00 2001 From: Kevan Ahlquist Date: Tue, 16 Dec 2014 00:19:07 -0600 Subject: [PATCH 1/5] Moved DebugToolbar to prod requirements to prevent import error. --- {{cookiecutter.app_name}}/requirements/dev.txt | 3 --- {{cookiecutter.app_name}}/requirements/prod.txt | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.app_name}}/requirements/dev.txt b/{{cookiecutter.app_name}}/requirements/dev.txt index d8858a4..952f1a3 100644 --- a/{{cookiecutter.app_name}}/requirements/dev.txt +++ b/{{cookiecutter.app_name}}/requirements/dev.txt @@ -8,6 +8,3 @@ factory-boy==2.4.1 # Management script Flask-Script - -# Debug toolbar -Flask-DebugToolbar==0.9.1 diff --git a/{{cookiecutter.app_name}}/requirements/prod.txt b/{{cookiecutter.app_name}}/requirements/prod.txt index 905a78c..40f11da 100644 --- a/{{cookiecutter.app_name}}/requirements/prod.txt +++ b/{{cookiecutter.app_name}}/requirements/prod.txt @@ -32,3 +32,6 @@ Flask-Bcrypt==0.6.0 # Caching Flask-Cache>=0.13.1 + +# Debug toolbar +Flask-DebugToolbar==0.9.1 From 06044d1675295f25b145836a64b0665388cf61ad Mon Sep 17 00:00:00 2001 From: Matt-- Date: Wed, 11 Feb 2015 19:53:39 +1300 Subject: [PATCH 2/5] Update README.rst New user, had to experiment/google to figure out no-white-space in blah='stuff'. --- {{cookiecutter.app_name}}/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.app_name}}/README.rst b/{{cookiecutter.app_name}}/README.rst index dd1d873..6d599f5 100644 --- a/{{cookiecutter.app_name}}/README.rst +++ b/{{cookiecutter.app_name}}/README.rst @@ -12,7 +12,7 @@ First, set your app's secret key as an environment variable. For example, exampl .. code-block:: bash - export {{cookiecutter.app_name | upper}}_SECRET = 'something-really-secret' + export {{cookiecutter.app_name | upper}}_SECRET='something-really-secret' Then run the following commands to bootstrap your environment. From 63263ead84627fbc9a6211d9686239f8fb2d3792 Mon Sep 17 00:00:00 2001 From: Matt-- Date: Wed, 11 Feb 2015 21:02:43 +1300 Subject: [PATCH 3/5] Update README.rst New User. No database installed yet and the Welcome page does not require a database to demonstrate the server is working and links work etc. I anticipate setting up SQLAlchemy is the next step. --- {{cookiecutter.app_name}}/README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/{{cookiecutter.app_name}}/README.rst b/{{cookiecutter.app_name}}/README.rst index 6d599f5..e790e4a 100644 --- a/{{cookiecutter.app_name}}/README.rst +++ b/{{cookiecutter.app_name}}/README.rst @@ -23,6 +23,11 @@ Then run the following commands to bootstrap your environment. git clone https://github.com/{{cookiecutter.github_username}}/{{ cookiecutter.app_name }} cd {{cookiecutter.app_name}} pip install -r requirements/dev.txt + python manage.py server + +You will see a pretty Welcome screen. +If you have already installed your database. + python manage.py db init python manage.py db migrate python manage.py db upgrade From 0da297ef1616f4c28e8e7205cfa1745c153a2fe4 Mon Sep 17 00:00:00 2001 From: Matt-- Date: Wed, 11 Feb 2015 21:07:32 +1300 Subject: [PATCH 4/5] Update README.rst Fix formatting errors. --- {{cookiecutter.app_name}}/README.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/{{cookiecutter.app_name}}/README.rst b/{{cookiecutter.app_name}}/README.rst index e790e4a..bcf51bb 100644 --- a/{{cookiecutter.app_name}}/README.rst +++ b/{{cookiecutter.app_name}}/README.rst @@ -26,8 +26,11 @@ Then run the following commands to bootstrap your environment. python manage.py server You will see a pretty Welcome screen. + If you have already installed your database. +:: + python manage.py db init python manage.py db migrate python manage.py db upgrade From 009f4641cf9e9adc6aafb0045ed88cb0746865ce Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Tue, 24 Feb 2015 00:52:34 -0500 Subject: [PATCH 5/5] Further clarification in README --- {{cookiecutter.app_name}}/README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.app_name}}/README.rst b/{{cookiecutter.app_name}}/README.rst index bcf51bb..04e55a5 100644 --- a/{{cookiecutter.app_name}}/README.rst +++ b/{{cookiecutter.app_name}}/README.rst @@ -24,10 +24,10 @@ Then run the following commands to bootstrap your environment. cd {{cookiecutter.app_name}} pip install -r requirements/dev.txt python manage.py server - -You will see a pretty Welcome screen. -If you have already installed your database. +You will see a pretty welcome screen. + +Once you have installed your DBMS, run the following to create your app's database tables and perform the initial migration: ::