التصنيف: lessons
-
Get real id of item in Django and GraphQL
Hello, When you use graphql in django using graphen and when you utilize the relay and nodes, the query result of any item while have base64 representation of the id, You can fix that easily by subclassing from “relay.Node” and then just use the new class in the interface like in the code below: https://gist.github.com/ahmedalttai/6951af94d056a6b2966eccf7f9b0e6c2…
-
Using Django DateField with Apollo GraphQl in Android
https://hashnode.com/post/using-django-datefield-with-apollo-graphql-in-android-ckrizgvo80p0ints19z0af9y8
-
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 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: Usage After installing the package create…
-
الوصول الى العناصر الاخرى في نفس صف العنصر المختار – Get other objects in the same row in listview
السلام عليكم, اذا كنت تحتاج الى الوصول الى محتويات العناصر الاخرى ضمن row معين في listview يمكنك استخدام هذه الطريقة البسيطة.