Solutions for MEIM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

urls.py 444B

1234567891011
  1. from . import views
  2. from django.urls import path, re_path
  3. urlpatterns = [
  4. # use re_path for regex (.*) - this regex accepts anything - see https://docs.python.org/3/library/re.html for more
  5. path('', views.home, name='index'),
  6. re_path('delete/(?P<value>\d+)/$', views.delete, name='delete'),
  7. re_path('(?P<value>.*)/$', views.home, name='textausgabe'),
  8. path('new', views.new, name='new'),
  9. # only accept numbers ^[0-9]*$
  10. ]