from django.conf.urls import url

from djrichtextfield.views import InitView

urlpatterns = [
    url('^init.js$', InitView.as_view(), name='djrichtextfield_init')
]

from django.urls import path

from djrichtextfield.views import InitView

urlpatterns = [
    path('init.js', InitView.as_view(), name='djrichtextfield_init')
]

Use path instead of soon to be deprecated url
Use path instead of soon to be deprecated url

- from django.conf.urls import url
+ from django.urls import path
  
  from djrichtextfield.views import InitView
  
  urlpatterns = [
-     url('^init.js$', InitView.as_view(), name='djrichtextfield_init')
+     path('init.js', InitView.as_view(), name='djrichtextfield_init')
  ]
  
Use path instead of soon to be deprecated url
## Code Before:
from django.conf.urls import url

from djrichtextfield.views import InitView

urlpatterns = [
    url('^init.js$', InitView.as_view(), name='djrichtextfield_init')
]

## Instruction:
Use path instead of soon to be deprecated url
## Code After:
from django.urls import path

from djrichtextfield.views import InitView

urlpatterns = [
    path('init.js', InitView.as_view(), name='djrichtextfield_init')
]
