Created api v1 app

This commit is contained in:
Maximilian Giller 2024-02-25 19:16:55 +01:00
parent b614d8fb39
commit 827508a480
11 changed files with 24 additions and 0 deletions

6
api_v1/admin.py Normal file
View file

@ -0,0 +1,6 @@
from django.contrib import admin
from .user.models import *
admin.site.register(UserInformation)
# Register your models here.

6
api_v1/apps.py Normal file
View file

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

View file

4
api_v1/models.py Normal file
View file

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

3
api_v1/tests.py Normal file
View file

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

View file

@ -0,0 +1 @@
from .user_information import UserInformation

View file

3
api_v1/views.py Normal file
View file

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.

View file

@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'api_v1.apps.ApiV1Config',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',