diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..00704d496 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.pythonPath": "c:\\Users\\GilbertS\\Documents\\GitHub\\python-getting-started\\getting-started\\Scripts\\python.exe" +} \ No newline at end of file diff --git a/README.md b/README.md index 8cbdb7f82..bdba9e895 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,15 @@ $ createdb python_getting_started $ python manage.py migrate $ python manage.py collectstatic +LocalServer +// Linux $ heroku local +// Windows +heroku local web -f Procfile.windows + ``` + Your app should now be running on [localhost:5000](http://localhost:5000/). ## Deploying to Heroku @@ -34,6 +40,8 @@ $ git push heroku master $ heroku run python manage.py migrate $ heroku open ``` +// ensure atleast one instance is running +heroku ps:scale web=1 or [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) diff --git a/hello/migrations/0002_auto_20200131_1259.py b/hello/migrations/0002_auto_20200131_1259.py new file mode 100644 index 000000000..2536fd373 --- /dev/null +++ b/hello/migrations/0002_auto_20200131_1259.py @@ -0,0 +1,18 @@ +# Generated by Django 3.0.2 on 2020-01-31 09:59 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('hello', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='greeting', + name='when', + field=models.DateTimeField(auto_now_add=True, verbose_name='date created'), + ), + ]