diff --git a/my_blog/settings.py b/my_blog/settings.py index c355c11..cbe1857 100644 --- a/my_blog/settings.py +++ b/my_blog/settings.py @@ -23,7 +23,7 @@ SECRET_KEY = 'c20s(vym*s_ne845ek_o5e$jm=x*pgq6=@-ry@6(=23mv(k2w=' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ['*'] @@ -54,7 +54,7 @@ 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', - # 'whitenoise.runserver_nostatic', # new! + 'whitenoise.runserver_nostatic', # new! 'django.contrib.staticfiles', ] @@ -70,7 +70,7 @@ MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', - # 'whitenoise.middleware.WhiteNoiseMiddleware', # new! + 'whitenoise.middleware.WhiteNoiseMiddleware', # new! 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', @@ -230,8 +230,8 @@ -STATIC_URL = '/static/' -STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')] +# STATIC_URL = '/static/' +# STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')] # """Deploy setting @@ -242,7 +242,7 @@ # """ -# STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # new -# STATIC_URL = '/static/' -# STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')] -# STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' \ No newline at end of file +STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # new +STATIC_URL = '/static/' +STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')] +STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 055684a..2972659 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,11 @@ asgiref==3.2.7 -Django==3.0.5 +beautifulsoup4==4.9.0 +bs4==0.0.1 +certifi==2020.4.5.1 +chardet==3.0.4 +defusedxml==0.6.0 +Django==2.2 +django-allauth==0.41.0 django-appconf==1.0.4 django-ckeditor==5.9.0 django-crispy-forms==1.9.0 @@ -10,14 +16,28 @@ django-notifications-hq==1.6.0 django-password-reset==2.0 django-simpleui==3.9.1 django-taggit==1.2.0 -gunicorn==20.0.4 +djangorestframework==3.11.0 +gunicorn==19.9.0 +idna==2.9 jsonfield==3.1.0 +lxml==4.5.0 Markdown==3.2.1 +numpy==1.18.3 +oauthlib==3.1.0 +pandas==1.0.3 pilkit==2.0 Pillow==7.1.1 Pygments==2.6.1 +python-dateutil==2.8.1 +python3-openid==3.1.0 pytz==2019.3 +requests==2.23.0 +requests-oauthlib==1.3.0 +simplejson==3.17.0 six==1.14.0 +soupsieve==2.0 sqlparse==0.3.1 swapper==1.1.2.post1 -whitenoise==5.0.1 +urllib3==1.25.9 +websocket-client==0.57.0 +whitenoise==3.3.1 diff --git a/runtime.txt b/runtime.txt index 724c203..c5d7ce3 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.8.2 +python-3.8.1 diff --git a/templates/header.html b/templates/header.html index 17cfd61..3deb67e 100644 --- a/templates/header.html +++ b/templates/header.html @@ -34,7 +34,7 @@ {% if user.is_authenticated %}