config and readme
This commit is contained in:
parent
928cc4489d
commit
6bc184ed3e
13
README.md
Normal file
13
README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Sprint
|
||||
|
||||
## Build
|
||||
|
||||
```
|
||||
docker build -t sprint .
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
```
|
||||
docker-compose up
|
||||
```
|
@ -11,11 +11,12 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
|
||||
"""
|
||||
|
||||
import os
|
||||
from config import *
|
||||
|
||||
|
||||
# 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/3.0/howto/deployment/checklist/
|
||||
|
||||
@ -29,10 +30,8 @@ DEBUG = not DEPLOY
|
||||
|
||||
SECURE_SSL_REDIRECT = DEPLOY
|
||||
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
|
||||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
@ -77,7 +76,6 @@ TEMPLATES = [
|
||||
|
||||
WSGI_APPLICATION = "Sprint.wsgi.application"
|
||||
|
||||
|
||||
# Database
|
||||
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
|
||||
|
||||
@ -92,7 +90,6 @@ DATABASES = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# Password validation
|
||||
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
|
||||
|
||||
@ -111,7 +108,6 @@ AUTH_PASSWORD_VALIDATORS = [
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
# Internationalization
|
||||
# https://docs.djangoproject.com/en/3.0/topics/i18n/
|
||||
|
||||
@ -129,7 +125,6 @@ USE_L10N = True
|
||||
|
||||
USE_TZ = True
|
||||
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/3.0/howto/static-files/
|
||||
|
||||
@ -141,17 +136,13 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "media")
|
||||
DATA_ROOT = os.path.join(BASE_DIR, "data")
|
||||
SOLUTIONS_ROOT = os.path.join(DATA_ROOT, "solutions")
|
||||
|
||||
SOLUTIONS_ROOT_EXTERNAL = "/Users/egormatveev/Sprint/data/solutions"
|
||||
|
||||
RABBIT_HOST = "rabbitmq"
|
||||
RABBIT_PORT = 5672
|
||||
|
||||
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, "Main/static"),
|
||||
]
|
||||
|
||||
|
||||
# Authentication backends
|
||||
AUTHENTICATION_BACKENDS = ("django.contrib.auth.backends.ModelBackend",)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user