se cambia de lado carpeta docs

francisco/prueba1
Francisco Sandoval 2023-06-11 20:11:51 -04:00
parent c71d1ae587
commit bda2e4ff9d
3 changed files with 1 additions and 11 deletions

View File

@ -1,3 +1,4 @@
create schema if not exists desarrollo1;
set search_path to desarrollo1;
CREATE TABLE if not exists projects (

View File

@ -2,12 +2,6 @@ from django.urls import path, include
from rest_framework import routers
from api import views
# token
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
)
router = routers.DefaultRouter()
router.register(r'projects', views.ProjectViewSet)
router.register(r'agencies', views.AgencyViewSet)
@ -17,5 +11,4 @@ router.register(r'auth', views.AuthViewSet, basename='auth')
urlpatterns = [
path('', include(router.urls)),
path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
]

View File

@ -38,7 +38,6 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework_simplejwt',
'rest_framework',
'coreapi',
'api'
@ -137,7 +136,4 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
REST_FRAMEWORK = {
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework_simplejwt.authentication.JWTAuthentication',
],
}