Compare commits
2 commits
33268ee859
...
e9bd449897
Author | SHA1 | Date | |
---|---|---|---|
|
e9bd449897 | ||
|
2752900394 |
2 changed files with 22 additions and 8 deletions
|
@ -20,12 +20,12 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
|
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY = 'f^%0urhe2)0q^*x^=pv$2cs%m3(xjtqw_x+uzm!io=as316=+x'
|
SECRET_KEY = os.urandom(512).hex()
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = ["127.0.0.1"]
|
ALLOWED_HOSTS = ["plch.xyz", "www.plch.xyz"]
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
@ -122,3 +122,17 @@ STATIC_URL = '/static/'
|
||||||
MEDIA_URL = "/media/"
|
MEDIA_URL = "/media/"
|
||||||
STATIC_ROOT = os.path.join(BASE_DIR, "static/")
|
STATIC_ROOT = os.path.join(BASE_DIR, "static/")
|
||||||
MEDIA_ROOT = os.path.join(BASE_DIR, "media/")
|
MEDIA_ROOT = os.path.join(BASE_DIR, "media/")
|
||||||
|
|
||||||
|
SECURE_HSTS_SECONDS = 3600
|
||||||
|
SECURE_CONTENT_TYPE_NOSNIFF = True
|
||||||
|
SECURE_BROWSER_XSS_FILTER = True
|
||||||
|
SECURE_SSL_REDIRECT = True
|
||||||
|
SESSION_COOKIE_SECURE = True
|
||||||
|
CSRF_COOKIE_SECURE = True
|
||||||
|
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
|
||||||
|
SECURE_HSTS_PRELOAD = True
|
||||||
|
|
||||||
|
X_FRAME_OPTIONS = "DENY"
|
||||||
|
CONN_MAX_AGE = 43200
|
||||||
|
|
||||||
|
FILE_UPLOAD_PERMISSIONS = 0o640
|
||||||
|
|
|
@ -14,11 +14,11 @@ Including another URLconf
|
||||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||||
"""
|
"""
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path
|
from django.conf.urls import url
|
||||||
from base_app.views import IndexView, LoremView, CVView, UkraineView
|
from base_app.views import IndexView
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', IndexView.as_view()),
|
url(r'^$', IndexView.as_view()),
|
||||||
path('curriculum-vitae/', CVView.as_view()),
|
url(r'^curriculum-vitae/$', CVView.as_view()),
|
||||||
path('ukraine/', UkraineView.as_view()),
|
url(r'^ukraine/$', UkraineView.as_view()),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue