Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to make a time tracking system in django? This is my code so far tests.py from django.test import TestCase # Create your tests here.

How to make a time tracking system in django? This is my code so far tests.py  
from django.test import TestCase # Create your tests here. 
 admin.py 
from django.contrib import admin # Register your models here. 
 apps.py 
from django.apps import AppConfig class WorkregConfig(AppConfig): name = 'workreg' 
 models.py class Workreg(): def __str__(self): return str(self.author) #+ ": " + str(self.Task_Category) author = models.ForeignKey(User, on_delete=models.CASCADE) date = models.DateTimeField(verbose_name="date", auto_now_add=True) is_active = models.BooleanField(default=True) comment = models.TextField(verbose_name="comment") start_time = models.TimeField(verbose_name="start time", auto_now_add=True) end_time = models.TimeField(verbose_name="end time", auto_now_add=True) #create variable with remote key for task / task

views.py

from django.shortcuts import render # Create your views here. 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions