File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
- default_app_config = 'tests.testapp.apps.TestAppConfig'
Original file line number Diff line number Diff line change 1
1
from django import forms
2
- from django .conf . urls import include , url
2
+ from django .urls import include , path , re_path
3
3
from django .contrib import admin
4
4
from django .views .generic import FormView
5
5
from django .conf import settings
@@ -18,8 +18,8 @@ class EditorView(FormView):
18
18
19
19
20
20
urlpatterns = [
21
- url (r'^admin/' , admin .site .urls ),
22
- url ( r'^ trix/' , include ('trix.urls' )),
23
- url ( r'^$ ' , EditorView .as_view ()),
21
+ re_path (r'^admin/' , admin .site .urls ),
22
+ path ( ' trix/' , include ('trix.urls' )),
23
+ path ( ' ' , EditorView .as_view ()),
24
24
25
25
] + static (settings .MEDIA_URL , document_root = settings .MEDIA_ROOT )
Original file line number Diff line number Diff line change 1
- from django .conf . urls import include , url
1
+ from django .urls import path
2
2
from .views import UploadTrixAttachment
3
3
4
4
5
5
urlpatterns = [
6
- url ( r'^ attachment/$ ' , UploadTrixAttachment .as_view ()),
6
+ path ( ' attachment/' , UploadTrixAttachment .as_view ()),
7
7
]
You can’t perform that action at this time.
0 commit comments