Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
yaozeliangtest committed Apr 16, 2020
1 parent 035cce8 commit c8b2472
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 128 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
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"
}
18 changes: 0 additions & 18 deletions Pipfile

This file was deleted.

110 changes: 0 additions & 110 deletions Pipfile.lock

This file was deleted.

45 changes: 45 additions & 0 deletions README.md
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

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](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 removed my_blog/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed my_blog/__pycache__/settings.cpython-38.pyc
Binary file not shown.
Binary file removed my_blog/__pycache__/urls.cpython-38.pyc
Binary file not shown.
23 changes: 23 additions & 0 deletions requirements.txt
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
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.8.2

0 comments on commit c8b2472

Please sign in to comment.