use filters with Rest api

2019-06-23 Thread omar ahmed
it's my first time to use REST APIs ... now i try to retrieve data from "https://www.football-data.org"; i want to list teams for a particular competition .. so in docs it was sample ... and i should to use these filters season={YEAR} stage={STAGE} but i don't know how ..thanks connection = http.c

Re: Can we create a Rest Api in Django which can able to communicate with multiple databases(Relational, Non relational) dynamically. If yes please recommend me a way to do that

2019-06-23 Thread Andrew C.
There really isn’t any point in doing that. 1) You should just use one of the two. Django officially supports Postgres. 2) You’d want to keep your users all jumbled in one database. If you have a foreign key to the username field, and the db can’t find a specific user because it’s in the other db,

Anyone is able to delete or update other's post through url

2019-06-23 Thread Gaurav Sahu
ok -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com.

Anyone is able to delete or update other's post through url

2019-06-23 Thread Gaurav Sahu
Hy, I am developing a Django Blog application. In this application, I have a PostEdit view to edit the post, Delete post view to delete the post. These operations can only be performed by the user who has created that post. I used Delete view as a functional view and edit view as CBV. Now what

extend New user model

2019-06-23 Thread laya Mahmoudi
Hi , I am new to django. my project is about a system which some users suck as student and Professors can sign up and login in the system and there are some courses which are defined with a professor and students can take the course. my model is as follow: class User(AbstractUser): is_stude

Learn_Master_Django

2019-06-23 Thread akash bhanu Tiwari
I want to learn and to be master in Django. But the official documentation was so hard to understand. Please give me some link, suggestions.. please need urgent.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group a

paho-mqtt with django

2019-06-23 Thread Sabuhi Shukurov
hello there! I wonder if someone has implemented paho with django and used websockets to display realtime data from device? I am having trouble for implementing it to django, my scripts doesnt run in django..what is the best way to do that? -- You received this message because you are subscrib

Creating a log for any changes in any model data i.e creation, updation and deletion??

2019-06-23 Thread Abhishek Tiwari
Hey everybody.. So i have been given a task to create a Activity Log page which shows the changes that have happened to any model data i.e either it is created or updated or deleted. My solution is to create a Activity model and store the changes following way- 1- override the save method an

Re: Learn_Master_Django

2019-06-23 Thread David Reguera
Hi akash I remember I started out with django girls tutorial (https://tutorial.djangogirls.org/en/) that will guide you through the basics really easy. Then you can dive into the docs, that are very complete but at first sight feel overwhelming, that eventually will help you to master it. Howe

Re: Learn_Master_Django

2019-06-23 Thread sagar lama
The official documentation of django is the best thing on the internet. It takes time to get your head around it at the beginning. but once you get the hang of it you'll know what i'm talking about. But i'd refer you to this post by W.S. Vincent https://wsvincent.com/best-online-django-tutorial

action in a form

2019-06-23 Thread bengoshi
Hi, I tried to write a form: ### {% extends 'base.html' %} {% block content %} Test {% csrf_token %} {{ form.as_p }} {% endblock %} ### and it works. But if I replace it with https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.go

WORKFLOWS

2019-06-23 Thread ramadhan ngallen
Hello django users I want to ask if it's possible to develop web application with approval workflows in django.  Where  will be approval groups and user can be linked and unlinked to those approval groups. Approval policy can be either half of the members of the group to approval or anyone among

Re: action in a form

2019-06-23 Thread Sebastian Jung
Hello, You must Put in Action not a Name from a function. You must Put a url dir example action="/newurl/" And in your url a Link from /newurl/ to the function Regards bengoshi schrieb am So., 23. Juni 2019, 17:57: > Hi, > I tried to write a form: > > ### > > {% extends 'base.html' %} > {% bl

Re: action in a form

2019-06-23 Thread Lutalo Bbosa joseph
as jung suggests action is meant to take in a url forexample action =" {% url "cart:journal" %}", where cart is name of the cart and journal is the name of the url On Sun, Jun 23, 2019 at 7:47 PM Sebastian Jung wrote: > Hello, > > You must Put in Action not a Name from a function. You must Put

Re: action in a form

2019-06-23 Thread Sipum Mishra
Hello, In action use the url associated with that view then it will work for you. If not then kindly tell what errors you are getting. Thanks. On Sun, 23 Jun, 2019, 10:17 PM Sebastian Jung, wrote: > Hello, > > You must Put in Action not a Name from a function. You must Put a url dir > example

Re: action in a form

2019-06-23 Thread bengoshi
Thanks for your responses. I didn't describe it well.. if I write it calls the url journal and this is the my requested result. All fine. Without the attribute "action" the form save the input in the database - the requested result, great. With "action" it doesn't. That is the point which I don

Re: libssl.so.1.1 / OPENSSL_1_1_1 not found after upgrade (ubuntu server 18.04 / apache / mod_wsgi)

2019-06-23 Thread Luke
I'm having the same problem, totally unable to find a resolution so far. I get no error messages of any use, even with all logging set to DEBUG. The only thing i'm seeing is "Truncated or oversized response headers received from daemon process" in the apache error log. Works fine when using the

Re: libssl.so.1.1 / OPENSSL_1_1_1 not found after upgrade (ubuntu server 18.04 / apache / mod_wsgi)

2019-06-23 Thread Luke
Hah! Found it! The psycopg2-binary module needed to be reinstalled (now version 2.8.3) I believe the old one must have been compiled against libssl1.1.0, which was replaced by 1.1.1 in the upgrade which broke things. On Monday, June 24, 2019 at 11:11:11 AM UTC+12, Luke wrote: > > I'm having the

Re: [novice question] Render a list of objects

2019-06-23 Thread Sudeep Gopal
Thank you so much Joe... I was actually able to go forward. With the below code :- {% for r in list1 %} {% cycle '' '' '' '' '' '' '' ''%} {{r}} {% cycle '' '' '' '' '' '' '' '' %} {% endfor %} The {{r}} in the above code , gives only the reference or the pointer value.

Re: action in a form

2019-06-23 Thread Sipum Mishra
Hi bengoshi, If i m not wrong, your concern is when you add action ='journal' then data are not saved. Right? Thanks. On Mon, 24 Jun, 2019, 2:07 AM bengoshi, wrote: > Thanks for your responses. I didn't describe it well.. if I write > > > it calls the url journal and this is the my requested

Re: action in a form

2019-06-23 Thread Kai Kobschätzki
Hi Sipum, yes, you are right! Best Greetings bengoshi Am Mo., 24. Juni 2019 um 08:45 Uhr schrieb Sipum Mishra : > Hi bengoshi, > > If i m not wrong, your concern is when you add action ='journal' then data > are not saved. > Right? > > Thanks. > > > On Mon, 24 Jun, 2019, 2:07 AM bengoshi, > wr