👌 Code review changes

commented out mysql logic and refine GUIDE.md
This commit is contained in:
Thomas Letsch Groch 2020-06-02 20:34:02 -03:00
parent 1a0dcf7579
commit f7ecb88659
No known key found for this signature in database
GPG Key ID: B95BD2A35F4D586F
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@
+ [Cloudflare](#cloudflare)
+ [Nginx](#nginx)
+ [Troubleshooting](#troubleshooting)
+ [Quick Deploy](#quick-deploy)
+ [Quick Deploy to Heroku](#quick-deploy-to-heroku)
---
## Staying Updated
@ -188,6 +188,6 @@ Here are solutions for some common issues. If your situation isn't described her
* The problem is likely that to Shynet, `localhost` points to the local network in the container itself, not on the host machine. Try adding the `--network='host'` option when you run Docker.
## Quick Deploy
## Quick Deploy to Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/milesmcc/shynet/tree/master&env[SHYNET_HOST]=shynet-demo.herokuapp.com)

View File

@ -134,9 +134,9 @@ if 'DATABASE_URL' in os.environ:
})
if url.scheme == 'postgres':
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
if url.scheme == 'mysql':
DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
# DEADCODE: mysql not supported for now
# if url.scheme == 'mysql':
# DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
# Password validation