Compare commits
No commits in common. "e9bd44989749fc36ddec9a1e6facf21bb068c53b" and "33268ee85928a051149e16b21900d204e336fd44" have entirely different histories.
e9bd449897
...
33268ee859
2 changed files with 8 additions and 22 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/
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = os.urandom(512).hex()
|
||||
SECRET_KEY = 'f^%0urhe2)0q^*x^=pv$2cs%m3(xjtqw_x+uzm!io=as316=+x'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = False
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ["plch.xyz", "www.plch.xyz"]
|
||||
ALLOWED_HOSTS = ["127.0.0.1"]
|
||||
|
||||
|
||||
# Application definition
|
||||
|
@ -122,17 +122,3 @@ STATIC_URL = '/static/'
|
|||
MEDIA_URL = "/media/"
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, "static/")
|
||||
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'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.conf.urls import url
|
||||
from base_app.views import IndexView
|
||||
from django.urls import path
|
||||
from base_app.views import IndexView, LoremView, CVView, UkraineView
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', IndexView.as_view()),
|
||||
url(r'^curriculum-vitae/$', CVView.as_view()),
|
||||
url(r'^ukraine/$', UkraineView.as_view()),
|
||||
path('', IndexView.as_view()),
|
||||
path('curriculum-vitae/', CVView.as_view()),
|
||||
path('ukraine/', UkraineView.as_view()),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue