Corey Shields
d4fb5189d1
future imports and remove unicode strings
...
adds from __future__ import unicode_literals, absolute_import, division, print_function to all files, removes unicode strings from RTD conf.py (none other were found in our codebase)
See also https://docs.djangoproject.com/en/1.11/topics/python3/#unicode-literals
fixes #290
tested locally in docker
2019-06-30 19:23:55 -04:00
Vasilis Tsiligiannis
4bb87e2e6a
isort: Do not skip install in order to correctly detect third-party imports
...
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 20:49:10 +03:00
Vasilis Tsiligiannis
655f98f39c
Use 'isort' to fix order of imports
...
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-27 14:08:11 +03:00
Vasilis Tsiligiannis
140180b6b3
Reformat code with 'yapf', check format using 'tox'
...
Use configration based on Django coding style guidelines
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-27 12:32:33 +03:00
Kevin Pak
4c6ee89cd7
Add db version to footer. Create function inside context_processors file to display version in template. In addition, added decoders version below db version. Signed-off-by: Kevin Pak <kedpak10@gmail.com>
2019-04-15 04:30:06 +00:00
Vasilis Tsiligiannis
453c7a77a6
Fix invalid template error due to missing application
...
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-03 00:05:20 +02:00
Corey Shields
f0e8de3cc8
Support influxdb ssl connections
...
Adds a setting, INFLUX_SSL which when set to True will use SSL in the connection to influxdb.
Signed-off-by: Corey Shields <cshields@gmail.com>
2018-12-29 20:03:58 -05:00
Corey Shields
2277dd5f97
fix logouturl
...
Auth0 logout does not clear the session. This fixes.
Signed-off-by: Corey Shields <cshields@gmail.com>
2018-12-15 16:10:17 +00:00
Corey Shields
04b8f815c7
case LOGIN_URL for AUTH0
...
Signed-off-by: Corey Shields <cshields@gmail.com>
The auth0 change forces an auth0 LOGIN_URL. This fixes that with an if statement
See also https://gitlab.com/librespacefoundation/satnogs/satnogs-db/issues/248
2018-12-15 09:33:20 -05:00
Vasilis Tsiligiannis
7006e2add4
Support configuration of mailing options via variables
...
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-12-11 19:49:05 +02:00
Vasilis Tsiligiannis
017fb6f2f9
Cast Sentry enable switch to bool
...
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-12-11 19:48:51 +02:00
Pierros Papadeas
2a90bad4b2
Add sentry-sdk for logging
2018-12-11 17:21:19 +02:00
Vasilis Tsiligiannis
c99ac79487
Allow configuration of static and media root directories via environment variables
...
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-11-22 21:36:21 +02:00
Vasilis Tsiligiannis
96fd370157
Clean up settings and 'env-dist'
...
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-11-21 13:49:16 +02:00
Corey Shields
704bc18e76
initial auth0 support for db
2018-11-18 12:55:13 -05:00
Vasilis Tsiligiannis
a138bc7d15
Fix relative paths of templates and static files directories
...
This makes static files and templates source paths relative to the
application instead of current working directory.
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-11-09 19:41:12 +02:00
Corey Shields
8527564089
kaitai decoding and influxdb support
...
Introduces the following:
- decoding of DemodData through decoders that are compiled from kaitai structs and stored in base/decoders/*.py
- storage of the decoded data will either be in the payload_decoded field (default) or into influxdb if USE_INFLUX=True and the proper settings are met
- A scheduled task is set */15 to look for the last 4 hours of submitted frames for anything not decoded, and then decodes it. (we will want to tweak these numbers as we get a good feel for any race conditions that may occur)
- 2 new commands in the admin console, one that will reset all decoded data for a satellite, and another that will trigger decoding of all frames in the db for a satellite. These could be useful when making fixes or improvements to a decoder, or when a new decoder is initially added to the db.
2018-08-18 20:53:21 -04:00
Corey Shields
4a3eaf90ee
remove opbeat from db
...
opbeat is no longer in service, so our attempts to send data to them just clutters our logs with failures.
See also librespacefoundation/ops/org/#2
2018-08-03 16:38:51 -04:00
Nikos Roussos
6fa7dc9e00
Minor simplifications on docker and opbeat
2018-03-24 15:36:52 +02:00
Nikos Roussos
37598fc74d
Switch from dotenv to decouple
2018-01-06 13:25:23 +02:00
Nikos Roussos
e08a3d193c
Update requirements
...
* Add Compressor settings
* Fix deprecated filters backend
2017-11-17 15:07:57 +02:00
Fabian P. Schmidt
2094426f8f
Remove unused mapbox_map_id
2017-11-13 18:07:14 +02:00
Fabian P. Schmidt
861782ce35
Add mapbox-gl.js
2017-11-13 18:07:14 +02:00
Nikos Roussos
3770791865
Enable template caching
2017-11-13 12:30:39 +02:00
Nikos Roussos
d50b4f7379
Simplify csv structure
...
* Remove observer from csv
* Use project celery app
* Disable Celery Eager
2017-05-29 22:17:21 +03:00
Nikos Roussos
48fe087c4c
Add period on export frames
...
* Add a new panel for telemetry frames
2017-05-28 22:23:17 +03:00
Nikos Roussos
8e8e7ae02f
Temporarily allow unsafe-eval for backbone
2017-05-14 15:29:48 +03:00
Nikos Roussos
ec10da7533
Add unipath for handling settings paths
2017-05-10 12:55:43 +03:00
Nikos Roussos
05d2defafe
Simplify settings
2017-05-08 18:22:20 +03:00