Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed Mar 3, 2023
1 parent 2c595ce commit 92015dc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/backend/production_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False

DEFAULT_BULK_FOLDER = '/home/app/web/staticfiles/bulk'

ASYNC_GENERATION = True

Expand All @@ -45,6 +44,7 @@

# Production settings
STATIC_ROOT = BASE_DIR / "staticfiles"
STATIC_BULK_FOLDER = STATIC_ROOT / 'bulk'
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
CONN_MAX_AGE = 60 * 60
Expand Down
2 changes: 1 addition & 1 deletion backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

DEFAULT_BULK_FOLDER = './temp/bulk'
STATIC_BULK_FOLDER = Path('./temp/bulk')

ASYNC_GENERATION = True

Expand Down
2 changes: 1 addition & 1 deletion backend/spellbook/management/commands/export_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def add_arguments(self, parser):
'--file',
type=Path,
dest='file',
default=Path(settings.DEFAULT_BULK_FOLDER) / Path('variants.json')
default=settings.STATIC_BULK_FOLDER / 'variants.json'
)
parser.add_argument(
'--id',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "admin/change_form.html" %}
{% load static %}

{% block extrahead %}
{{ block.super }}
Expand Down

0 comments on commit 92015dc

Please sign in to comment.