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.

13 lines
416 B

from django.contrib import admin
from django.urls import path, re_path
from django.views.static import serve
from form_demo import views
from django_demo import settings
urlpatterns = [
path('userinfo/', views.userinfo_form),
path('uploadimg/', views.img_file_form),
path('userinfomodel/', views.userinfo_model_form),
re_path(r'media/(?P<path>.*)', serve, {'document_root': settings.MEDIA_ROOT}),
]