Coverage for blogModel/urls.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.5.0, created at 2025-09-13 15:29 -0300

1""" 

2URL configuration for projeto project. 

3 

4The `urlpatterns` list routes URLs to views. For more information please see: 

5 https://docs.djangoproject.com/en/4.2/topics/http/urls/ 

6Examples: 

7Function views 

8 1. Add an import: from my_app import views 

9 2. Add a URL to urlpatterns: path('', views.home, name='home') 

10Class-based views 

11 1. Add an import: from other_app.views import Home 

12 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 

13Including another URLconf 

14 1. Import the include() function: from django.urls import include, path 

15 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 

16""" 

17 

18from django.conf import settings 

19from django.conf.urls.static import static 

20from django.contrib import admin 

21from django.urls import include, path 

22 

23# Import error handlers 

24 

25urlpatterns = ( 

26 [ 

27 path("admin/", admin.site.urls), 

28 path("", include("website.urls.HomeUrl")), 

29 path("nossa-equipe/", include("website.urls.TeamUrl")), 

30 path("login/", include("website.urls.LoginUrl")), 

31 path("cadastre-se/", include("website.urls.SignUpUrl")), 

32 path("editar-leitor/", include("website.urls.ReaderEditUrl")), 

33 path("atualizar-perfil/", include("website.urls.ProfileUpdateUrl")), 

34 path("logout/", include("website.urls.LogoutUrl")), 

35 path("post/", include("website.urls.PostUrl")), 

36 path("error/", include("website.urls.ErrorUrl")), 

37 path("search/", include("website.urls.SearchUrl")), 

38 ] 

39 + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) 

40 + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) 

41)