diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/admin.py b/app/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/app/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/app/apps.py b/app/apps.py new file mode 100644 index 0000000..ed327d2 --- /dev/null +++ b/app/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class AppConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'app' diff --git a/app/migrations/__init__.py b/app/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/models.py b/app/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/app/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/app/templates/index.html b/app/templates/index.html new file mode 100644 index 0000000..7184d97 --- /dev/null +++ b/app/templates/index.html @@ -0,0 +1,113 @@ + + + + + + + + Chat App + + + + +

Simple Chat App

+ +
+

Enter your message:

+ + + +
+
Response will appear here...
+
+
+ + + + \ No newline at end of file diff --git a/app/tests.py b/app/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/app/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/app/urls.py b/app/urls.py new file mode 100644 index 0000000..0df804c --- /dev/null +++ b/app/urls.py @@ -0,0 +1,9 @@ +# conversation_app/urls.py + +from django.contrib import admin +from django.urls import path, include +from app import views + +urlpatterns = [ + path('', views.index, name='index'), +] \ No newline at end of file diff --git a/app/views.py b/app/views.py new file mode 100644 index 0000000..9a515e2 --- /dev/null +++ b/app/views.py @@ -0,0 +1,9 @@ +from django.shortcuts import render +import json +import time + +def index(request): + """ + Render the main chat page + """ + return render(request, 'index.html') \ No newline at end of file