Skip to content
Snippets Groups Projects
Commit 3aeedf78 authored by David Schmitz's avatar David Schmitz
Browse files

make centos installation work again for new Django3.2.16

parent d38dbfad
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,12 @@ DATABASES = { ...@@ -73,6 +73,12 @@ DATABASES = {
#LOG_FILE_LOCATION = "/var/log/fod" #LOG_FILE_LOCATION = "/var/log/fod"
LOG_FILE_LOCATION = "/srv/flowspy/log/" LOG_FILE_LOCATION = "/srv/flowspy/log/"
LOGGING_FORMAT_DEFAULT = '%(asctime)s %(name)s %(levelname)s: %(message)s'
#LOGGING_FORMAT_DEFAULT = '%(processName)s[%(process)d] %(asctime)s %(name)s %(levelname)s: %(message)s'
# "error" | "warn" | "info" | "debug"
LOG_LEVEL = "info"
# A sample logging configuration. The only tangible logging # A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to # performed by this configuration is to send an email to
# the site admins on every HTTP 500 error when DEBUG=False. # the site admins on every HTTP 500 error when DEBUG=False.
...@@ -182,7 +188,11 @@ TEMPLATES = [ ...@@ -182,7 +188,11 @@ TEMPLATES = [
'context_processors': [ 'context_processors': [
"django.contrib.auth.context_processors.auth", "django.contrib.auth.context_processors.auth",
'django_settings_export.settings_export', 'django_settings_export.settings_export',
] 'django.contrib.messages.context_processors.messages'
],
'libraries': { # Adding this section should work around the issue.
'staticfiles' : 'django.templatetags.static',
}
}, },
}, },
] ]
...@@ -432,6 +442,7 @@ SHIB_ENTITLEMENT_DISPLAY_ADDINFO = "urn:oid:1.3.6.1.4.1.5923.1.1.1.7; the value ...@@ -432,6 +442,7 @@ SHIB_ENTITLEMENT_DISPLAY_ADDINFO = "urn:oid:1.3.6.1.4.1.5923.1.1.1.7; the value
SHIB_AUTH_ENTITLEMENT = 'urn:mace:example.com:pki:user' SHIB_AUTH_ENTITLEMENT = 'urn:mace:example.com:pki:user'
#SHIB_AUTH_ENTITLEMENT = '' # is also in settings_local.py so override it there #SHIB_AUTH_ENTITLEMENT = '' # is also in settings_local.py so override it there
#SHIB_USERNAME__OLD_TO_MIGRATE = ['HTTP_PERSISTENT_ID'] # in settings.py.dist # originally used for SHIB_USERNAME
SHIB_USERNAME = ['HTTP_EPPN'] # in settings.py.dist # originally used for SHIB_USERNAME SHIB_USERNAME = ['HTTP_EPPN'] # in settings.py.dist # originally used for SHIB_USERNAME
SHIB_USERNAME_DISPLAY_NAME = "eduPersonPrincipalName" SHIB_USERNAME_DISPLAY_NAME = "eduPersonPrincipalName"
SHIB_USERNAME_DISPLAY_ADDINFO = "urn:mace:dir:attribute-def:eduPersonPrincipalName or urn:oid:1.3.6.1.4.1.5923.1.1.1.6" SHIB_USERNAME_DISPLAY_ADDINFO = "urn:mace:dir:attribute-def:eduPersonPrincipalName or urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
...@@ -635,4 +646,10 @@ ENABLE_SETUP_VIEW = False ...@@ -635,4 +646,10 @@ ENABLE_SETUP_VIEW = False
############################################################################## ##############################################################################
############################################################################## ##############################################################################
#PROXY_CLASS="proxy_netconf_junos"
PROXY_CLASS="proxy_exabgp"
##############################################################################
##############################################################################
from flowspy.settings_local import * from flowspy.settings_local import *
...@@ -16,7 +16,8 @@ if cat /etc/centos-release | grep -q "release 7."; then ...@@ -16,7 +16,8 @@ if cat /etc/centos-release | grep -q "release 7."; then
# https://stackoverflow.com/questions/60826836/improperlyconfiguredsqlite-3-8-3-or-later-is-required-found-s-database # https://stackoverflow.com/questions/60826836/improperlyconfiguredsqlite-3-8-3-or-later-is-required-found-s-database
yum install -y make yum install -y make
cd ~ && curl https://www.sqlite.org/2020/sqlite-autoconf-3320100.tar.gz > sqlite-autoconf-3320100.tar.gz && tar xvfz sqlite-autoconf-3320100.tar.gz && cd sqlite-autoconf-3320100 && ./configure && make && make install #cd ~ && curl https://www.sqlite.org/2020/sqlite-autoconf-3320100.tar.gz > sqlite-autoconf-3320100.tar.gz && tar xvfz sqlite-autoconf-3320100.tar.gz && cd sqlite-autoconf-3320100 && ./configure && make && make install
cd ~ && curl https://www.sqlite.org/2023/sqlite-autoconf-3410200.tar.gz > sqlite-autoconf.tar.gz && tar xvfz sqlite-autoconftar.gz && cd sqlite-autoconf-3410200 && ./configure && make && make install
## ##
......
...@@ -9,7 +9,7 @@ djangorestframework==3.12.0 ...@@ -9,7 +9,7 @@ djangorestframework==3.12.0
django-tinymce django-tinymce
django-form-utils django-form-utils
django-settings-export django-settings-export
Django==2.2.28 Django==3.2.16
gevent gevent
greenlet greenlet
gunicorn gunicorn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment