Re: Settings file for multiple environments?

2019-04-17 Thread ANi
yes, it is "abcd.*settings*.hk". And I think it will show error if it's wrong (? Ayser shuhaib於 2019年4月18日星期四 UTC+8下午1時10分04秒寫道: > > Are you sure about the directory? > I mean is it “ abcd.setting.hk” or “abcd.settings.hk” ? > > On Thu, 18 Apr 2019 at 06:00, ANi > wrote: > >> >> Hi, >> I divided

Re: Settings file for multiple environments?

2019-04-17 Thread Ayser shuhaib
Are you sure about the directory? I mean is it “ abcd.setting.hk” or “abcd.settings.hk” ? On Thu, 18 Apr 2019 at 06:00, ANi wrote: > > Hi, > I divided my settings into different files, but I think it's not working > on Heroku, here are my code: > > # This is abcd/setting/hk.py > from .base

Settings file for multiple environments?

2019-04-17 Thread ANi
Hi, I divided my settings into different files, but I think it's not working on Heroku, here are my code: # This is abcd/setting/hk.py from .base import * import dj_database_url DATABASES = { 'default': dj_database_url.config() } ALLOWED_HOSTS.append('abcdmyapp.herokuapps.com')