Skip to content

Commit

Permalink
heroku setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lheredias committed Mar 1, 2022
1 parent bf61d9a commit dc42875
Show file tree
Hide file tree
Showing 23 changed files with 250 additions and 7 deletions.
246 changes: 241 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,255 @@

# Created by https://www.toptal.com/developers/gitignore/api/venv
# Edit at https://www.toptal.com/developers/gitignore?templates=venv
# Created by https://www.toptal.com/developers/gitignore/api/python,django,venv
# Edit at https://www.toptal.com/developers/gitignore?templates=python,django,venv

### Django ###
*.log
*.pot
*.pyc
__pycache__/
local_settings.py
db.sqlite3
db.sqlite3-journal
media

# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
# in your Git repository. Update and uncomment the following line accordingly.
# <django-project-name>/staticfiles/

### Django.Python Stack ###
# Byte-compiled / optimized / DLL files
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo

# Django stuff:

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

### Python ###
# Byte-compiled / optimized / DLL files

# C extensions

# Distribution / packaging

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.

# Installer logs

# Unit test / coverage reports

# Translations

# Django stuff:

# Flask stuff:

# Scrapy stuff:

# Sphinx documentation

# PyBuilder

# Jupyter Notebook

# IPython

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control

# PEP 582; used by e.g. github.com/David-OConnor/pyflow

# Celery stuff

# SageMath parsed files

# Environments

# Spyder project settings

# Rope project settings

# mkdocs documentation

# mypy

# Pyre type checker

# pytype static type analyzer

# Cython debug symbols

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.

### venv ###
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
.Python
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
.venv
pip-selfcheck.json

# End of https://www.toptal.com/developers/gitignore/api/venv
# End of https://www.toptal.com/developers/gitignore/api/python,django,venv
Binary file modified FinalProject/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified FinalProject/__pycache__/settings.cpython-39.pyc
Binary file not shown.
Binary file modified FinalProject/__pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file modified FinalProject/__pycache__/wsgi.cpython-39.pyc
Binary file not shown.
6 changes: 4 additions & 2 deletions FinalProject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-g&cfs8dt+#f^w_m2nm-*j!jjt4)7b!m^qrmidj_a6n2=*$m3wt'
# SECRET_KEY = 'django-insecure-g&cfs8dt+#f^w_m2nm-*j!jjt4)7b!m^qrmidj_a6n2=*$m3wt'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False

ALLOWED_HOSTS = []

Expand Down Expand Up @@ -139,3 +139,5 @@
MEDIA_URL = "/comics-media/"
CRISPY_TEMPLATE_PACK = 'bootstrap4'

import django_on_heroku
django_on_heroku.settings(locals())
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: python manage.py runserver 0.0.0.0:$PORT
Binary file modified comics/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified comics/__pycache__/admin.cpython-39.pyc
Binary file not shown.
Binary file modified comics/__pycache__/apps.cpython-39.pyc
Binary file not shown.
Binary file modified comics/__pycache__/models.cpython-39.pyc
Binary file not shown.
Binary file modified comics/__pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file modified comics/__pycache__/views.cpython-39.pyc
Binary file not shown.
Binary file modified comics/migrations/__pycache__/0001_initial.cpython-39.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified comics/migrations/__pycache__/0005_user_bio.cpython-39.pyc
Binary file not shown.
Binary file modified comics/migrations/__pycache__/0006_series_about.cpython-39.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified comics/migrations/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
asgiref==3.5.0
dj-database-url==0.5.0
Django==4.0.2
django-crispy-forms==1.14.0
django-on-heroku==1.1.2
Pillow==9.0.1
psycopg2-binary==2.9.3
sqlparse==0.4.2
whitenoise==6.0.0

0 comments on commit dc42875

Please sign in to comment.