Re: Deploying a static website

2019-07-04 Thread Dave Edwards
If you want a simple way that manages all the deployment then use https://www.zappa.io/ Be warned- the IAM permissions for storage can be a pain (as with using most of AWS)! On Thu, 4 Jul 2019, 07:15 Nick Sarbicki, wrote: > The best way to deploy a static website is certainly on a bucket like

Re: ValueError at /admin/

2019-06-16 Thread Dave Edwards
What's in your urls.py at the project level? Do you have a copy of the urls.py that sit within the deleted app folder? On Sun, 16 Jun 2019, 09:09 anchal agarwal, wrote: > I recently deleted one of my app from my website directory. For deleting > app I removed that app name from settings.py also

Re: Django App - Database connection

2019-06-14 Thread Dave Edwards
These are the settings to use in settings.py: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'DB-NAME', 'USER': 'USER', 'PASSWORD':'PASSWORD', 'HOST':'HOST', 'PORT': 'PORT', 'OPTIONS': {'charset': 'utf8'} } } *Dave Edwards* Email >

Re: Django App - Database connection

2019-06-14 Thread Dave Edwards
Apologies that was from when I used MySQL, please use the following for postgres: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'HOST':'HOST', 'PORT':'PORT', 'USER':'USERNAME', 'PASSWORD':'PASSWORD', 'NAME': 'DATABASE NAME', } } *Dave Edwards