Skip to content

Commit

Permalink
fix requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeier committed Aug 15, 2019
1 parent e450843 commit a4d81c1
Show file tree
Hide file tree
Showing 40 changed files with 36 additions and 151 deletions.
2 changes: 1 addition & 1 deletion .ebextensions/django.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: babylproject/wsgi.py
WSGIPath: babylproject/babylproject/wsgi.py
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SECRET_KEY = '@lui4d_$9_*c+*+(+0@$0rngm(7n=8n-^!pmg2kp^)a^sw4474'
DEBUG=True
ALLOWED_HOSTS=.localhost,127.0.0.1, http://babyl-django-env.mijbfpttig.us-west-2.elasticbeanstalk.com/, www.babyl.online
144 changes: 4 additions & 140 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,141 +1,5 @@
/babylproject/db.sqlite3
/extras
/babylproject/babylproject/settings.py

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

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
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
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.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

# celery beat schedule file
celerybeat-schedule

# 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/
© 2019 GitHub, Inc.
Terms
Privacy
Security
Status
Help
Contact GitHub
Pricing
API
Training
Blog
About

# Elastic Beanstalk Files
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml
Binary file added accounts/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file added accounts/__pycache__/admin.cpython-37.pyc
Binary file not shown.
Binary file added accounts/__pycache__/forms.cpython-37.pyc
Binary file not shown.
Binary file added accounts/__pycache__/models.cpython-37.pyc
Binary file not shown.
Binary file added accounts/__pycache__/tests.cpython-37.pyc
Binary file not shown.
Binary file added accounts/__pycache__/views.cpython-37.pyc
Binary file not shown.
Binary file not shown.
Binary file added babylproject/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added babylproject/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file added babylproject/__pycache__/settings.cpython-36.pyc
Binary file not shown.
Binary file added babylproject/__pycache__/settings.cpython-37.pyc
Binary file not shown.
Binary file added babylproject/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file added babylproject/__pycache__/urls.cpython-37.pyc
Binary file not shown.
Binary file added babylproject/__pycache__/wsgi.cpython-37.pyc
Binary file not shown.
30 changes: 21 additions & 9 deletions babylproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,28 @@
ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv())


DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'psdb',
'USER': '',
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '5432',
if 'RDS_DB_NAME' in os.environ:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': os.environ['RDS_DB_NAME'],
'USER': os.environ['RDS_USERNAME'],
'PASSWORD': os.environ['RDS_PASSWORD'],
'HOST': os.environ['RDS_HOSTNAME'],
'PORT': os.environ['RDS_PORT'],
}
}
else:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'iotd',
'USER': 'iotd',
'PASSWORD': 'iotd',
'HOST': 'localhost',
'PORT': '5432',
}
}
}
# DATABASES = {
# 'default': dj_database_url.config(
# default=config('DATABASE_URL')
Expand Down
Binary file added blogs/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file added blogs/__pycache__/admin.cpython-37.pyc
Binary file not shown.
Binary file added blogs/__pycache__/forms.cpython-37.pyc
Binary file not shown.
Binary file added blogs/__pycache__/models.cpython-37.pyc
Binary file not shown.
Binary file added blogs/__pycache__/tests.cpython-37.pyc
Binary file not shown.
Binary file added blogs/__pycache__/views.cpython-37.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added blogs/migrations/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added db.sqlite3
Binary file not shown.
8 changes: 7 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
astroid==2.2.5
awscli==1.16.218
awsebcli==3.15.3
blessed==1.15.0
botocore==1.12.208
Expand All @@ -21,6 +22,7 @@ docker-pycreds==0.4.0
dockerpty==0.4.1
docopt==0.6.2
docutils==0.14
ez-setup==0.9
future==0.16.0
idna==2.7
isort==4.3.21
Expand All @@ -31,6 +33,8 @@ Markdown==3.1.1
mccabe==0.6.1
oauthlib==3.1.0
pathspec==0.5.9
psycopg2==2.8.3
pyasn1==0.4.6
pylint==2.3.1
pylint-django==2.0.11
pylint-plugin-utils==0.5
Expand All @@ -41,6 +45,8 @@ pytz==2019.1
PyYAML==3.13
requests==2.20.1
requests-oauthlib==1.2.0
rsa==3.4.2
s3transfer==0.2.1
semantic-version==2.5.0
six==1.11.0
sqlparse==0.3.0
Expand All @@ -50,4 +56,4 @@ typed-ast==1.4.0
urllib3==1.24.3
wcwidth==0.1.7
websocket-client==0.56.0
wrapt==1.11.2
wrapt==1.11.2

0 comments on commit a4d81c1

Please sign in to comment.