Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Backend Directory #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Backend/server/api/__pycache__/models.cpython-311.pyc
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Generated by Django 5.1.2 on 2025-01-13 12:29

import django.utils.timezone
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0012_hostel_ac_hostel_cctv_hostel_cooler_hostel_furniture_and_more'),
]

operations = [
migrations.AddField(
model_name='blog',
name='author',
field=models.CharField(default='Anonymous', max_length=255),
),
migrations.AddField(
model_name='blog',
name='date',
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
preserve_default=False,
),
migrations.AddField(
model_name='blog',
name='hook',
field=models.CharField(default='', max_length=255),
),
migrations.AddField(
model_name='blog',
name='views',
field=models.IntegerField(default=0),
),
]
Binary file not shown.
7 changes: 7 additions & 0 deletions Backend/server/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ class Blog(models.Model):
content = models.TextField(default="")
image = models.ImageField(upload_to='images/', null=True, blank=True)
link = models.URLField(null=True, blank=True)
date = models.DateTimeField(auto_now_add=True)
views = models.IntegerField(default=0)
author = models.CharField(max_length=255, default="Anonymous")
hook = models.CharField(max_length=255, default="")




def __str__(self):
return self.title
Expand Down
Binary file modified Backend/server/db.sqlite3
Binary file not shown.
13 changes: 12 additions & 1 deletion Backend/server/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
asgiref==3.8.1
Django==5.1.2
Django==5.1.4
django-admin==2.0.2
django-cors-headers==4.5.0
django-excel-response2==3.0.6
django-six==1.0.5
djangorestframework==3.15.2
excel-base==1.0.4
isoweek==1.3.3
pillow==11.0.0
python-dateutil==2.9.0.post0
screen==1.0.1
six==1.17.0
sqlparse==0.5.1
TimeConvert==3.0.13
tzdata==2024.2
tzlocal==5.2
xlwt==1.3.0