Browse Source

Created api project

master
Apalak Dutta 1 year ago
parent
commit
eb7667f4f5
8 changed files with 19 additions and 0 deletions
  1. +0
    -0
      backend/api/__init__.py
  2. +3
    -0
      backend/api/admin.py
  3. +6
    -0
      backend/api/apps.py
  4. +0
    -0
      backend/api/migrations/__init__.py
  5. +3
    -0
      backend/api/models.py
  6. +3
    -0
      backend/api/tests.py
  7. +3
    -0
      backend/api/views.py
  8. +1
    -0
      backend/cfehome/settings.py

+ 0
- 0
backend/api/__init__.py View File


+ 3
- 0
backend/api/admin.py View File

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

+ 6
- 0
backend/api/apps.py View File

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

+ 0
- 0
backend/api/migrations/__init__.py View File


+ 3
- 0
backend/api/models.py View File

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

+ 3
- 0
backend/api/tests.py View File

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

+ 3
- 0
backend/api/views.py View File

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

+ 1
- 0
backend/cfehome/settings.py View File

@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'api',
]
MIDDLEWARE = [


Loading…
Cancel
Save