Re: Mysql for Django

2023-09-24 Thread DieHardMan 300
Do you mean you can't use mysqlclient with Django? Do you already install homebrew in MAC? Do you already install mysql server using homebrew? ในวันที่ วันจันทร์ที่ 25 กันยายน ค.ศ. 2023 เวลา 3 นาฬิกา 50 นาที 25 วินาที UTC+7 Lakhjeet Samra เขียนว่า: > Hi Guys, > I am new to Django > I use Mac ,

Re: PermissionError

2023-07-09 Thread DieHardMan 300
You might want to check if the project folder permission allow nginx to read/modify/delete. Normally checking by enter "ls -l" inside project folder in ubuntu terminal to check if "www-data:www-data" (user:group) has CRUD permission. If not using chown and chmod command. ในวันที่ วันอาทิตย์ที่

Re: need help

2023-07-05 Thread DieHardMan 300
On the server, change the following in settings DEBUG = True# django will tell what cause the error instead of error500 ALLOWED_HOST = ["*"]# this allow all hosts but you should do this only for testing most of the time, error 500 often cause from database connection

Dashboard with plotting graph

2023-06-20 Thread DieHardMan 300
Hello, I hope everyone have a good day. I want to start building dashboard with the plotting graph in my Django 4.2 web application. So I want some recommendations of what libraries should I use or what libraries work best for you guys. -- You received this message because you are subscribed

Re: template css issue

2023-06-07 Thread DieHardMan 300
Did you collectstatic and config Nginx to serve the static folder? It's happen to me sometimes when I deploy project to server. ในวันที่ วันพุธที่ 7 มิถุนายน ค.ศ. 2023 เวลา 13 นาฬิกา 42 นาที 01 วินาที UTC+7 Praveen Chaudhary เขียนว่า: > This is the original template and it's working locally. >

Re: Django inside WSL cannot connect to host database

2023-05-31 Thread DieHardMan 300
Are you set "ALLOWED_HOSTS" in settings.py for "172.21.48.1" ? ในวันที่ วันพุธที่ 31 พฤษภาคม ค.ศ. 2023 เวลา 14 นาฬิกา 38 นาที 48 วินาที UTC+7 Robbi Nespu เขียนว่า: > > Hello, > I am using windows machine to develop django project but now i want to > make my program run on WSL and keep the DB

Re: Finding Help in getting started in Django

2023-05-31 Thread DieHardMan 300
I'd like to give some advice before start your Django journey and Django project configurations -- Before Start Django -- 1. master Python "class" bacause you might use django class-based view a lot, learn "decorator" and standard library "datetime" and "re" 2. choose "Python

Re: Finding Help in getting started in Django

2023-05-31 Thread DieHardMan 300
I'd like to give some advice before start your Django journey and Django project configurations -- Before Start Django -- 1. master Python "class" bacause you might use django class-based view a lot, learn "decorator" and standard library "datetime" and "re" 2. choose "Python

Re: UPLOAD STATIC FILES

2023-05-30 Thread DieHardMan 300
settings.py - add following line if not exist -- STATIC_URL = 'static/' in your static folder ---> project_name/app_name/static/app_name/ * I

Re: UPLOAD STATIC FILES

2023-05-30 Thread DieHardMan 300
settings.py - add following line if not exist -- STATIC_URL = 'static/' in your static folder ---> project_name/app_name/static/app_name/ * I

Re: Can't load the images

2023-05-28 Thread DieHardMan 300
1. Make sure that django.contrib.staticfiles is included in your INSTALLED_APPS 2. also if it already included, adding the following snippet to your urls.py :

Template Filter - stringformat issue

2023-03-14 Thread DieHardMan 300
I tried Django template built-in filter "stringformat" to fixed string length to 3 for example assume I have variable name "data" contain "A1" I want to display this variable as "A1 " (1 blank space) so my code is {{ data|stringformat:":<3s" }} --> Result is None so I tried another 6 examples