Skip to content

Commit

Permalink
bug(heroku) : relation 'authentication_user' does not exist
Browse files Browse the repository at this point in the history
-configure  whitenoise
-uninstall django-heroku
-remove release commands from Procfile
-change .org to .com in travis ci link inside Readme.md
-exclude django-heroku in the requirements.txt file

[Finishes #164046242]
  • Loading branch information
BrianSerem committed Mar 4, 2019
1 parent 3348944 commit 5bc4193
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,4 @@ migrations/

.DS_Store
.vscode/
staticfiles/
3 changes: 0 additions & 3 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
release: python manage.py makemigrations --settings=authors.settings.prod
release: python manage.py migrate --settings=authors.settings.prod

web: gunicorn authors.wsgi
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/andela/ah-legion-backend.svg?branch=master)](https://travis-ci.org/andela/ah-legion-backend.svg?branch=develop)
[![Build Status](https://travis-ci.com/andela/ah-legion-backend.svg?branch=develop)](https://travis-ci.com/andela/ah-legion-backend)
[![Coverage Status](https://coveralls.io/repos/github/andela/ah-legion-backend/badge.svg?branch=develop)](https://coveralls.io/github/andela/ah-legion-backend?branch=develop)
[![Maintainability](https://api.codeclimate.com/v1/badges/72c25fc53cfdf26f49d7/maintainability)](https://codeclimate.com/github/andela/ah-legion-backend/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/72c25fc53cfdf26f49d7/test_coverage)](https://codeclimate.com/github/andela/ah-legion-backend/test_coverage)
Expand Down
12 changes: 10 additions & 2 deletions authors/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@
'authors.apps.core',
'authors.apps.profiles',
]
MIDDLEWARE_CLASSES = (
'whitenoise.middleware.WhiteNoiseMiddleware',
)

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
Expand Down Expand Up @@ -108,8 +110,14 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.10/howto/static-files/

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

STATIC_URL = '/static/'

STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)

CORS_ORIGIN_WHITELIST = (
'0.0.0.0:4000',
'localhost:4000',
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ idna==2.8
isort==4.3.9
lazy-object-proxy==1.3.1
mccabe==0.6.1
psycopg2==2.7.7
psycopg2-binary==2.7.7
pycodestyle==2.5.0
pyflakes==2.1.0
Expand Down

0 comments on commit 5bc4193

Please sign in to comment.