Projects
asm:eagle
python3-django-eagle
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 44
View file
python-django-eagle.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Fri Sep 22 13:07:51 UTC 2023 - Matwey V. Kornilov <matwey@sai.msu.ru> + +- Version 2.1.44 + +------------------------------------------------------------------- Mon Aug 28 12:54:05 UTC 2023 - Matwey V. Kornilov <matwey@sai.msu.ru> - Version 2.1.43
View file
python-django-eagle.spec
Changed
@@ -19,7 +19,7 @@ %define skip_python2 1 %{?!primary_python:%define primary_python python3} Name: python-django-eagle -Version: 2.1.43 +Version: 2.1.44 Release: 0 Summary: A Django application for serving eagle.sai.msu.ru License: BSD-2-Clause @@ -33,6 +33,8 @@ BuildRequires: %{python_module django-collectd-rest >= 0.1.9} BuildRequires: %{python_module django-eremaea2 < 2.1} BuildRequires: %{python_module django-webpack-loader >= 1.0.0} +BuildRequires: %{python_module dynaconf} +BuildRequires: %{python_module ruamel.yaml} BuildRequires: nginx BuildRequires: systemd %if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" @@ -42,6 +44,8 @@ Requires: python-django-collectd-rest >= 0.1.9 Requires: python-django-eremaea2 < 2.1 Requires: python-django-webpack-loader >= 1.0.0 +Requires: python-dynaconf +Requires: python-ruamel.yaml BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages @@ -71,7 +75,7 @@ %install %python_install STATIC_ROOT=%{buildroot}/srv/www/django-eagle/static python3 manage.py collectstatic --noinput -install -D -m 0644 local_settings.py %{buildroot}%{_sysconfdir}/django-eagle/local_settings.py +install -D -m 0644 settings.yaml %{buildroot}%{_sysconfdir}/django-eagle/settings.yaml install -D -m 0644 nginx_vhost.conf %{buildroot}%{_sysconfdir}/nginx/vhosts.d/django-eagle.conf install -D -m 0644 django-eagle.socket %{buildroot}%{_unitdir}/django-eagle.socket install -D -m 0644 django-eagle.service %{buildroot}%{_unitdir}/django-eagle.service @@ -103,7 +107,7 @@ %files -n django-eagle %defattr(-,root,root,-) %dir %{_sysconfdir}/django-eagle -%attr(0600,django_eagle,django_eagle) %config %{_sysconfdir}/django-eagle/local_settings.py +%attr(0600,django_eagle,django_eagle) %config %{_sysconfdir}/django-eagle/settings.yaml %dir %{_sysconfdir}/nginx/vhosts.d %config %{_sysconfdir}/nginx/vhosts.d/django-eagle.conf %{_unitdir}/django-eagle.socket
View file
django-eagle-2.1.43.tar.gz/local_settings.py
Deleted
@@ -1,19 +0,0 @@ -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.postgresql_psycopg2', - 'NAME': 'mydatabase', - 'USER': 'mydatabaseuser', - 'PASSWORD': 'mypassword', - 'HOST': '127.0.0.1', - 'PORT': '5432', - } -} -CACHES = { - 'default': { - 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', - 'LOCATION': '/var/run/memcached/memcached.sock', - } -} -ALLOWED_HOSTS = "eagle.sai.msu.ru" - -SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
View file
django-eagle-2.1.43.tar.gz/MANIFEST.in -> django-eagle-2.1.44.tar.gz/MANIFEST.in
Changed
@@ -1,5 +1,5 @@ include manage.py -include local_settings.py +include settings.yaml include nginx_vhost.conf include nginx_influxdb_params include lighttpd_vhost.conf
View file
django-eagle-2.1.43.tar.gz/PKG-INFO -> django-eagle-2.1.44.tar.gz/PKG-INFO
Changed
@@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: django-eagle -Version: 2.1.43 +Version: 2.1.44 Summary: A Django application for serving eagle.sai.msu.ru Home-page: http://curl.sai.msu.ru/hg/home/matwey/django-eagle Author: Matwey V. Kornilov
View file
django-eagle-2.1.43.tar.gz/django-eagle.service -> django-eagle-2.1.44.tar.gz/django-eagle.service
Changed
@@ -4,10 +4,8 @@ Requires=django-eagle.socket Service -Environment="DJANGO_SETTINGS_MODULE=django_eagle.settings" -Environment="MEDIA_ROOT=/srv/www/django-eagle/media" -Environment="PRODUCTION=yes" -Environment="PYTHONPATH=/etc/django-eagle" +Environment="DJANGO_EAGLE_DEBUG=0" +Environment="DJANGO_EAGLE_MEDIA_ROOT=/srv/www/django-eagle/media" ExecStartPre=/usr/bin/django-admin migrate ExecStart=/usr/sbin/uwsgi --plugin=python3 --module=django_eagle.wsgi:application --disable-logging --log-5xx --protocol=uwsgi --workers 2 Restart=always
View file
django-eagle-2.1.43.tar.gz/django_eagle.egg-info/PKG-INFO -> django-eagle-2.1.44.tar.gz/django_eagle.egg-info/PKG-INFO
Changed
@@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: django-eagle -Version: 2.1.43 +Version: 2.1.44 Summary: A Django application for serving eagle.sai.msu.ru Home-page: http://curl.sai.msu.ru/hg/home/matwey/django-eagle Author: Matwey V. Kornilov
View file
django-eagle-2.1.43.tar.gz/django_eagle.egg-info/SOURCES.txt -> django-eagle-2.1.44.tar.gz/django_eagle.egg-info/SOURCES.txt
Changed
@@ -2,12 +2,12 @@ django-eagle.service django-eagle.socket lighttpd_vhost.conf -local_settings.py manage.py nginx_influxdb_params nginx_vhost.conf package-lock.json package.json +settings.yaml setup.py webpack.config.js assets/css/influxdb_bb.scss
View file
django-eagle-2.1.43.tar.gz/django_eagle/settings.py -> django-eagle-2.1.44.tar.gz/django_eagle/settings.py
Changed
@@ -19,15 +19,12 @@ # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = "PRODUCTION" not in os.environ +DEBUG = True # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 't_-s%=h6_&s0c@(fqxiw@15-dt*#*qj5_%lv@u@s9#-#3-lf7g' -if not DEBUG: - SECRET_KEY = '' -SECRET_KEY = os.getenv("SECRET_KEY", default=SECRET_KEY) +SECRET_KEY = "Debug-Secret" -ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", default="").split(",") +ALLOWED_HOSTS = "*" # Application definition @@ -137,11 +134,21 @@ # Trust X-Forwarded-Proto # https://docs.djangoproject.com/en/1.9/ref/settings/#secure-proxy-ssl-header + SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') # Default primary key field type # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field + DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' -if not DEBUG: - from local_settings import * + +# HERE STARTS DYNACONF EXTENSION LOAD (Keep at the very bottom of settings.py) +# Read more at https://www.dynaconf.com/django/ +import dynaconf # noqa +settings = dynaconf.DjangoDynaconf(__name__, + environments=False, + ENVVAR_PREFIX_FOR_DYNACONF='DJANGO_EAGLE', + SETTINGS_FILE_FOR_DYNACONF='/etc/django-eagle/settings.yaml', + ) # noqa +# HERE ENDS DYNACONF EXTENSION LOAD (No more code below this line)
View file
django-eagle-2.1.43.tar.gz/package.json -> django-eagle-2.1.44.tar.gz/package.json
Changed
@@ -1,6 +1,6 @@ { "name": "django-eagle", - "version": "2.1.43", + "version": "2.1.44", "description": "", "private": true, "main": "index.js",
View file
django-eagle-2.1.44.tar.gz/settings.yaml
Added
@@ -0,0 +1,16 @@ +DATABASES: + default: + ENGINE: django.db.backends.postgresql_psycopg2 + NAME: mydatabase + USER: mydatabaseuser + PASSWORD: mypassword + HOST: 127.0.0.1 + PORT: 5432 + +CACHES: + default: + BACKEND: django.core.cache.backends.memcached.PyLibMCCache + LOCATION: /var/run/memcached/memcached.sock + +ALLOWED_HOSTS: + - eagle.sai.msu.ru
View file
django-eagle-2.1.43.tar.gz/setup.py -> django-eagle-2.1.44.tar.gz/setup.py
Changed
@@ -7,7 +7,7 @@ setup( name='django-eagle', - version='2.1.43', + version='2.1.44', packages='django_eagle', include_package_data=True, description='A Django application for serving eagle.sai.msu.ru',
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.