summaryrefslogtreecommitdiffstats
path: root/appstore/urls.py
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2022-07-29 23:18:37 +0200
committerRobert Griebl <robert.griebl@qt.io>2023-08-04 12:59:01 +0000
commitb3665620377a06f7b7a012e2ae7b69d222fae435 (patch)
tree8a012e3ffd952197401f79a396e55e3850fee5ce /appstore/urls.py
parent7259d1a839a698e68bc4a7020a63d2aca79a5ec6 (diff)
Port to python 3 and django 4.0.6HEADdev
PLEASE NOTE: This project is not maintained anymore. It was ported to a Qt 6 cmake setup and a more modern Django and Python version to at least keep it usable for legacy projects. For non-production use-cases, please switch to the new appman-package-server available in the Qt Application Manager starting with version 6.7. Task-number: AUTOSUITE-1368 Change-Id: Idc4f2490a2a4399c03fce761250f4b5ac2612a45 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'appstore/urls.py')
-rw-r--r--appstore/urls.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/appstore/urls.py b/appstore/urls.py
index 1eb3d2c..667b899 100644
--- a/appstore/urls.py
+++ b/appstore/urls.py
@@ -30,26 +30,26 @@
##
#############################################################################
-from django.conf.urls import include, url
+from django.urls import include, re_path
from django.contrib import admin
from store import api as store_api
from appstore.settings import URL_PREFIX
base_urlpatterns = [
- url(r'^admin/', include(admin.site.urls)),
+ re_path(r'^admin/', admin.site.urls),
- url(r'^hello$', store_api.hello),
- url(r'^login$', store_api.login),
- url(r'^logout$', store_api.logout),
- url(r'^app/list$', store_api.appList),
- url(r'^app/icons/(.*)$', store_api.appIconNew),
- url(r'^app/icon', store_api.appIcon),
- url(r'^app/description', store_api.appDescription),
- url(r'^app/purchase', store_api.appPurchase),
- url(r'^app/download/(.*)$', store_api.appDownload),
- url(r'^category/list$', store_api.categoryList),
- url(r'^category/icon$', store_api.categoryIcon),
- url(r'^upload$', store_api.upload),
+ re_path(r'^hello$', store_api.hello),
+ re_path(r'^login$', store_api.login),
+ re_path(r'^logout$', store_api.logout),
+ re_path(r'^app/list$', store_api.appList),
+ re_path(r'^app/icon$', store_api.appIcon),
+ re_path(r'^app/icons/(.*)$', store_api.appIconNew),
+ re_path(r'^app/description', store_api.appDescription),
+ re_path(r'^app/purchase', store_api.appPurchase),
+ re_path(r'^app/download/(.*)$', store_api.appDownload),
+ re_path(r'^category/list$', store_api.categoryList),
+ re_path(r'^category/icon$', store_api.categoryIcon),
+ re_path(r'^upload$', store_api.upload),
]
@@ -58,6 +58,6 @@ if URL_PREFIX != '':
prefix = prefix + URL_PREFIX + '/'
urlpatterns = [
- url(prefix, include(base_urlpatterns)),
+ re_path(prefix, include(base_urlpatterns)),
]