التصنيف: lessons
-
Allow remote connection to PostgreSQL
Hello, you can connect remotely to PostgreSQL either from remote cmd of from pgAdmin by making two simple steps: 1- As a super user, open /etc/postgresql/10/main/pg_hba.conf 2- Scroll down to the line that describes local socket connections. It may look like this: and add the following: 3- In the same directory, open postgresql.conf. Under the section on Connection Settings, add…
-
Auto complete foreignKey in Django
Hello, If you want to add autocomplete field or autocomplete search field in Django forms its pretty easy, there are a lot of existing packages that can help you with that, the one that we gonna use is: django-ajax-selects. Installation Activate your development environment and type the following command: pip install django-ajax-selects Usage After installing…
-
الوصول الى العناصر الاخرى في نفس صف العنصر المختار – Get other objects in the same row in listview
السلام عليكم, اذا كنت تحتاج الى الوصول الى محتويات العناصر الاخرى ضمن row معين في listview يمكنك استخدام هذه الطريقة البسيطة.