mirror of
https://github.com/YunoHost-Apps/django-for-runners_ynh.git
synced 2024-09-03 18:26:16 +02:00
Merge pull request #25 from YunoHost-Apps/testing
Bugfix serving user media files
This commit is contained in:
commit
4f2217a149
5 changed files with 6 additions and 8 deletions
|
@ -33,7 +33,7 @@ This package for YunoHost used [django-yunohost-integration](https://github.com/
|
||||||
More screenshots are here: [jedie.github.io/tree/master/screenshots/django-for-runners](https://github.com/jedie/jedie.github.io/tree/master/screenshots/django-for-runners/README.creole)
|
More screenshots are here: [jedie.github.io/tree/master/screenshots/django-for-runners](https://github.com/jedie/jedie.github.io/tree/master/screenshots/django-for-runners/README.creole)
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 0.13.0~ynh1
|
**Shipped version:** 0.13.0~ynh2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ This package for YunoHost used [django-yunohost-integration](https://github.com/
|
||||||
More screenshots are here: [jedie.github.io/tree/master/screenshots/django-for-runners](https://github.com/jedie/jedie.github.io/tree/master/screenshots/django-for-runners/README.creole)
|
More screenshots are here: [jedie.github.io/tree/master/screenshots/django-for-runners](https://github.com/jedie/jedie.github.io/tree/master/screenshots/django-for-runners/README.creole)
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 0.13.0~ynh1
|
**Version incluse :** 0.13.0~ynh2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,7 @@ from django.conf.urls import static
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path
|
from django.urls import path
|
||||||
|
|
||||||
|
from for_runners.views.media_files import UserMediaView
|
||||||
# from django_yunohost_integration.views import request_media_debug_view
|
|
||||||
|
|
||||||
|
|
||||||
if settings.PATH_URL:
|
if settings.PATH_URL:
|
||||||
|
@ -12,10 +11,9 @@ if settings.PATH_URL:
|
||||||
# Prefix all urls with "PATH_URL":
|
# Prefix all urls with "PATH_URL":
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path(f'{settings.PATH_URL}/', admin.site.urls),
|
path(f'{settings.PATH_URL}/', admin.site.urls),
|
||||||
# path(f'{settings.PATH_URL}/debug/', request_media_debug_view),
|
path(f'{settings.PATH_URL}/media/<slug:user_name>/<path:path>', UserMediaView.as_view()),
|
||||||
|
|
||||||
# TODO: https://github.com/jedie/django-for-runners/issues/25
|
# TODO: https://github.com/jedie/django-for-runners/issues/25
|
||||||
# MEDIA_URL contains the "PATH_URL" already:
|
|
||||||
# path(settings.MEDIA_URL.lstrip('/'), include('django_tools.serve_media_app.urls')),
|
# path(settings.MEDIA_URL.lstrip('/'), include('django_tools.serve_media_app.urls')),
|
||||||
]
|
]
|
||||||
if settings.SERVE_FILES:
|
if settings.SERVE_FILES:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"description": {
|
"description": {
|
||||||
"en": "Store your GPX tracks of your running (or other sports activity)"
|
"en": "Store your GPX tracks of your running (or other sports activity)"
|
||||||
},
|
},
|
||||||
"version": "0.13.0~ynh1",
|
"version": "0.13.0~ynh2",
|
||||||
"url": "https://github.com/jedie/django-for-runners",
|
"url": "https://github.com/jedie/django-for-runners",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "for_runners_ynh"
|
name = "for_runners_ynh"
|
||||||
version = "0.13.0~ynh1"
|
version = "0.13.0~ynh2"
|
||||||
description = "Test for_runners_ynh via local_test.py"
|
description = "Test for_runners_ynh via local_test.py"
|
||||||
authors = ["JensDiemer <git@jensdiemer.de>"]
|
authors = ["JensDiemer <git@jensdiemer.de>"]
|
||||||
license = "GPL"
|
license = "GPL"
|
||||||
|
|
Loading…
Reference in a new issue