Re: Creating urls

2018-09-19 Thread Mateusz
Your problem is caused by not properly structurizing your url files. An example (just for reference) is shown below: */myappointments/urls.py* # includes... urlpatterns = [ path('admin/', admin.site.urls), path('', include('clinic.urls'), namespace='clinic'), # for example.com/ where "s

Creating urls

2018-09-17 Thread Joel Mathew
I have a project named myappointments, which has two apps, clinic and appointments. As of now, I am using the following urls in clinic.urls: path('newclinic', views.newclinic, name="newclinic"), path('/', views.clinic_home, name="clinic_home"), path('/doctors', views.doctorlist, name="doctorlist")