-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
035cce8
commit c8b2472
Showing
9 changed files
with
72 additions
and
128 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.pythonPath": "C:\\Users\\E560\\.virtualenvs\\blog_project-WkqOzNF5\\Scripts\\python.exe" | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Python: Getting Started | ||
|
||
A barebones Django app, which can easily be deployed to Heroku. | ||
|
||
This application supports the [Getting Started with Python on Heroku](https://devcenter.heroku.com/articles/getting-started-with-python) article - check it out. | ||
|
||
## Running Locally | ||
|
||
Make sure you have Python 3.7 [installed locally](http://install.python-guide.org). To push to Heroku, you'll need to install the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli), as well as [Postgres](https://devcenter.heroku.com/articles/heroku-postgresql#local-setup). | ||
|
||
```sh | ||
$ git clone https://github.com/heroku/python-getting-started.git | ||
$ cd python-getting-started | ||
|
||
$ python3 -m venv getting-started | ||
$ pip install -r requirements.txt | ||
|
||
$ createdb python_getting_started | ||
|
||
$ python manage.py migrate | ||
$ python manage.py collectstatic | ||
|
||
$ heroku local | ||
``` | ||
|
||
Your app should now be running on [localhost:5000](http://localhost:5000/). | ||
|
||
## Deploying to Heroku | ||
|
||
```sh | ||
$ heroku create | ||
$ git push heroku master | ||
|
||
$ heroku run python manage.py migrate | ||
$ heroku open | ||
``` | ||
or | ||
|
||
[](https://heroku.com/deploy) | ||
|
||
## Documentation | ||
|
||
For more information about using Python on Heroku, see these Dev Center articles: | ||
|
||
- [Python on Heroku](https://devcenter.heroku.com/categories/python) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
asgiref==3.2.7 | ||
Django==2.1 | ||
django-appconf==1.0.4 | ||
django-ckeditor==5.9.0 | ||
django-crispy-forms==1.9.0 | ||
django-imagekit==4.0.2 | ||
django-js-asset==1.2.2 | ||
django-model-utils==4.0.0 | ||
django-notifications-hq==1.6.0 | ||
django-password-reset==2.0 | ||
django-simpleui==3.9.1 | ||
django-taggit==1.2.0 | ||
gunicorn==19.9.0 | ||
jsonfield==3.1.0 | ||
Markdown==3.2.1 | ||
pilkit==2.0 | ||
Pillow==7.1.1 | ||
Pygments==2.6.1 | ||
pytz==2019.3 | ||
six==1.14.0 | ||
sqlparse==0.3.1 | ||
swapper==1.1.2.post1 | ||
whitenoise==3.3.1 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
python-3.8.2 |