init
This commit is contained in:
commit
bf6153d028
28 changed files with 537 additions and 0 deletions
0
petme/__init__.py
Normal file
0
petme/__init__.py
Normal file
3
petme/admin.py
Normal file
3
petme/admin.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
petme/apps.py
Normal file
6
petme/apps.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PetmeConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'petme'
|
||||
0
petme/migrations/__init__.py
Normal file
0
petme/migrations/__init__.py
Normal file
3
petme/models.py
Normal file
3
petme/models.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
petme/tests.py
Normal file
3
petme/tests.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
7
petme/urls.py
Normal file
7
petme/urls.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path("", views.index, name="index"),
|
||||
]
|
||||
6
petme/views.py
Normal file
6
petme/views.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from django.shortcuts import render
|
||||
from django.http import HttpResponse
|
||||
|
||||
# Create your views here.
|
||||
def index(request):
|
||||
return HttpResponse(render(request, "petme.html"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue