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-24 23:33:45 +01:00
"""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 00:12:34 +01:00
from django.urls import path, include
2021-12-24 23:33:45 +01:00
urlpatterns = [
path('admin/', admin.site.urls),
2022-01-08 10:07:51 +01:00
path('snippets/', include('snippets.urls')),
path('posts/', include('posts.urls'))
2021-12-24 23:33:45 +01:00
]
2022-01-08 00:55:14 +01:00
urlpatterns += [
path('api-auth/', include('rest_framework.urls')),
]