Commit 51366e7c authored by Wickramasinghe R.J.P's avatar Wickramasinghe R.J.P

see also property connected to the api

parent 05e607a1
web gunicorn djangoProject.wsgi:application --log-file -
\ No newline at end of file
...@@ -3,15 +3,14 @@ from . import views ...@@ -3,15 +3,14 @@ from . import views
urlpatterns = [ urlpatterns = [
path('', views.getRoutes), path('', views.getRoutes),
path('notes/', views.getNotes), path('diseasecategory/<str:pk>/', views.get_categorized_diseases),
path('diseases/', views.get_diseases), path('diseases/', views.get_diseases),
path('disease/<str:pk>/', views.get_disease_description), path('disease/<str:pk>/', views.get_disease_description),
path('disease/status/<str:pk>/<str:pk2>/', views.update_disease_status),
path('disease/sub/status/<str:pk>/<str:pk2>/<str:pk3>/', views.update_disease_info_status),
path('disease/get/status/<str:pk>/', views.get_disease_status),
path('disease/sub/get/status/<str:pk>/<str:pk2>/', views.get_disease_info_status),
path('disease/<str:pk>/<str:pk2>/', views.get_disease_sub), path('disease/<str:pk>/<str:pk2>/', views.get_disease_sub),
path('disease/<str:pk>/<str:pk2>/<str:pk3>/', views.get_disease_sub_info), path('disease/<str:pk>/<str:pk2>/<str:pk3>/', views.get_disease_sub_info),
path('notes/create/', views.createNote), path('diseaselink/<str:pk>/', views.get_link),
path('disease/treatment/', views.get_treatment),
path('notes/<str:pk>/update/', views.updateNote),
path('notes/<str:pk>/delete/', views.deleteNote),
path('notes/<str:pk>/', views.getNote),
] ]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri id="User Entered Import Resolution" name="https://ontohub.org/canis-care/dogSkinDisease.owl" uri="dogSkinDisease.owl"/>
<group id="Folder Repository, directory=, recursive=true, Auto-Update=true, version=2" prefer="public" xml:base="">
<uri id="Automatically generated entry, Timestamp=1666527743691" name="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogDisease.owl" uri="dogDisease.owl"/>
<uri id="Automatically generated entry, Timestamp=1666527743691" name="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease" uri="dogSkinDisease.owl"/>
</group>
</catalog>
...@@ -9,8 +9,10 @@ https://docs.djangoproject.com/en/4.1/topics/settings/ ...@@ -9,8 +9,10 @@ https://docs.djangoproject.com/en/4.1/topics/settings/
For the full list of settings and their values, see For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/ https://docs.djangoproject.com/en/4.1/ref/settings/
""" """
import os
from pathlib import Path from pathlib import Path
import django_heroku
import dj_database_url
# Build paths inside the project like this: BASE_DIR / 'subdir'. # Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent BASE_DIR = Path(__file__).resolve().parent.parent
...@@ -24,7 +26,7 @@ SECRET_KEY = 'django-insecure-3ts!3sf#jntwaa-9r(^t%7ty=nc03p_eil3yha%#hinc30b&ww ...@@ -24,7 +26,7 @@ SECRET_KEY = 'django-insecure-3ts!3sf#jntwaa-9r(^t%7ty=nc03p_eil3yha%#hinc30b&ww
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = ['192.168.1.102', '192.168.1.101', '192.168.1.5', '192.168.1.100'] ALLOWED_HOSTS = ['*']
# Application definition # Application definition
...@@ -121,6 +123,9 @@ USE_TZ = True ...@@ -121,6 +123,9 @@ USE_TZ = True
# https://docs.djangoproject.com/en/4.1/howto/static-files/ # https://docs.djangoproject.com/en/4.1/howto/static-files/
STATIC_URL = 'static/' STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),)
django_heroku.settings(locals())
# Default primary key field type # Default primary key field type
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
......
<!DOCTYPE html>
<html lang="en">
{#<link rel="stylesheet" href="{{ url_for('static', filename='style.css')}}">#}
<head>
<meta charset="UTF-8">
<title>Chatbot</title>
</head>
<body>
<div class="container">
<div class="chatbox">
<div class="chatbox__support">
<div class="chatbox__header">
<div class="chatbox__image--header">
<img src="https://img.icons8.com/color/48/000000/circled-user-female-skin-type-5--v1.png" alt="image">
</div>
<div class="chatbox__content--header">
<h4 class="chatbox__heading--header">Chat support</h4>
<p class="chatbox__description--header">Hi. My name is Sam. How can I help you?</p>
</div>
</div>
<div class="chatbox__messages">
<div></div>
</div>
<div class="chatbox__footer">
<input type="text" placeholder="Write a message...">
<button class="chatbox__send--footer send__button">Send</button>
</div>
</div>
<div class="chatbox__button">
{# <button><img src="{{ url_for('static', filename='images/chatbox-icon.svg') }}" /></button>#}
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
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