Django soap client

2019-04-12 Thread oka M
Hai All, Im php programer and i want to migration from php to pyhton in specific i want to use django for my webapps; i have question how to import zeep module to my djanggo apps? can give me example for my php code to django http://localhost:8082/ws/live.php?wdslchace'; $client = new nusoap

Re: Multiple Django projects using the same database

2019-04-12 Thread Hammi
Hi, other then the secret key, what should the two projects share ? i need to do this .. On Monday, March 30, 2015 at 4:25:41 AM UTC+1, Russell Keith-Magee wrote: > > > On Mon, Mar 30, 2015 at 10:20 AM, Ien C. > > wrote: > >> Thanks Russ! >> >> Good point about the validation logic. Will defini

Re: Best way to modified third party app database restrictions?

2019-04-12 Thread Yongky Tria Putra
I solve it with this two lines code in my models: from thirdparty.models import ParentModelClassParentModelClass._meta.get_field('default_price').max_digits = 9 then makemigrations && migrate voila it work, but i don't know any downside using this tricks. Hope it will help others with simila

Re: Best way to modified third party app database restrictions?

2019-04-12 Thread Yongky Tria Putra
Almost forget. It thanks to Peterino comments on this https://stackoverflow.com/a/2357942/2579404 On Friday, April 12, 2019 at 6:16:04 PM UTC+7, Yongky Tria Putra wrote: > > I solve it with this two lines code in my models: > > from thirdparty.models import > ParentModelClassParentModelClass._me

not getting desired output

2019-04-12 Thread Mayur Bagul
Hello there, I have attached screenshot of django doc. which i follow in my ide code but when i run that code it doesnt showing desire output in the form of bullet format. im looking for your solution to run my code perfectly. thanking you. -- You received this message because you are subscr

Complex query on inner join - case for __ne?

2019-04-12 Thread Michael Thomas
Hello everyone, I've run into what I believe is a limitation of the ORM that other people must be dealing with somehow, but I can't seem to figure out a sensible solution. I think it's easiest to describe the problem with code. For the following models: class Foo(models.Model): name = mod

Re: not getting desired output

2019-04-12 Thread Michael Thomas
You're not using a template, nor generating HTML in your views - where are you expecting bullets to come from? -- 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 dj

Failed to understand syntax

2019-04-12 Thread Mayur Bagul
Hello coders, I'm here to understand line of code which im unable to understand how it work. i'm looking forward to get help from you. code is given below : from django.shortcuts import render from .models import Question def index(request): latest_question_list = Question.objects.order

Re: not getting desired output

2019-04-12 Thread Mayur Bagul
Hello Thomas, thanks for your help. On Friday, April 12, 2019 at 6:52:26 PM UTC+5:30, Michael Thomas wrote: > > You're not using a template, nor generating HTML in your views - where are > you expecting bullets to come from? > -- You received this message because you are subscribed to the Goo

Re: Complex query on inner join - case for __ne?

2019-04-12 Thread Aldian Fazrihady
What's the result of print(Foo.objects.exclude(bar__attribute=1).filter( bar__attribute_2=2).query) On Fri, 12 Apr 2019, 20:10 Michael Thomas, wrote: > Hello everyone, > > I've run into what I believe is a limitation of the ORM that other people > must be dealing with somehow, but I can't seem

Re: Complex query on inner join - case for __ne?

2019-04-12 Thread Michael Thomas
SELECT "app_foo"."id", "app_foo"."name" FROM "app_foo" INNER JOIN "app_bar" ON ( "app_foo"."id" = "app_bar"."foo_id" ) WHERE ( NOT ( "app_foo"."id" IN ( SELECT U1."foo_id" FROM "app_bar" U1 WHERE U1."attribute_1" = 1

Re: Failed to understand syntax

2019-04-12 Thread Test Bot
The part you want to understand is same as ORDER BY clause in SQL. The slicing will provide only the top 5 results. By default the order_by sorts in ascending order only. But providing a "-" would make it to sort in descending order. On Fri, Apr 12, 2019, 6:56 PM Mayur Bagul wrote: > Hello coder

Re: Complex query on inner join - case for __ne?

2019-04-12 Thread naimur rahman
use ORM istead of SQL On Fri, Apr 12, 2019, 7:42 PM Michael Thomas wrote: > SELECT > "app_foo"."id", > "app_foo"."name" > FROM "app_foo" > INNER JOIN "app_bar" ON ( > "app_foo"."id" = "app_bar"."foo_id" > ) > WHERE ( > NOT ( > "app_foo"."id" IN ( > SELECT >

Re: Complex query on inner join - case for __ne?

2019-04-12 Thread Michael Thomas
Naimur: I am - that SQL was in response to Aldian's question :) On Fri, Apr 12, 2019 at 8:23 PM naimur rahman wrote: > use ORM istead of SQL > > On Fri, Apr 12, 2019, 7:42 PM Michael Thomas < > michael.thomas.s...@gmail.com> wrote: > >> SELECT >> "app_foo"."id", >> "app_foo"."name" >> F

Video time line manipulation

2019-04-12 Thread dp Audiovisual
Hello. Anyone know how to make comments in a specific time of the video. Fir example I see in the second 28 of the video I want to comment something, I want to create the comment and when other users see the video can see the comments. with python or Django package maybe? -- You received this

Re: fesherstructural error

2019-04-12 Thread Joseph Jones
Hello, First thank you very much for the advice and I apologize for the response delay. just to make sure I understand the advice correctly I would install Django on Hypotheticalprojetfolder/bin/env? Please let me know. Thank you, Joseph On Tue, Apr 9, 2019 at 3:30 PM Julio Cojom wrote: > If you

Re: What is the proper workflow before first migration?

2019-04-12 Thread Flip Matter
Django you so much, I believe having a separate Post model would be the way to go. Recifes to get going on allauth and that's turning out to be way easier than I expected so all of you have basically fixed everything so thank you VERY much. Now I just need to figure out how to do email verification

Guardar many to many Django

2019-04-12 Thread tatianamesa687
Hola, tengo una duda acerca de como guardar many to many en Django , agradecería mucho sus ayudas En la tabla de artículos cargo los datos, luego quiero asociarlos con la tabla temas, pero cuando hago el save me sale este error Guardo primero todos los articulos. *TypeError: Direct assig

Re: What is the proper workflow before first migration?

2019-04-12 Thread 'David Turner' via Django users
If you are using django allauth and include this in your settings.py ACCOUNT_EMAIL_VERIFICATION = 'mandatory' then you will be good to go. On Apr 12 2019, at 10:03 pm, Flip Matter wrote: > Django you so much, I believe having a separate Post model would be the way > to go. Recifes to get going o

Re: Changing Admin Interface in Django

2019-04-12 Thread Derek
You can look at projects like: https://github.com/douglasmiranda/django-admin-bootstrap or https://pypi.org/project/django-fluent-dashboard/ or https://github.com/viewflow/django-material for examples of how you might go about doing this. On Thursday, 11 April 2019 18:58:30 UTC+2, Aayush Bhattar