Created api v1 app
This commit is contained in:
parent
b614d8fb39
commit
827508a480
11 changed files with 24 additions and 0 deletions
6
api_v1/admin.py
Normal file
6
api_v1/admin.py
Normal 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
6
api_v1/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ApiV1Config(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'api_v1'
|
0
api_v1/migrations/__init__.py
Normal file
0
api_v1/migrations/__init__.py
Normal file
4
api_v1/models.py
Normal file
4
api_v1/models.py
Normal 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
3
api_v1/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
1
api_v1/user/models/__init__.py
Normal file
1
api_v1/user/models/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
from .user_information import UserInformation
|
0
api_v1/user/models/user_services.py
Normal file
0
api_v1/user/models/user_services.py
Normal file
3
api_v1/views.py
Normal file
3
api_v1/views.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
|
@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
|
|||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'api_v1.apps.ApiV1Config',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
|
|
Loading…
Reference in a new issue