Primer commit

iniciando proyecto
This commit is contained in:
2023-02-16 11:40:04 +01:00
parent 667dc684c3
commit b07813a859
46 changed files with 1473 additions and 1 deletions

View File

3
authentication/admin.py Normal file
View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
authentication/apps.py Normal file
View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class AuthenticationConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'authentication'

View File

3
authentication/models.py Normal file
View File

@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
authentication/tests.py Normal file
View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

6
authentication/urls.py Normal file
View File

@@ -0,0 +1,6 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.HelloAuthView.as_view(), name='hello_auth'),
]

12
authentication/views.py Normal file
View File

@@ -0,0 +1,12 @@
# from django.shortcuts import render
from rest_framework import generics, status
from rest_framework.response import Response
# Create your views here.
class HelloAuthView(generics.GenericAPIView):
def get(self, request):
return Response(data={"message": "Hello Auth"},
status=status.HTTP_200_OK)