Resolve miscellaneous TODOS

Fixes #2
This commit is contained in:
Mouse Reeve
2020-02-10 22:10:05 -08:00
parent 55f5735b33
commit 0f1240ca1f
3 changed files with 9 additions and 9 deletions

View File

@ -4,7 +4,6 @@ import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
@ -14,8 +13,8 @@ SECRET_KEY = '7(2w1sedok=aznpq)ta1mc4i%4h=xx@hxwx*o57ctsuml0x%fr'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# TODO: this hsould be populated at runtime at least for debug mode
DOMAIN = 'a4522b16.ngrok.io'
# TODO: this should be populated at runtime at least for debug mode
DOMAIN = 'af064ab4.ngrok.io'
ALLOWED_HOSTS = ['*']
OL_URL = 'https://openlibrary.org'
@ -44,7 +43,6 @@ MIDDLEWARE = [
ROOT_URLCONF = 'fedireads.urls'
# TODO: how tf do I switch to jinja2
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
@ -120,5 +118,4 @@ USE_TZ = True
STATIC_URL = '/static/'
MEDIA_URL = '/images/'
# TODO: this super doesn't work when I do a join on BASE_DIR
MEDIA_ROOT = '/Users/mouse/Personal/fedireads/images/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'images/')