@ -1,3 +1,6 @@ | |||||
from django.contrib import admin | from django.contrib import admin | ||||
# Register your models here. | # Register your models here. | ||||
from .models import Project | |||||
admin.site.register(Project) |
@ -0,0 +1,22 @@ | |||||
# Generated by Django 3.1.1 on 2020-09-22 09:13 | |||||
from django.db import migrations, models | |||||
class Migration(migrations.Migration): | |||||
initial = True | |||||
dependencies = [ | |||||
] | |||||
operations = [ | |||||
migrations.CreateModel( | |||||
name='Project', | |||||
fields=[ | |||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |||||
('project_name', models.CharField(max_length=200)), | |||||
('project_start', models.DateTimeField(verbose_name='start date')), | |||||
], | |||||
), | |||||
] |
@ -1,3 +1,9 @@ | |||||
from django.db import models | from django.db import models | ||||
# Create your models here. | |||||
class Project(models.Model): | |||||
project_name = models.CharField(max_length=200) | |||||
project_start = models.DateTimeField('start date') | |||||
def __str__(self): | |||||
return self.project_name |
@ -0,0 +1,7 @@ | |||||
from django.urls import path | |||||
from . import views | |||||
urlpatterns = [ | |||||
path('', views.index, name='index'), | |||||
] |
@ -1,3 +1,8 @@ | |||||
from django.shortcuts import render | from django.shortcuts import render | ||||
# Create your views here. | # Create your views here. | ||||
from django.http import HttpResponse | |||||
def index(request): | |||||
return HttpResponse("Hello, world. You're at the input form") |