Added django_mongo app
This commit is contained in:
3
backend/django/seatstock_django/django_mongo/admin.py
Normal file
3
backend/django/seatstock_django/django_mongo/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
backend/django/seatstock_django/django_mongo/apps.py
Normal file
6
backend/django/seatstock_django/django_mongo/apps.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class DjangoMongoConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'django_mongo'
|
3
backend/django/seatstock_django/django_mongo/models.py
Normal file
3
backend/django/seatstock_django/django_mongo/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
backend/django/seatstock_django/django_mongo/tests.py
Normal file
3
backend/django/seatstock_django/django_mongo/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
5
backend/django/seatstock_django/django_mongo/urls.py
Normal file
5
backend/django/seatstock_django/django_mongo/urls.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [path('',views.index,name='index'),]
|
6
backend/django/seatstock_django/django_mongo/views.py
Normal file
6
backend/django/seatstock_django/django_mongo/views.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
|
||||
def index(request):
|
||||
return HttpResponse("<h1>Hello and welcome to my first <u>Django App</u> project!</h1>")
|
Reference in New Issue
Block a user