From 0cd2b96963c2a40e145e893bcd56eacd6958d9a4 Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Tue, 17 Mar 2026 13:44:59 +0330 Subject: [PATCH] temporary break point --- apps/core/urls.py | 4 +++- apps/core/views.py | 9 +++++++++ run.sh | 14 +++++++------- templates/core/home.html | 2 +- templates/gooyal_oauth2/application_create.html | 2 +- templates/gooyal_oauth2/application_detail.html | 2 +- templates/gooyal_oauth2/application_list.html | 2 +- .../gooyal_oauth2/application_scope_create.html | 2 +- .../gooyal_oauth2/application_scope_detail.html | 2 +- .../gooyal_oauth2/application_scope_list.html | 2 +- .../gooyal_oauth2/application_scope_update.html | 2 +- templates/gooyal_oauth2/application_update.html | 2 +- templates/users/profile_detail.html | 2 +- templates/users/profile_update.html | 2 +- 14 files changed, 30 insertions(+), 19 deletions(-) diff --git a/apps/core/urls.py b/apps/core/urls.py index 7f82b8a..cbf7a57 100644 --- a/apps/core/urls.py +++ b/apps/core/urls.py @@ -1,7 +1,9 @@ from django.urls import path, include -from .views import HomeView +from .views import HomeView, TestIpView + app_name = "core" urlpatterns = [ path('', HomeView.as_view(), name='home'), + path('test-ip', TestIpView.as_view(), name='test-ip'), ] diff --git a/apps/core/views.py b/apps/core/views.py index a3b2197..871e71d 100644 --- a/apps/core/views.py +++ b/apps/core/views.py @@ -8,3 +8,12 @@ from django.views.generic import TemplateView class HomeView(TemplateView): template_name = 'core/home.html' + +class TestIpView(TemplateView): + template_name = 'core/home.html' + + def get(self, request, *args, **kwargs): + breakpoint() + return super(TestIpView, self).get(request, *args, **kwargs) + + diff --git a/run.sh b/run.sh index 80e55fd..e4dfb50 100755 --- a/run.sh +++ b/run.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash -while ! nc -z $DB_HOST 5432 ; do - echo "APP Waiting for the DB Server" - sleep 3 -done +#while ! nc -z $DB_HOST 5432 ; do +# echo "APP Waiting for the DB Server" +# sleep 3 +#done #python3 manage.py collectstatic --noinput -python3 manage.py migrate -#gunicorn accounts.wsgi:application --bind 0.0.0.0:8000 -w 4 -daphne -b 0.0.0.0 -p 8000 accounts.asgi:application \ No newline at end of file +#python3 manage.py migrate +gunicorn accounts.wsgi:application --bind 0.0.0.0:8000 -w 4 +#daphne -b 0.0.0.0 -p 8000 accounts.asgi:application \ No newline at end of file diff --git a/templates/core/home.html b/templates/core/home.html index f1dc136..e8d159a 100644 --- a/templates/core/home.html +++ b/templates/core/home.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% block title %}Accounts: Home{% endblock %} {% block page_title %}Accounts: Home{% endblock %} diff --git a/templates/gooyal_oauth2/application_create.html b/templates/gooyal_oauth2/application_create.html index 0603b09..0d1dc01 100644 --- a/templates/gooyal_oauth2/application_create.html +++ b/templates/gooyal_oauth2/application_create.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% block title %}Application Register{% endblock %} {% block page_title %}Application Register{% endblock %} diff --git a/templates/gooyal_oauth2/application_detail.html b/templates/gooyal_oauth2/application_detail.html index 1c15954..db64873 100644 --- a/templates/gooyal_oauth2/application_detail.html +++ b/templates/gooyal_oauth2/application_detail.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% block title %}Application Detail: {{ object }}{% endblock %} {% block page_title %}Application Detail: {{ object }}{% endblock %} diff --git a/templates/gooyal_oauth2/application_list.html b/templates/gooyal_oauth2/application_list.html index 2a7db52..4b6e4a7 100644 --- a/templates/gooyal_oauth2/application_list.html +++ b/templates/gooyal_oauth2/application_list.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% load static %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% load crispy_forms_tags %} {% load tags %} diff --git a/templates/gooyal_oauth2/application_scope_create.html b/templates/gooyal_oauth2/application_scope_create.html index 315c839..6e866e2 100644 --- a/templates/gooyal_oauth2/application_scope_create.html +++ b/templates/gooyal_oauth2/application_scope_create.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% block title %}Application Scope Register{% endblock %} {% block page_title %}Application Scope Register{% endblock %} diff --git a/templates/gooyal_oauth2/application_scope_detail.html b/templates/gooyal_oauth2/application_scope_detail.html index 97723ad..d9fa265 100644 --- a/templates/gooyal_oauth2/application_scope_detail.html +++ b/templates/gooyal_oauth2/application_scope_detail.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% block title %}Application Scope Detail: {{ object.name }}{% endblock %} {% block page_title %}Application Scope Detail: {{ object.name }}{% endblock %} diff --git a/templates/gooyal_oauth2/application_scope_list.html b/templates/gooyal_oauth2/application_scope_list.html index 6a7eaa7..05edada 100644 --- a/templates/gooyal_oauth2/application_scope_list.html +++ b/templates/gooyal_oauth2/application_scope_list.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% load static %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% load crispy_forms_tags %} {% load tags %} diff --git a/templates/gooyal_oauth2/application_scope_update.html b/templates/gooyal_oauth2/application_scope_update.html index f91b4bc..7d1b83a 100644 --- a/templates/gooyal_oauth2/application_scope_update.html +++ b/templates/gooyal_oauth2/application_scope_update.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% block title %}Application Update: {{ object.name }}{% endblock %} {% block page_title %}Application Update: {{ object.name }}{% endblock %} diff --git a/templates/gooyal_oauth2/application_update.html b/templates/gooyal_oauth2/application_update.html index e3b78b6..5c555f7 100644 --- a/templates/gooyal_oauth2/application_update.html +++ b/templates/gooyal_oauth2/application_update.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% block title %}Application Update: {{ object.name }}{% endblock %} {% block page_title %}Application Update: {{ object.name }}{% endblock %} diff --git a/templates/users/profile_detail.html b/templates/users/profile_detail.html index b9ad4ff..c949034 100644 --- a/templates/users/profile_detail.html +++ b/templates/users/profile_detail.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% block title %}user account{% endblock %} {% block page_title %}user account{% endblock %} diff --git a/templates/users/profile_update.html b/templates/users/profile_update.html index 9e6715d..de768f0 100644 --- a/templates/users/profile_update.html +++ b/templates/users/profile_update.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} -{% load jalali_tags %} +{#{% load jalali_tags %}#} {% block title %}user account{% endblock %} {% block page_title %}user account{% endblock %}