Django Admin Site View issue

django-for-runners 0.12.0

run tests

~ / Django-ForRunners $ make test or: ~ / Django-ForRunners $ make tox

Grade:

To run all tests, you need:

  • Chromium Browser WebDriver e.g .:
  • Firefox browser WebDriver aka geckodriver

Install geckodriver e.g .:

~ $ cd / tmp / tmp $ wget https://github.com/mozilla/geckodriver/releases/download/v0.20.1/geckodriver-v0.20.1-linux64.tar.gz -O geckodriver.tar.gz / tmp $ sudo sh -c 'tar -x geckodriver -zf geckodriver.tar.gz -O> / usr / bin / geckodriver' / tmp $ sudo chmod + x / usr / bin / geckodriver / tmp $ rm geckodriver.tar.gz / tmp $ geckodriver --version geckodriver 0.20.1 ...

some notes

GPX storage

Currently we store the unchanged GPX data in a TextField.

static files

We collect some JavaScript files for easier startup. These files are:

Precision of coordinates

GPX files from Garmin (can) contain:

  • latitude with 29 decimal places
  • longitude with 28 decimal places
  • elevation with 19 decimal places

The route on OpenStreetMap does not look more detailed, with more than 5 decimal places.

See also: https://wiki.openstreetmap.org/wiki/Precision_of_coordinates

Django compatibility

django-for-runnersdjango versionpython
> = v0.11.02.2.x LTS3.6, 3.7, 3.8
> = v0.7.12.13.5, 3.6, 3.7
v0.5.x2.03.5, 3.6, 3.7

(See also combinations in .travis.yml and tox.ini)

History

  • compare v0.12.0 ... masterdev

  • 01/17/2021 - v0.12.0:

  • 07/04/2020 - v0.11.0:

    • refactor gpx import code
    • update tests
    • Use poetry and add Makefile
    • update code style
  • 08/09/2019 - v0.10.1:

    • Enhance “Event Participation” admin view: Add start date and costs in table
  • 06/26/2019 - v0.10.0:

    • NEW: GPX Admin action to print a small overview from one or a few tracks
    • Accept optional server bind address, e.g .:
  • 04/02/2019 - v0.9.0:

    • NEW: Update complete environment installation with:

    • Move the SQlite database to virtualenv root dir, e.g .:

    • NEW: save every gpx track to disk

    • NEW: Backup / export via cli:

    • NEW: export GPX data via

    • Create xdg-open desktop starter under linux here:

    • refactor the startup process:

      • auto loop the server process
      • open web browser on first start
      • enable autotask
    • rename to

  • 09/03/2018 - v0.8.1:

    • Fix “try-out” section in README, again; (
  • 09/03/2018 - v0.8.0:

    • NEW: shell script for easier boot / install, see above
  • 02.09.2018 - v0.7.1:

    • Update to Django 2.1
    • Bugfix tests
  • 09/02/2018 - v0.7.0:

    • Use dygraphs in GPX Track change admin view

    • Sync mouse over from Elevation / Headrate / Cadence dygraphs to leaflet open streep map

    • Fix “try-out” section in README (Thanks adsworth for reporting)

    • Add links from gpx tracks to other admin change view

    • Bug fixes

    • internals:

      • refactor stuff around track duration / length
      • move manipluation of list_display and list_filter contributed by adsworth
  • 07/19/2018 - v0.6.0:

    • NEW: event participation
    • NEW: costs of event participation (e.g .: entry fee for the competition, cost of a T-shirt etc.)
    • NEW: Display statistics of events / costs per user and total
  • 07/04/2018 - v0.5.0:

    • remove Django-CMS
    • update to Django v2.0
    • NOTE: The migrations are simply replaced! So you must delete your database, e.g .:
    • Add "net duration" field, for the officially measured time and use it for calculations if available.
    • Create django manage command to fill some base data:
    • speed up by deactivating some django debug toolbar panels
  • 06/26/2018 - v0.4.0:

    • combine track filters with statistical views
    • NEW: GPX info (See length, point count and Average distance in meters between the points)
    • NEW: Display GPX metadata
    • Add "creator" to every track and use it as a changelist filter
    • remove Streetmap image generated via geotiler
    • Speedup by using a cache for gpxpy instances
  • 06/23/2018 - v0.3.0:

    • Start adding statistics (See screenshot above)
    • add weather information from metaweather.com to every track
  • 06/21/2018 - v0.2.0:

    • Display elevations, heart_rates and cadence_values ​​if available
    • Add kilometer markers to OpenStreetMap
  • 06/15/2018 - v0.1.1:

  • 06/15/2018 - v0.1.0:

    • Render interactive OpenStreetMap track map with Leaflet JS
  • 06/12/2018 - v0.0.4:

    • Better events model
    • GPX error handling
    • more tests
    • Bugfix for Python 3.5 (Geotiler needs Python 3.6 or later)
  • 06/12/2018 - v0.0.3:

    • display min / average / max heart rate
    • use autotask to generate the MAP in the background
  • 05/31/2018 - v0.0.2:

    • generate SVG icon ’from GPX track
  • v0.0.1 - 05/30/2018

    • Just create a pre-alpha release to save the PyPi package name;)

Left

activity exporter

It's sometimes hard to find a working project for exporting activities. So here tools that i use currently:

alternatives (OpenSource only)

Online tools:

credits

The whole thing is based on many excellent projects. Especially the following:

donation