from django.urls import path

from django_react_templatetags.tests.demosite import views


urlpatterns = [
    path(
        'static-react-view',
        views.StaticReactView.as_view(),
        name='static_react_view',
    ),
]

from django.conf.urls import url


from django_react_templatetags.tests.demosite import views


urlpatterns = [
    url(
        'static-react-view',
        views.StaticReactView.as_view(),
        name='static_react_view',
    ),
]

Use url instead of path (to keep django 1 compat)
Use url instead of path (to keep django 1 compat)

- from django.urls import path
+ from django.conf.urls import url
+ 
  
  from django_react_templatetags.tests.demosite import views
  
  
  urlpatterns = [
-     path(
+     url(
          'static-react-view',
          views.StaticReactView.as_view(),
          name='static_react_view',
      ),
  ]
  
Use url instead of path (to keep django 1 compat)
## Code Before:
from django.urls import path

from django_react_templatetags.tests.demosite import views


urlpatterns = [
    path(
        'static-react-view',
        views.StaticReactView.as_view(),
        name='static_react_view',
    ),
]

## Instruction:
Use url instead of path (to keep django 1 compat)
## Code After:
from django.conf.urls import url


from django_react_templatetags.tests.demosite import views


urlpatterns = [
    url(
        'static-react-view',
        views.StaticReactView.as_view(),
        name='static_react_view',
    ),
]
