This commit is contained in:
anhduy-tech
2026-03-19 12:02:48 +07:00
parent f76cd880e1
commit b72be8471e
6 changed files with 4 additions and 1048 deletions

View File

@@ -21,7 +21,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-_u202k$8qq2p*cr_eo(7k!0ngr5^n)27@85+5oy8&41(u6&j54' SECRET_KEY = 'django-insecure-_u202k$8qq2p*cr_eo(7k!0ngr5^n)27@85+5oy8&41(u6&j54'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False DEBUG = True
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']
@@ -79,7 +79,7 @@ ASGI_APPLICATION = 'api.asgi.application'
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases # https://docs.djangoproject.com/en/4.1/ref/settings/#databases
#prod:5.223.52.193 dev:5.223.42.146 #prod:5.223.52.193 dev:5.223.42.146
MODE = 'prod' MODE = 'dev'
DBHOST = '138.199.203.34' if MODE == 'prod' else '138.199.203.34' DBHOST = '138.199.203.34' if MODE == 'prod' else '138.199.203.34'
DATABASES = { DATABASES = {

View File

@@ -14,7 +14,7 @@ Including another URLconf
2. Add a URL to urlpatterns: re_path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: re_path('blog/', include('blog.urls'))
""" """
from django.urls import re_path from django.urls import re_path
from app import views, cob, payment, cleardata, email, backup, server, importdata from app import views, cob, cleardata, email, backup, server, importdata
urlpatterns = [ urlpatterns = [
@@ -39,8 +39,6 @@ urlpatterns = [
re_path('check-pin/$', views.check_pin), re_path('check-pin/$', views.check_pin),
re_path('password/(?P<text>.+)/$', views.get_password), re_path('password/(?P<text>.+)/$', views.get_password),
re_path('exportcsv/(?P<name>.+)/$', views.export_csv), re_path('exportcsv/(?P<name>.+)/$', views.export_csv),
re_path('account-entry/$', payment.account_entry),
re_path('account-multi-entry/$', payment.account_multi_entry),
re_path('close-of-business/$', cob.close_of_business), re_path('close-of-business/$', cob.close_of_business),
re_path('data-deletion/', cleardata.data_deletion), re_path('data-deletion/', cleardata.data_deletion),
re_path('send-email/$', email.send_email), re_path('send-email/$', email.send_email),
@@ -52,6 +50,5 @@ urlpatterns = [
re_path('model-fields/(?P<name>.+)/', importdata.model_fields), re_path('model-fields/(?P<name>.+)/', importdata.model_fields),
re_path('read-excel/', importdata.read_excel), re_path('read-excel/', importdata.read_excel),
re_path('find-key/$', importdata.find_key), re_path('find-key/$', importdata.find_key),
re_path('email-preview/$', views.preview_email_template), re_path('email-preview/$', views.preview_email_template)
re_path('delete-entry/$', payment.delete_entry)
] ]

File diff suppressed because it is too large Load Diff