I am getting this error
Request Method: GET Using the URLconf defined in Webwork.urls, Django tried these URL patterns, in this order:
admin/ ^ ^department/$ ^ ^department/([0-9]+)$ ^ ^employee/$ ^ ^employee/([0-9]+)$
The empty path didn’t match any of these.
here is my code:
from django.contrib import admin
from django.urls import path
from django.conf.urls import url,include
urlpatterns = [
path('admin/', admin.site.urls),
url(r'^',include('EmpApp.urls'))
]
and
from django.conf.urls import url
from EmpApp import views
urlpatterns=[
url(r'^department/$',views.departmentApi),
url(r'^department/([0-9]+)$',views.departmentApi),
url(r'^employee/$',views.employeeApi),
url(r'^employee/([0-9]+)$',views.employeeApi),
]
Can anyone please help me solve this error?