
11 changed files with 36 additions and 2 deletions
@ -0,0 +1,3 @@ |
|||||
|
from django.contrib import admin |
||||
|
|
||||
|
# Register your models here. |
@ -0,0 +1,6 @@ |
|||||
|
from django.apps import AppConfig |
||||
|
|
||||
|
|
||||
|
class FooConfig(AppConfig): |
||||
|
default_auto_field = 'django.db.models.BigAutoField' |
||||
|
name = 'foo' |
@ -0,0 +1,3 @@ |
|||||
|
from django.db import models |
||||
|
|
||||
|
# Create your models here. |
@ -0,0 +1,3 @@ |
|||||
|
<h1>Scooby Doo</h1> |
||||
|
|
||||
|
<a href="/page/">odkaz page</a> |
@ -0,0 +1,3 @@ |
|||||
|
<H1>Shaggy</H1> |
||||
|
|
||||
|
<a href="/">odkaz index</a> |
@ -0,0 +1,3 @@ |
|||||
|
from django.test import TestCase |
||||
|
|
||||
|
# Create your tests here. |
@ -0,0 +1,8 @@ |
|||||
|
from django.shortcuts import render |
||||
|
|
||||
|
# Create your views here. |
||||
|
def foo_index(request): |
||||
|
return render(request, "foo/index.html") |
||||
|
|
||||
|
def foo_page(request): |
||||
|
return render(request, "foo/page.html") |
Loading…
Reference in new issue