From 53c962351e8c02ef870a910db46db450c392ad22 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sat, 12 Jun 2021 10:52:38 +0200 Subject: [PATCH] update env to new debian based TC --- requirements.txt | 172 +++++++++++++++++++++++++++++++++++++++++++++++ settings.py | 22 +++--- wsgi.py | 2 +- 3 files changed, 184 insertions(+), 12 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ce53bcf --- /dev/null +++ b/requirements.txt @@ -0,0 +1,172 @@ +amqp==1.0.13 +amqplib==1.0.2 +anyjson==0.3.1 +arabic-reshaper==2.1.1 +asv==0.2 +Babel==2.1.1 +backports.shutil-get-terminal-size==1.0.0 +backports.ssl-match-hostname==3.5.0.1 +beautifulsoup4==4.6.0 +bigbluebutton-api-python==0.0.9 +bleach==3.3.0 +bs4==0.0.1 +cached-property==1.3.0 +celery==2.5.3 +certifi==14.5.14 +chardet==2.1.1 +cl==0.0.3 +configobj==4.7.2 +configparser==4.0.2 +crocodoc==0.1.1 +debtcollector==1.22.0 +decorator==4.0.10 +Django==1.4.19 +django-bootstrap-pagination==1.5.1 +django-bootstrap3==6.1.0 +django-cacheops==2.1.1 +django-celery==2.5.5 +django-debug-toolbar==1.0.1 +django-email-extras==0.1.13 +django-extensions==1.2.1 +django-extra-views==0.7.0 +django-forms-builder==0.8.5 +django-google-tools==1.0.0 +django-jqchat==0.2 +django-json-rpc==0.6.1 +django-linguo==1.3.3 +django-longerusernameandemail==0.5.6 +django-markup-mixin==0.1.0 +django-model-utils==2.3.1 +django-mptt==0.5.2 +django-notes==0.2.2 +django-nvd3==0.8.2 +django-pagination==1.0.7 +django-picklefield==0.2.1 +django-quiz-app==0.5.1 +django-redis-cache==0.13.0 +django-registration==1.0 +django-simple-captcha==0.4.6 +django-suit==0.2.12 +django-timezones==0.2 +django-tinymce==1.5.4 +django-user-agents==0.3.0 +docopt==0.6.2 +docutils==0.8.1 +enum34==1.1.6 +feedparser==5.1.3 +filebrowser-safe==0.2.28 +fpconst==0.7.2 +funcsigs==0.4 +functools32==3.2.3.post2 +funcy==1.2 +future==0.18.2 +gdata==2.0.18 +h5py==2.10.0 +html5lib==1.1 +httplib2==0.8 +ipaddress==1.0.17 +ipython==5.1.0 +ipython-genutils==0.1.0 +iso8601==0.1.11 +Jinja2==2.7.2 +jsonpatch==1.12 +jsonpointer==1.10 +jsonschema==2.5.1 +jxmlease==1.0.3 +keyring==3.8 +keystoneauth1==2.1.0 +kombu==2.5.16 +lazr.uri==1.0.5 +lockfile==0.8 +logilab-astng==0.24.3 +logilab-common==1.4.4 +longerusername==0.4 +mailer==0.7 +Mako==0.7.0 +Markdown==2.1.1 +MarkupSafe==0.15 +mock==1.0.1 +monotonic==0.5 +msgpack-python==0.4.6 +mutagen==1.20 +mysqlclient==1.4.6 +NavAdd==0.1.1 +netaddr==0.7.18 +netifaces==0.10.4 +numpy==1.7.0 +oauth==1.0.1 +oauth2==1.5.211 +oauthlib==0.6.0 +oslo.config==3.2.0 +oslo.i18n==3.1.0 +oslo.serialization==2.2.0 +oslo.utils==3.3.0 +packaging==20.9 +paramiko==1.10.1 +pathlib2==2.1.0 +pbr==1.8.1 +pexpect==4.2.1 +pickleshare==0.7.4 +Pillow==2.5.0 +prettytable==0.7.2 +prompt-toolkit==1.0.7 +psutil==5.8.0 +ptyprocess==0.7.0 +pycosat==0.6.1 +pycrypto==2.6 +pydot==1.0.28 +pygit==0.1 +Pygments==2.1.3 +pylint==0.25.1 +pymemcache==3.4.1 +pyparsing==2.0.2 +pyPdf==1.13 +PyPDF2==1.26.0 +python-bidi==0.4.2 +python-dateutil==1.5 +python-ebml==0.2.1 +python-gnupg==0.4.7 +python-keystoneclient==2.0.0 +python-nvd3==0.13.7 +python-openid==2.2.5 +python-slugify==0.0.9 +pytz==2013.9 +pyxdg==0.19 +PyYAML==3.12 +pyzmq==13.1.0 +redis==2.10.3 +reportlab==3.3.0 +requests==2.11.1 +requests-oauthlib==0.3.3 +scipy==0.10.1 +simplegeneric==0.8.1 +simplejson==2.5.2 +six==1.10.0 +sorl-thumbnail==12.3 +South==0.8.2 +Sphinx==1.1.3 +sphinx-me==0.2.1 +sqlparse==0.1.10 +stevedore==1.32.0 +texttable==0.8.7 +TimeSide==0.5.3 +traitlets==4.3.1 +ua-parser==0.3.6 +Unidecode==0.4.18 +unittest2==0.5.1 +urllib3==1.7.1 +user-agents==0.3.2 +uwsgitop==0.10 +vatnumber==1.1 +wadllib==1.3.4 +warlock==1.2.0 +wcwidth==0.1.7 +webencodings==0.5.1 +websocket-client==0.40.0 +Werkzeug==0.9.4 +wrapt==1.10.6 +xhtml2pdf==0.2.5 +xlrd==0.6.1 +xlwt==0.7.5 +zipstream==1.0.2 +zope.interface==3.6.1 diff --git a/settings.py b/settings.py index 8055fd7..3d53dee 100644 --- a/settings.py +++ b/settings.py @@ -61,7 +61,7 @@ MEDIA_ROOT = '/home/telecaster/archives/' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" -MEDIA_URL = 'http://192.168.1.65:8040/' +MEDIA_URL = '/media/' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files @@ -92,12 +92,12 @@ STATICFILES_FINDERS = ( SECRET_KEY = 'a8l7%06wr2k+3=%#*#@#rvop2mmzko)44%7k(zx%lls^ihm9^5' # List of callables that know how to import templates from various sources. -#TEMPLATE_LOADERS = ( -# ('django.template.loaders.cached.Loader', ( -# 'django.template.loaders.filesystem.Loader', -# 'django.template.loaders.app_directories.Loader', -# )), -#) +TEMPLATE_LOADERS = ( + ('django.template.loaders.cached.Loader', ( + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', + )), +) MIDDLEWARE_CLASSES = ( @@ -112,12 +112,12 @@ MIDDLEWARE_CLASSES = ( ROOT_URLCONF = 'urls' -TEMPLATE_DIRS = ( +#TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. - '/usr/local/lib/telecaster/teleforma/teleforma/templates' -) +# '/srv/telecaster/teleforma/teleforma/templates' +#) INSTALLED_APPS = ( 'django.contrib.auth', @@ -127,10 +127,10 @@ INSTALLED_APPS = ( 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', + 'teleforma', 'telemeta', 'jsonrpc', 'south', - 'teleforma', #'teleforma.exam', 'sorl.thumbnail', 'django_extensions', diff --git a/wsgi.py b/wsgi.py index 3ff93f9..c661f09 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,7 +1,7 @@ import os import sys -sys.path.append('/usr/local/lib/telecaster/instance') +#sys.path.append('/usr/local/lib/telecaster/instance') #sys.path.append('/usr/local/lib/telecaster/instance/teleforma') os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") -- 2.39.5