Skip to content

Commit

Permalink
[WIP] Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cmvanb committed Jun 24, 2024
1 parent 9a854b8 commit 9e33ed6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import os
from pathlib import Path

basedir = os.path.abspath(os.path.dirname(__file__))


class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') \
or 'dev'

DATABASE_URI = os.environ.get('DATABASE_URI') \
or Path(basedir) / 'instance/cookbook.sqlite'

STATIC_URL = os.environ.get('STATIC_URL') \
or Path(basedir) / 'static'

UPLOAD_FOLDER = os.environ.get('UPLOAD_FOLDER') \
or Path(STATIC_URL) / 'user_images'

MAX_CONTENT_LENGTH = 2 * 1000 * 1000
Empty file added cookbook/__init__.py
Empty file.

0 comments on commit 9e33ed6

Please sign in to comment.