A barebones Django app utilizing postgres & bootstrap, which can easily be deployed to Heroku.
This application supports the Getting Started with Python on Heroku article - check it out.
Download the pycharm ide - community edition from
https://www.jetbrains.com/pycharm/download/download-thanks.html?platform=windows&code=PCC
wget https://bootstrap.pypa.io/get-pip.py
pip install -upgrade pip
pip install virtualenv
git clone https://github.com/apoclyps/django-heroku-seed.git
brew install heroku
brew install postgresql
brew services start postgresql
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
sudo apt-get install sudo apt-get install python-dev libpq-dev python-dev
virtualenv hackathon-env
source hackathon-env/bin/activate
pip install -r requirements.txt
psql hackathon
CREATE USER user WITH PASSWORD 'password';
export DATABASE_URL='postgres:/user:password@localhost:5431/django-heroku-seed'
createdb django-heroku-seed
python manage.py createsuperuser
python manage.py migrate
python manage.py collectstatic
python manage.py runserver
Make sure you have Python installed properly. Also, install the Heroku Toolbelt and Postgres.
$ git clone [email protected]/apoclyps/django-heroku-seed.git
$ cd django-heroku-seed
$ pip install -r requirements.txt
$ createdb django-heroku-seed
$ python manage.py migrate
$ python manage.py collectstatic
$ heroku local
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku run python manage.py migrate
$ heroku open
or
For more information about using Python on Heroku, see these Dev Center articles: