Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Commit

Permalink
Add dist config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniak274 committed Nov 9, 2019
1 parent 309c49d commit 94f29b4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ebiznes/settings/dist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from .base import *

DEBUG = False

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

ALLOWED_HOSTS = [
'kaniak274.service-rent.pl',
]

STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static', 'local')
]

WEBPACK_MANIFEST_FILE = os.path.join(BASE_DIR, '../manifest-dist.json')
21 changes: 21 additions & 0 deletions manage.dist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys


def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ebiznes.settings.dist')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)


if __name__ == '__main__':
main()

0 comments on commit 94f29b4

Please sign in to comment.