Added project, app, scaffolds

This commit is contained in:
2020-07-19 00:13:49 +02:00
parent 78cfc92c0a
commit 87c816d83f
14 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Place)

View File

@@ -0,0 +1,5 @@
from django.apps import AppConfig
class LostplacesAppConfig(AppConfig):
name = 'lostplaces_app'

View File

@@ -0,0 +1,25 @@
# Generated by Django 3.0.8 on 2020-07-18 20:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Place',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('location', models.CharField(max_length=50)),
('latitude', models.FloatField()),
('longitude', models.FloatField()),
('description', models.TextField()),
],
),
]

View File

@@ -0,0 +1,11 @@
from django.db import models
# Create your models here.
class Place (models.Model):
name = models.CharField(max_length=50)
location = models.CharField(max_length=50)
latitude = models.FloatField()
longitude = models.FloatField()
description = models.TextField()

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
{{text}}
</body>
</html>

View File

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