make it slightly easier to install as new sites

This commit is contained in:
Your Name 2021-09-10 01:39:42 -04:00
parent 7a088d2a62
commit 921f8a29cf
2 changed files with 14 additions and 1 deletions

View file

@ -16,6 +16,8 @@ import psycopg2.extensions
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
@ -54,6 +56,7 @@ INSTALLED_APPS = [
'movies.apps.MoviesConfig',
'music.apps.MusicConfig',
'games.apps.GamesConfig',
# 'sync.apps.SyncConfig',
'easy_thumbnails',
]
@ -205,6 +208,7 @@ ALBUM_MEDIA_PATH_ROOT = 'album/'
DEFAULT_ALBUM_IMAGE = os.path.join(ALBUM_MEDIA_PATH_ROOT, 'default.svg')
GAME_MEDIA_PATH_ROOT = 'game/'
DEFAULT_GAME_IMAGE = os.path.join(GAME_MEDIA_PATH_ROOT, 'default.svg')
SYNC_FILE_PATH_ROOT = 'sync/'
# Timeout of requests to Mastodon, in seconds
MASTODON_TIMEOUT = 30
@ -217,7 +221,7 @@ STAR_SOLID = ':star_solid:'
STAR_HALF = ':star_half:'
STAR_EMPTY = ':star_empty:'
# Default password for each user. since assword is not used any way,
# Default password for each user. since password is not used any way,
# any string that is not empty is ok
DEFAULT_PASSWORD = 'ab7nsm8didusbaqPgq'

9
requirements.txt Normal file
View file

@ -0,0 +1,9 @@
dateparser
django
django-hstore
django-markdownx
easy-thumbnails
lxml
openpyxl
psycopg2
requests