This repository has been archived on 2022-09-23. You can view files and clone it, but cannot push or open issues or pull requests.
webdev/api/website/urls.py

28 lines
924 B
Python
Raw Normal View History

2021-12-25 04:03:45 +05:30
"""website URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
2022-01-08 04:42:34 +05:30
from django.urls import path, include
2021-12-25 04:03:45 +05:30
urlpatterns = [
path('admin/', admin.site.urls),
2022-01-08 14:37:51 +05:30
path('snippets/', include('snippets.urls')),
path('posts/', include('posts.urls'))
2021-12-25 04:03:45 +05:30
]
2022-01-08 05:25:14 +05:30
urlpatterns += [
path('api-auth/', include('rest_framework.urls')),
]