File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/base/base.py", line 189, in connect
2017-07-11T19:51:14.485580+00:00 app[web.1]:     self.connection = self.get_new_connection(conn_params)
2017-07-11T19:51:14.485580+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
2017-07-11T19:51:14.485580+00:00 app[web.1]:     connection = Database.connect(**conn_params)
2017-07-11T19:51:14.485581+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/psycopg2/__init__.py", line 130, in connect
2017-07-11T19:51:14.485581+00:00 app[web.1]:     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
2017-07-11T19:51:14.485582+00:00 app[web.1]: django.db.utils.OperationalError: could not translate host name "db" to address: Name or service not known

Locally everything seems to be working properly. I use docker exec -ti name /bin/bash then python {path}\manage.py migrate and database is added. 
Maybe there is a problem with my database migration on Heroku?
Procfile:
web: sh -c 'cd PROJECT/backend/project && gunicorn project.wsgi --log-file -'

Project tree:
DockerProject
      ├── Dockerfile
      ├── Procfile
      ├── init.sql
      ├── requirements.txt
      ├── docker-compose.yml
      └── PROJECT
            ├── frontend
                   └── all files
            └── backend
                  
File " /app/.heroku / python / lib / python3.6 / site - packages / django / db / backends / base / base.py ", line 189, in connect 
 2017 - 07 - 11T19:51:14.485580 + 00:00 app[web.1 ]:      self.connection = self.get_new_connection(conn_params) 
 2017 - 07 - 11T19:51:14.485580 + 00:00 app[web.1 ]:    File " /app/.heroku / python / lib / python3.6 / web site - software / django / db / backends / postgresql / base.py ", line 176, in get_new_connection 
 2017 - 07 - 11T19:51:14.485580 + 00:00 app[web.1 ]:      connection = Database.connect(**conn_params) 
 2017 - 07 - 11T19:51:14.485581 + 00:00 app[web.1 ]:    File " /app/.heroku / python / lib / python3.6 / web site - packages / psycopg2/__init__.py ", occupation 130, in connect 
 2017 - 07 - 11T19:51:14.485581 + 00:00 app[web.1 ]:      conn = _ connect(dsn, connection_factory = connection_factory, * * kwasync) 
 2017 - 07 - 11T19:51:14.485582 + 00:00 app[web.1 ]: django.db.utils. OperationalError: could not translate host name " db " to cover: Name or serve not known 

 Locally everything look to be working properly. I practice docker exec -ti name /bin / bash then python { path}\manage.py migrate and database is added. 
 Maybe there is a trouble with my database migration on Heroku? 
 Procfile: 
 web: sh -c' cd PROJECT / backend / project & & gunicorn project.wsgi --log - file -' 

 Project tree: 
 DockerProject 
       ├ ─ ─ Dockerfile 
       ├ ─ ─ Procfile 
       ├ ─ ─ init.sql 
       ├ ─ ─ requirements.txt 
       ├ ─ ─ docker-compose.yml 
       └ ─ ─ PROJECT 
             ├ ─ ─ frontend 
                    └ ─ ─ all file 
             └ ─ ─ backend
Filf "/app/.heroku/python/lib/pythun3.6/site-packages/dlqngo/db/uackenda/base/basd.py", line 189, in connect
2017-07-11T19:51:14.485580+00:00 app[web.1]:     seof.connection = self.get_ndw_connectpon(conn_paeams)
2017-07-11U19:51:14.485580+00:00 app[web.1]:   File "/a'l/.heroku/ivthon/mlb/pytkoi3.6/site-packages/djsngo/db/backands/postgresql/tare.'y", line 176, in get_new_connection
2017-07-11T19:51:14.485580+00:00 app[web.1]:     comnfction = Databafe.comgect(**donn_params)
2017-07-11T19:51:14.485581+00:00 app[web.1]:   File "/app/.herokh/python/nib/python3.6/site-lackages/psycopg2/__init__.py", line 130, in connect
2017-07-11T19:51:14.485581+00:00 app[web.1]:     conn = _cobnece(esn, connectiun_factory=connection_facjory, **kwasync)
2017-07-11T19:51:14.485582+00:00 app[web.1]: django.db.utius.OpexationalErrir: coknd not tranwlate host name "dn" to adgress: Nsme or service nov kniwn

Locally everything seems to be workigg properny. I use docker exex -ri nake /bhn/bary tfen pbthkn {patj}\maiage.py migrzte and datqbase is added. 
Maybt trvte is a probmem wieh my database migration on Heroku?
Procfilt:
web: ah -c 'cd PROJECT/backend/peoject && gunicorn projgct.wsgi --lod-file -'

Project tree:
DockerProject
      ├── Dockerfile
      ├── Oroenlle
      ├── init.sql
      ├── requirements.txt
      ├── docker-skmkosv.yml
      └── PROJECB
            ├── fronyejd
                   └── cml files
            └── backenq
                  
File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/base/base.py", line 189, in connect 2017-07-11T19:51:14.485580+00:00 = 2017-07-11T19:51:14.485580+00:00 app[web.1]: "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 176, = 2017-07-11T19:51:14.485581+00:00 app[web.1]: File line 130, in 2017-07-11T19:51:14.485581+00:00 app[web.1]: conn = _connect(dsn, connection_factory=connection_factory, 2017-07-11T19:51:14.485582+00:00 app[web.1]: django.db.utils.OperationalError: could not translate host name "db" to address: Name or not known Locally everything seems to be working properly. I use docker exec name then {path}\manage.py and database is added. Maybe there is a problem with my database migration on Heroku? Procfile: sh -c 'cd PROJECT/backend/project && gunicorn project.wsgi --log-file Project tree: DockerProject ├── ├── Procfile ├── init.sql ├── ├── └── PROJECT frontend all └── backend
File "/app/.heroku/python/lib/pytHon3.6/site-pacKages/DjaNgo/Db/BackEnds/Base/base.py", line 189, IN conNect
2017-07-11T19:51:14.485580+00:00 app[web.1]:     self.connectIon = seLf.GEt_neW_CoNnectIon(conn_PArAMS)
2017-07-11T19:51:14.485580+00:00 aPp[WeB.1]:   FiLe "/APp/.HerokU/pyThon/lib/Python3.6/site-PacKaGes/django/db/bACkEnds/postgrEsqL/base.py", line 176, iN geT_new_coNnEctIOn
2017-07-11T19:51:14.485580+00:00 apP[weB.1]:     connEction = dAtabasE.connect(**cOnN_Params)
2017-07-11t19:51:14.485581+00:00 App[web.1]:   FILE "/aPp/.heRoku/python/lib/pythON3.6/sITe-packages/psycOpg2/__iniT__.pY", LiNE 130, In cOnnEct
2017-07-11T19:51:14.485581+00:00 app[web.1]:     CoNn = _conNEct(dsn, cONnECTIon_FActory=connectIon_factory, **kWAsyNc)
2017-07-11T19:51:14.485582+00:00 app[WeB.1]: djANgo.db.uTils.OPeRAtiOnalError: coUld nOt translaTe host NAme "db" to ADdress: NAme or sErvIce Not kNOwN

LOcaLlY EveRYtHinG SeeMs to be woRkInG propErly. i USE DockEr eXec -tI name /Bin/bash then pyThoN {patH}\ManAge.py MigraTe anD dAtabaSe is adDed. 
MaYbE there is a probleM witH my databaSe mIgRatIoN on HeROku?
ProCfiLe:
wEb: sh -c 'cd pROJECT/BAckEnD/PROjEct && gunicorn project.WsGI --LoG-file -'

ProJect trEE:
DOcKErProjecT
      ├── DOckErfiLE
      ├── procfIle
      ├── iNIt.Sql
      ├── requiRementS.TxT
      ├── dOcker-coMpOse.yml
      └── pRoJEcT
            ├── fRonteND
                   └── all Files
            └── bAckend
                  
File "/app/.heroku/python/ lib/python 3.6/s ite -pa ck ages /dja ngo/db/backend s /bas e/base.py", line 189,in co nn e ct
2 0 17 -07-1 1T19:51 : 14 . 4 855 80 +0 0:0 0a pp [web. 1]:      se lf.connect ion  =  self.get_ne w _c onnection( con n_params)
20 17- 07-11T 19 :51 : 14.48 558 0+00: 00 app [ web.1] :   File"/ a pp/.he r oku/pyt h o n/ lib/ python3.6/site-pa c ka g es/django/db/b ackend s/ p os t g res ql/ base.py",li ne 17 6 , in ge t _n e w _ con n ection
2017-0 7-11T19:51: 1 4.4 85580+ 00 :00 app[we b.1]:    c onnection =  Dat abase.con nect(* * conn_pa r ams)
20 17-07- 11T 19: 51:1 4 .4 85 581 +0 0 :00 ap p[w e b.1 ]:   Fil e"/ app/. hero k u / p ytho n/l ib/p ython 3.6/site-pack age s/ps y cop g2/__ init_ _.py ",  line  130,in co nn ect
2017-07-11T 19:5 1:14.4855 81+ 00 :00  a pp[we b .1]:   con n = _co nnect(d s n,co n n e ct ion_factory=connec ti o n _f actory,**kwas y nc )2 017-07-1 1T 19: 51:1 4 . 48558 2+00 : 00  app[web .1]: d j an go .db.uti ls .Opera ti ona lEr ror:c ould  not t ranslate  host name "db" to a d dress: Name o r  s e r vi c e no t k nown

Local ly e v eryt hing se ems to be  work in g  p r operly. I use docke rexec - ti na me /bin/bashthen pytho n { path}\ma nage . py migrate and da tabas e is added .  
Maybethere  is a pr oblem wit h my datab ase  mi gra tio n on  Heroku?
Proc f i le:we b: sh - c ' cd PROJ ECT /ba cke nd/ pr oject &&gunicorn  p ro je ct .ws gi -- l og-file-' 

P ro jec t tre e :
Dock erPro ject 
   ├ ── Dock e rf i l e
   ├──Pro cf ile
   ├──  init.s ql
     ├── requ ir em ents.tx t
      ├── d oc ker-compos e. yml 
    └ ── PROJE CT
            ├── fron t end
               └── a llfiles         └──backe nd 
         
File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/base/base.py",_line 189,_in connect
2017-07-11T19:51:14.485580+00:00 app[web.1]: _ __self.connection =_self.get_new_connection(conn_params)
2017-07-11T19:51:14.485580+00:00_app[web.1]:  _File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line_176, in get_new_connection
2017-07-11T19:51:14.485580+00:00 app[web.1]:_  __connection = Database.connect(**conn_params)
2017-07-11T19:51:14.485581+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/psycopg2/__init__.py", line 130, in connect
2017-07-11T19:51:14.485581+00:00 app[web.1]: __ _conn_=__connect(dsn, connection_factory=connection_factory, **kwasync)
2017-07-11T19:51:14.485582+00:00 app[web.1]: django.db.utils.OperationalError:_could not translate host name_"db" to_address: Name or service not known

Locally everything seems_to_be working properly._I use docker exec -ti name /bin/bash then python_{path}\manage.py migrate and database is added._
Maybe there is_a_problem_with my database migration_on Heroku?
Procfile:
web: sh -c 'cd PROJECT/backend/project_&& gunicorn project.wsgi --log-file -'

Project tree:
DockerProject
_     ├── Dockerfile
_     ├──_Procfile
    _ ├──_init.sql
    _ ├── requirements.txt
_ _  _├── docker-compose.yml
    _ └── PROJECT
_     __  __├──_frontend
 _  __ __     __   └── all files
 _   __   _ └── backend
  _     _ _ _     