Add chat models and scaffold pages/posts apps
Implemented comprehensive models for chat functionality, including Chat, Message, MessageHistory, MessageReaction, and MessageFile. Updated ChatConsumer to enforce authentication and improve message handling. Added initial scaffolding for 'pages' and 'posts' Django apps with basic files.
This commit is contained in:
0
backend/social/posts/__init__.py
Normal file
0
backend/social/posts/__init__.py
Normal file
3
backend/social/posts/admin.py
Normal file
3
backend/social/posts/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
backend/social/posts/apps.py
Normal file
6
backend/social/posts/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PostsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'posts'
|
||||
0
backend/social/posts/migrations/__init__.py
Normal file
0
backend/social/posts/migrations/__init__.py
Normal file
3
backend/social/posts/models.py
Normal file
3
backend/social/posts/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
backend/social/posts/tests.py
Normal file
3
backend/social/posts/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
backend/social/posts/views.py
Normal file
3
backend/social/posts/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user