1
0
Fork 0
Commit Graph

22 Commits (da58d39357475a71315bd7726f81107657a080bb)

Author SHA1 Message Date
Alfredos-Panagiotis Damkalis da58d39357 Update to Django 4
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-04-16 23:19:15 +03:00
Corey Shields 292f1978db Remove old unused auth0login app
Back in d153ece we switched to the upstream backend social_core.backends.auth0.Auth0OAuth2

this commit removes the custom app we had to use for Auth0

Signed-off-by: Corey Shields <cshields@gmail.com>
2021-05-14 20:40:03 -04:00
Corey Shields 5e03f7c759 Epic API (doc) changes for SatNOGS DB
I've decided to change things up in API schema and doc generation.

Work is not quite complete but its enough for testing in dev and feedback.

Major changes:
* Renaming of api.view classes to match ViewSet inheritance (minor annoyance)
* Introduce drf-spectacular for schema generation and doc UI via swagger-ui
* lots of doc changes for the API to provide a good experience with the above.

New schema generation should work seamlessly in gitlab ci, as well as via /api/schema dynamically.

The new swagger ui view is available via /api/schema/docs/

Signed-off-by: Corey Shields <cshields@gmail.com>
2021-01-09 20:44:19 -05:00
Corey Shields a1aafce76b Offer a dynamic API schema view
adds the /api-schema URL which will provide the current API schema in OpenAPI format, both in rendered and downloadable formats.

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-12-29 15:00:08 -05:00
deckbsd 60f2356c73 migrate url uses to path
Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2020-07-29 06:25:27 +00:00
deckbsd ef1c4313aa Remove python3 migration remnants
Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2020-05-27 20:54:39 +02:00
Vasilis Tsiligiannis 8710a2df3b Install and enable Django Debug Toolbar when in debug mode
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-10-07 23:35:42 +03:00
Alfredos-Panagiotis Damkalis 494351e2e7 Remove custom views of 404 and 500 errors
According to Django 1.11 documentation if there are 404.html and 500.html
pages in templates root directory then it loads them in case of 404 or
500 errors without any extra code needed. More details in:
https://docs.djangoproject.com/en/1.11/ref/views/#error-views

Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2019-10-03 11:39:30 +03:00
Corey Shields 2ec2fd2a4d pylint C0111 docstrings
phew, fixed all of the missing-docstring and found some other things along the way (for future changes)
2019-07-12 22:36:18 -04:00
Corey Shields b7ec119853 pylint C0103
Linting for Pylint C0103

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-12 12:41:21 +00:00
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
Corey Shields 704bc18e76 initial auth0 support for db 2018-11-18 12:55:13 -05:00
Nikos Roussos 800f00fc7f pep8 2016-05-06 20:19:02 +03:00
requires.io 5b0fe34c52 Dependencies update 2016-02-08 14:44:24 +02:00
Nikos Roussos 7b0e8cee7d [Fixes #43] Redesign homepage 2015-08-12 23:31:25 +03:00
Nikos Roussos d0f199f245 pep8 2015-07-17 20:59:23 +03:00
Nikos Roussos 5cae7503cb Add custom 404/500 pages 2015-07-17 20:21:35 +03:00
Nikos Roussos 2134f44b49 First iteration on suggestions forms 2015-04-25 19:47:22 +03:00
Nikos Roussos 6828eb315b Initial commit 2015-04-22 18:10:13 +03:00