Re: Adding Two Models In Django

2021-06-15 Thread Ridwan Adeyemo
Please kindly describe with images. On Tue, Jun 15, 2021, 9:52 PM Sebastian Jung wrote: > Hello, > > You create all modelfields inkl. Total sum and after user submit Form with > 2 fields in save() Method you sum both fields together ans write this in > total field... > > Regards > > Ridwan Adeye

Re: Help

2021-06-15 Thread DJANGO DEVELOPER
hi inside believer. +923012876771. Ping me on whats app. I will help you in your django project. On Wed, Jun 16, 2021 at 1:56 AM Sebastian Jung wrote: > Good luck to be an expert in Django in only one Montag > > Inside Believer schrieb am Mo., 7. Juni 2021, 18:21: > >> Sir I'm internee i know p

Re: Desperately need help.

2021-06-15 Thread Nikeet NA
In your withdraw view you have return render this should be missing check inside if statements or inside your custom logic which you have written without seeing the actual code its hard to tell. On Wednesday, 16 June 2021 at 03:14:26 UTC+5:30 Ken Smith wrote: > jul, thank you so very much for

Re: File in nested serializer

2021-06-15 Thread Nikeet NA
Can you show me your nested serializer code. On Wed, 16 Jun 2021 at 06:07, narendra thapa wrote: > Actual problem is nested serializer is not accepting a QueryDIct data it > accepts only the parent data and delete the child automatically. when i > parse the QueryDIct data to JSON json.dumps() it

Challenges Building and Integrating Test and Live API keys

2021-06-15 Thread Miracle
I want to create a system that works similar to stripe. There'll be live API keys, as well as test API keys. I have been thinking of how to implement this architecture, and I am not sure the best way to go about it. I found a similar question on this but it didn't help much. Architecturing testmod

Re: File in nested serializer

2021-06-15 Thread narendra thapa
Actual problem is nested serializer is not accepting a QueryDIct data it accepts only the parent data and delete the child automatically. when i parse the QueryDIct data to JSON json.dumps() it will accept the child one but problem here is json.dumps() cannot convert InMEmoryField data type. So wha

Re: File in nested serializer

2021-06-15 Thread narendra thapa
Actual problem is nested serializer is not accepting a QueryDIct data it accepts only the parent data and delete the child automatically. when i parse the QueryDIct data to JSON json.dumps() it will accept the child one but problem here is json.dumps() cannot convert InMEmoryField data type. So wha

Mobile session issue

2021-06-15 Thread Bhoopesh sisoudiya
Hi team, When I am logining from laptop browser then session storing all keys and respective vales but when I am trying to login from mobile then keys and values are not present in the session. But session is available in both case. Please help me on this. Thanks Bhoopesh sisoudiya -- You recei

Re: Desperately need help.

2021-06-15 Thread Ken Smith
jul, thank you so very much for your very simple and honest answer. This was the best response I could have ever received from anyone and I appreciate it. I'm getting a bit old at 66 it seems my brain doesn't work as good as it did even 10 years ago for learning something as difficult as coding

Re: Desperately need help.

2021-06-15 Thread Ken Smith
Kasper, I am not sure of anything at this point. As for the denigrating of the Safeway programmers this has been going on for quite some time and I have money in that account that I am unable to withdraw because the failure of the page for withdrawal. And no I'm not sure of anything about permi

Re: Desperately need help.

2021-06-15 Thread Julio Cojom
Pretty easy to be honest. The web page need an http response and it's give none instead. :) If you don't know about the code, maybe you should hire a developer or learn by yourself. El mar., 15 de junio de 2021 3:14 p. m., Ken Smith escribió: > There is the issue to solve that is the result of

Re: Help

2021-06-15 Thread Sebastian Jung
Good luck to be an expert in Django in only one Montag Inside Believer schrieb am Mo., 7. Juni 2021, 18:21: > Sir I'm internee i know python my company has assigned me bugs to resolve > in live project but i have not didn't experience of Django. Anyone who can > help me how to find bugs destinat

Re: How can i start to learn django?

2021-06-15 Thread Sebastian Jung
At beginnig Django Girls Tutorial ist a good start in my opinon https://tutorial.djangogirls.org/en/ anil9...@gmail.com schrieb am Di., 15. Juni 2021, 14:27: > You can try freecodecamp.org's youtube channel if you like to learn from > videos else Django docs are also great. > > On Sunday, 13 Jun

Re: Adding Two Models In Django

2021-06-15 Thread Sebastian Jung
Hello, You create all modelfields inkl. Total sum and after user submit Form with 2 fields in save() Method you sum both fields together ans write this in total field... Regards Ridwan Adeyemo schrieb am Di., 15. Juni 2021, 20:34: > How do I add two models together in the database, two differe

Re: Help

2021-06-15 Thread Franck Tchouanga
Service offers - Final year project technical documentation particularly in data science - Code debugging - Quick Designs - Python, Django and R programming - Data entry and analytics - Mini machine learning project handling - Technical software preparation and testing - Business intelligence insig

Re: Help

2021-06-15 Thread Franck Tchouanga
Contact me for code worries. Email:ftchoua...@gmail.com WhatsApp: 656774424 On Tue, Jun 15, 2021, 9:25 PM Inside Believer wrote: > Please share with me when u will be available. > > On Tue, Jun 15, 2021 at 1:18 PM Bradie Poa wrote: > >> WE BOTH NEED TO AGREE ON THE TIME. >> BECAUSE I MAY GIVE

Re: Help

2021-06-15 Thread Inside Believer
Please share with me when u will be available. On Tue, Jun 15, 2021 at 1:18 PM Bradie Poa wrote: > WE BOTH NEED TO AGREE ON THE TIME. > BECAUSE I MAY GIVE YOU A SECHEDULE THAT DOES'NT FAVOUR YOU. > > On Tue, 8 Jun 2021 at 16:52, Inside Believer wrote: > >> Sir, I'm from Pakistan at which time y

Re: Help

2021-06-15 Thread Bradie Poa
WE BOTH NEED TO AGREE ON THE TIME. BECAUSE I MAY GIVE YOU A SECHEDULE THAT DOES'NT FAVOUR YOU. On Tue, 8 Jun 2021 at 16:52, Inside Believer wrote: > Sir, I'm from Pakistan at which time you can teach me. > > On Mon, Jun 7, 2021 at 11:29 PM Bradie Poa wrote: > >> try me bro i'll help debug and a

Re: Adding Two Models In Django

2021-06-15 Thread Ridwan Adeyemo
Thanks for the response. Kindly explain more or provide image description. Best regards On Tue, Jun 15, 2021, 8:09 PM patel dhruvish wrote: > Use foreign key in 1 model for initiat another model... > > On Wed, Jun 16, 2021, 00:04 Ridwan Adeyemo > wrote: > >> How do I add two models together in

Re: Adding Two Models In Django

2021-06-15 Thread patel dhruvish
Use foreign key in 1 model for initiat another model... On Wed, Jun 16, 2021, 00:04 Ridwan Adeyemo wrote: > How do I add two models together in the database, two different > DecimalField. > i.e math_score + eng_score = total_score > > -- > You received this message because you are subscribed to

Adding Two Models In Django

2021-06-15 Thread Ridwan Adeyemo
How do I add two models together in the database, two different DecimalField. i.e math_score + eng_score = total_score -- 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 em

Re: How can different django apps on the same project share the same authentification page to log in to the same site ?

2021-06-15 Thread Boris Pérez
Hi Linda, authentication backend is only one for entire site..if any user is authenticated the system recognizes it...no matter if u have only one or multiple authentication pages... Greetings 2021-06-15 11:48 GMT-04:00, linda lebdjiri : > i'm developing a site where there is two users each of th

How can different django apps on the same project share the same authentification page to log in to the same site ?

2021-06-15 Thread linda lebdjiri
i'm developing a site where there is two users each of them have their specific web pages,and they are registerd in separate tables in the data base i've created 2 apps i've already linked each app with the corresponding interfaces ,i've created a templates folder and for each app i've creat

Re: Real-time dashboard method after delivering restapi from outside

2021-06-15 Thread Ryan Nowakowski
On June 14, 2021 1:46:29 AM CDT, "이경현" wrote: >It is currently returning after receiving an api request from another >system. Is this API request to another system initiated from Django on the back end or in JavaScript on the front end? -- You received this message because you are subscri

Re: Real-time dashboard method after delivering restapi from outside

2021-06-15 Thread Derek
At a guess, I'd say you will need Django Channels - many blogs and tutorials out there, but here is one good worked example: https://blog.logrocket.com/django-channels-and-websockets/ On Monday, 14 June 2021 at 15:32:51 UTC+2 lkh...@gmail.com wrote: > It is currently returning after receiving a

Re: Find number of days between two date excluding weekend days and display the number in text field

2021-06-15 Thread Nikeet NA
You need to hit an ajax request to the server on the api when there is change event on the field from were you are taking the second date as input send both first and second date as data in post request to the backend and send the days as response On Tuesday, 15 June 2021 at 15:57:07 UTC+5:30

Re: Github - ( Image formation Issue )

2021-06-15 Thread Sakshi jain
thnxx On Tue, Jun 15, 2021, 17:57 patel dhruvish wrote: > (1) put down your image in static folder > (2) after u want to add {%load static%} > At top of your html page > (3) And last you want to load your image in your html page with > > > I hope it's absolutely work,good luck > > On Mon,

Django channels is auto disconnecting after sending message

2021-06-15 Thread Sudipto Sarker
I am working on a personal chat application in django using django channels. The problem is that after sending message from user1 to user2, *the channels of user1(all connected channels) is auto disconnecting after sending message to chat room, although the message is passed successfully to u

Re: How can i start to learn django?

2021-06-15 Thread anil9...@gmail.com
You can try freecodecamp.org's youtube channel if you like to learn from videos else Django docs are also great. On Sunday, 13 June, 2021 at 7:52:22 pm UTC+5:30 desai...@gmail.com wrote: > I am begginer in python. how can i start to learn django from begginners > to adance. please help me.

Re: Github - ( Image formation Issue )

2021-06-15 Thread patel dhruvish
(1) put down your image in static folder (2) after u want to add {%load static%} At top of your html page (3) And last you want to load your image in your html page with I hope it's absolutely work,good luck On Mon, Jun 14, 2021, 23:02 Nikeet NA wrote: > Move those images to static folde

Re: location based web app with django and geodjango

2021-06-15 Thread Stathis Angelou
Good morning Both and thank you very much for your help, Yes that worked!!? Thank you again, off for the next step!! Kind Regards Stathis On Tuesday, June 15, 2021 at 10:05:16 AM UTC+1 Nikeet NA wrote: > Your app is not registered in settings file as stated by Aritra. > > On Tuesday, 15 June

Re: Find number of days between two date excluding weekend days and display the number in text field

2021-06-15 Thread Eugene TUYIZERE
Dear NA, I accomplished this with numpy. How can I get the value (difference between the two dates) when I select the second date for example in the text field? I know Javascript can be used but how? On Tue, 15 Jun 2021 at 11:14, Nikeet NA wrote: > You need to loop through the dates maintain a

Re: Find number of days between two date excluding weekend days and display the number in text field

2021-06-15 Thread Nikeet NA
You need to loop through the dates maintain a count variable get the weekday for every datetime object with date.weekday() exclude as per your need for days you dont want to count. On Tuesday, 15 June 2021 at 11:30:21 UTC+5:30 eugenet...@gmail.com wrote: > Team, > > I have date1 and date2 field

Re: Django Query vs SQL query

2021-06-15 Thread Nikeet NA
use the related name on the staff model for project field with __ lookup as in class Staff(models.Model): . . project = foreignkey relationship (related_name='staffs') SO the query would be Projects.objects.filter(staffs__project_id=F('pk')) On Tuesday, 15 June 2021 at

Re: Github - ( Image formation Issue )

2021-06-15 Thread Sakshi jain
sure On Tue, Jun 15, 2021, 14:31 Nikeet NA wrote: > Can you show me your code for html where you are adding those images. > > On Tuesday, 15 June 2021 at 10:22:53 UTC+5:30 vn241...@gmail.com wrote: > >> >> image.png >>

Re: location based web app with django and geodjango

2021-06-15 Thread Nikeet NA
Your app is not registered in settings file as stated by Aritra. On Tuesday, 15 June 2021 at 14:22:45 UTC+5:30 arit...@gmail.com wrote: > Hello, > Register your app in setting.py-> INSTALLED_APPS like > 'appname.apps.appnameConfig' from your apps.py. Alternatively, you can > write 'app_name' i

Re: File in nested serializer

2021-06-15 Thread Nikeet NA
Use This Drf nested serializer On Tuesday, 15 June 2021 at 10:48:22 UTC+5:30 narendra...@gmail.com wrote: > Hi Folks, > I'm having a problem to insert a data in nested serializers with > FileField. If anybody know the idea of doing that would yo

Re: Github - ( Image formation Issue )

2021-06-15 Thread Nikeet NA
Can you show me your code for html where you are adding those images. On Tuesday, 15 June 2021 at 10:22:53 UTC+5:30 vn241...@gmail.com wrote: > > image.png > > > > > On Tue, Jun 15, 2021, 10:13 Sakshi jain

Re: location based web app with django and geodjango

2021-06-15 Thread Aritra Ray
Hello, Register your app in setting.py-> INSTALLED_APPS like 'appname.apps.appnameConfig' from your apps.py. Alternatively, you can write 'app_name' instead of the whole sentence. Regards, Aritra. On Tue, 15 Jun 2021 at 05:46, Stathis Angelou wrote: > good evening all, > > I have started buildi

Django Query vs SQL query

2021-06-15 Thread Eugene TUYIZERE
Team, I am a little bit confused: I have a table callect Projects and another called Staffs. I want a particular staff member to view only the project he/she has a role in. In the Staffs table I have a project foreign key project_id. But I am confused about how to construct the query. I think of t

Re: location based web app with django and geodjango

2021-06-15 Thread Stathis Angelou
Good morning Nikeet and thank you for your response, i am afraid i am still not getting the web app yet on my admin page Kind Regards Stathis On Tuesday, June 15, 2021 at 1:27:03 AM UTC+1 Nikeet NA wrote: > Replace admin.site.register(Report) with this @admin.register(Report) > > On Tuesday, 15

Re: location based web app with django and geodjango

2021-06-15 Thread Stathis Angelou
Good morning Nikeet and thank you for your response, i am afraid i am still not getting the web app yet on my admin page Kind Regards Stathis Στις Τρί, 15 Ιουν 2021 στις 1:27 π.μ., ο/η Nikeet NA έγραψε: > > Replace admin.site.register(Report) with this @admin.register(Report) > > On Tuesday, 15

Re: Working with forms

2021-06-15 Thread Williams Andy Inc
for now reason its now showing up thanks. i guess i needed to do hard refresh with f5 although i was using {% now "U" %} On Tue, Jun 15, 2021 at 10:10 AM Williams Andy Inc wrote: > class LoginForm(forms.Form): > username = forms.CharField( > label="Email or Username", > wid

Re: Working with forms

2021-06-15 Thread Williams Andy Inc
class LoginForm(forms.Form): username = forms.CharField( label="Email or Username", widget=forms.TextInput( attrs={ "class": "fas fa-user", "placeholder": "f007 Username or Email", } ), ) the class is not showin

Re: Working with forms

2021-06-15 Thread Williams Andy Inc
Thanks am already trying that, and using that works for adding placeholder, but then it doesn't add a class, if it could add i class i could use the font awesome unicode which would have been the easiest solution. On Tue, Jun 15, 2021 at 9:53 AM Lalit Suthar wrote: > you can try if it can be