temporary break point

This commit is contained in:
Sayyid Hamid Mahdavi 2026-03-17 13:44:59 +03:30
parent 6dbb86d7ee
commit 0cd2b96963
14 changed files with 30 additions and 19 deletions

View file

@ -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'),
]

View file

@ -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)

14
run.sh
View file

@ -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
#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

View file

@ -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 %}

View file

@ -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 %}

View file

@ -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 %}

View file

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% load static %}
{% load jalali_tags %}
{#{% load jalali_tags %}#}
{% load crispy_forms_tags %}
{% load tags %}

View file

@ -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 %}

View file

@ -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 %}

View file

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% load static %}
{% load jalali_tags %}
{#{% load jalali_tags %}#}
{% load crispy_forms_tags %}
{% load tags %}

View file

@ -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 %}

View file

@ -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 %}

View file

@ -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 %}

View file

@ -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 %}