Commit 4246e6c9 authored by Andre Matthew Dumandan's avatar Andre Matthew Dumandan 😴

Deleted pycache files and migrations folders and Added entries for Homepage app

parent 31851678
# Generated by Django 4.0.3 on 2022-05-15 09:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Course',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('course_code', models.CharField(max_length=10)),
('course_title', models.CharField(max_length=50)),
('section', models.CharField(max_length=3)),
],
),
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)),
('passing_score', models.IntegerField(default=0, editable=False)),
('course_code', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assignments.course')),
],
),
]
# Generated by Django 4.0.3 on 2022-05-15 18:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('calendarapp', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='location',
name='image',
field=models.ImageField(default='temp', upload_to='uploads/'),
preserve_default=False,
),
]
...@@ -21,12 +21,3 @@ def details(request,user_id): ...@@ -21,12 +21,3 @@ def details(request,user_id):
"user" : user, "user" : user,
} }
return HttpResponse(template.render(context,request)) return HttpResponse(template.render(context,request))
#model = WidgetUser
#widget_users = model.objects.all()
#homepage_response = "WIDGET USERS: </br>"
#for user in widget_users:
#homepage_response += user.get_user_info()
#return HttpResponse(homepage_response)
\ No newline at end of file
@import url('https://fonts.googleapis.com/css?family=Klavika&display=swap'); @import url('https://fonts.googleapis.com/css?family=Klavika&display=swap');
body { body {
background-color: rgb(227,229,231); background-color: rgb(227,229,231);
font-family: Helvetica, Arial, sans-serif; font-family: Helvetica, Arial, sans-serif;
...@@ -10,6 +11,7 @@ header{ ...@@ -10,6 +11,7 @@ header{
margin: -9px; margin: -9px;
margin-bottom: 0px; margin-bottom: 0px;
} }
wid { wid {
float: left; float: left;
margin-top: 50px; margin-top: 50px;
...@@ -28,6 +30,7 @@ infohead{ ...@@ -28,6 +30,7 @@ infohead{
line-height: 40px; line-height: 40px;
font-weight: bold; font-weight: bold;
} }
info{ info{
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 10px; line-height: 10px;
......
@import url('https://fonts.googleapis.com/css?family=Klavika&display=swap'); @import url('https://fonts.googleapis.com/css?family=Klavika&display=swap');
body { body {
background-color: rgb(227,229,231); background-color: rgb(227,229,231);
} }
...@@ -26,6 +27,7 @@ wu { ...@@ -26,6 +27,7 @@ wu {
font-size: 25px; font-size: 25px;
font-weight: 500; font-weight: 500;
} }
a { a {
color: black; color: black;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<wu> Widget Users: </wu> <wu> Widget Users: </wu>
<ol type = '1'> <ol type = '1'>
{% for user in user_list %} {% for user in user_list %}
<a href = "{% url 'homepage:details' user.id_num %}""> <a href = "{% url 'homepage:details' user.id_num %}">
<li>{{user.last_name}}, {{user.first_name}} {{user.middle_name}} </br> </a> </li> </p> <li>{{user.last_name}}, {{user.first_name}} {{user.middle_name}} </br> </a> </li> </p>
{% endfor %} {% endfor %}
</ol> </ol>
......
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