diff --git a/SocialHelper/SocialHelper/__pycache__/settings.cpython-37.pyc b/SocialHelper/SocialHelper/__pycache__/settings.cpython-37.pyc index 4584a4d..8248d3a 100644 Binary files a/SocialHelper/SocialHelper/__pycache__/settings.cpython-37.pyc and b/SocialHelper/SocialHelper/__pycache__/settings.cpython-37.pyc differ diff --git a/SocialHelper/SocialHelper/settings.py b/SocialHelper/SocialHelper/settings.py index baa6bc0..fbc6b78 100644 --- a/SocialHelper/SocialHelper/settings.py +++ b/SocialHelper/SocialHelper/settings.py @@ -118,6 +118,7 @@ USE_L10N = True USE_TZ = True +X_FRAME_OPTIONS = 'SAMEORIGIN' # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.1/howto/static-files/ diff --git a/SocialHelper/homepage/__pycache__/urls.cpython-37.pyc b/SocialHelper/homepage/__pycache__/urls.cpython-37.pyc index 613acf0..9d4d0b1 100644 Binary files a/SocialHelper/homepage/__pycache__/urls.cpython-37.pyc and b/SocialHelper/homepage/__pycache__/urls.cpython-37.pyc differ diff --git a/SocialHelper/homepage/__pycache__/views.cpython-37.pyc b/SocialHelper/homepage/__pycache__/views.cpython-37.pyc index f17f72c..534ec63 100644 Binary files a/SocialHelper/homepage/__pycache__/views.cpython-37.pyc and b/SocialHelper/homepage/__pycache__/views.cpython-37.pyc differ diff --git a/SocialHelper/homepage/templates/homepage/chating.html b/SocialHelper/homepage/templates/homepage/chating.html new file mode 100644 index 0000000..53e7db8 --- /dev/null +++ b/SocialHelper/homepage/templates/homepage/chating.html @@ -0,0 +1,38 @@ +{% load static %} +{% block content %} + + + +
+ + + + {% for messages in mess %} + {% if user_get_id == messages.author_id.id %} +
+ {{messages.author_id}}:
+ {{messages.text}}
+
+ {{messages.author_id}}:
+ {{messages.text}}
+
{{ last_date.pub_date }}
+ + + +{% endblock %} diff --git a/SocialHelper/homepage/templates/homepage/offer_page.html b/SocialHelper/homepage/templates/homepage/offer_page.html index 10ad80e..5fe1b25 100644 --- a/SocialHelper/homepage/templates/homepage/offer_page.html +++ b/SocialHelper/homepage/templates/homepage/offer_page.html @@ -32,41 +32,45 @@