Commit 389ab1fc authored by Miguel Luis D. Bandelaria's avatar Miguel Luis D. Bandelaria

Resolved cache changes.

parents 2d3e29bd 5d8908c0
...@@ -13,4 +13,9 @@ JOAN DENISE NOCOS ...@@ -13,4 +13,9 @@ JOAN DENISE NOCOS
Created Assignments app Created Assignments app
RECORDING RECORDING
LAB 1
https://drive.google.com/file/d/1h7ZKUgOm05asADkjp_4TqzfbnsMjiszC/view?usp=sharing https://drive.google.com/file/d/1h7ZKUgOm05asADkjp_4TqzfbnsMjiszC/view?usp=sharing
LAB 2
https://drive.google.com/file/d/1vxanijE64BhKiguSCyYZRtvO4vT7x44i/view?usp=sharing
\ No newline at end of file
from django.contrib import admin from django.contrib import admin
# Register your models here. # Register your models here.
from .models import Assignment
admin.site.register(Assignment)
\ No newline at end of file
# Generated by Django 3.2.12 on 2022-03-22 23:38
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Assignment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('description', models.CharField(max_length=500)),
('max_points', models.IntegerField(default=0)),
],
),
]
from django.db import models from django.db import models
# Create your models here. # Create your models here.
class Assignment(models.Model):
name = models.CharField(max_length=50)
description = models.CharField(max_length=500)
max_points = models.IntegerField(default=0)
def _str_(self):
return self.name
\ No newline at end of file
# Generated by Django 4.0.3 on 2022-03-24 10:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('homepage', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Department',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('dept_name', models.CharField(max_length=50, null=True)),
('home_unit', models.CharField(max_length=50, null=True)),
],
),
migrations.AddField(
model_name='widgetuser',
name='email',
field=models.EmailField(max_length=50, null=True),
),
migrations.AddField(
model_name='widgetuser',
name='id_num',
field=models.IntegerField(max_length=7, null=True),
),
migrations.AlterField(
model_name='widgetuser',
name='first_name',
field=models.CharField(max_length=50, null=True),
),
migrations.AlterField(
model_name='widgetuser',
name='last_name',
field=models.CharField(max_length=50, null=True),
),
migrations.AlterField(
model_name='widgetuser',
name='middle_name',
field=models.CharField(max_length=50, null=True),
),
migrations.AddField(
model_name='widgetuser',
name='department',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='homepage.department'),
),
]
# Generated by Django 4.0.3 on 2022-03-24 10:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('homepage', '0002_department_widgetuser_email_widgetuser_id_num_and_more'),
]
operations = [
migrations.RemoveField(
model_name='widgetuser',
name='department',
),
migrations.AddField(
model_name='department',
name='department',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='homepage.widgetuser'),
),
migrations.AlterField(
model_name='widgetuser',
name='first_name',
field=models.CharField(max_length=50),
),
migrations.AlterField(
model_name='widgetuser',
name='last_name',
field=models.CharField(max_length=50),
),
migrations.AlterField(
model_name='widgetuser',
name='middle_name',
field=models.CharField(max_length=50),
),
]
from django.db import models from django.db import models
# Create your models here.
class WidgetUser(models.Model): class WidgetUser(models.Model):
first_name = models.CharField(max_length=50) first_name = models.CharField(max_length=50)
middle_name = models.CharField(max_length=50) middle_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50) last_name = models.CharField(max_length=50)
\ No newline at end of file id_num = models.IntegerField(max_length=7, null=True)
email = models.EmailField(max_length=50, null=True)
# Create your models here.
class Department(models.Model):
dept_name = models.CharField(max_length=50, null=True)
home_unit = models.CharField(max_length=50, null=True)
department = models.ForeignKey(WidgetUser, on_delete=models.CASCADE, null=True)
...@@ -36,6 +36,7 @@ ALLOWED_HOSTS = [] ...@@ -36,6 +36,7 @@ ALLOWED_HOSTS = []
INSTALLED_APPS = [ INSTALLED_APPS = [
'announcements.apps.AnnouncementsConfig', 'announcements.apps.AnnouncementsConfig',
'assignments.apps.AssignmentsConfig',
'forum.apps.ForumConfig', 'forum.apps.ForumConfig',
'homepage.apps.HomepageConfig', 'homepage.apps.HomepageConfig',
'django.contrib.admin', 'django.contrib.admin',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment