Re: template is not visible properliy

2021-02-28 Thread Sky Lord
Hello am new noob, anyone guide or take me as student? On Sun, Feb 28, 2021, 6:02 AM Mr. X Offencer wrote: > Bro show me your file structure. > > On Sun, 28 Feb 2021, 02:56 Kasper Laudrup, wrote: > >> On 27/02/2021 12.19, Mayursinh Raulji wrote: >> >i have download template from google and

Re: Class Base View Foreign key

2021-02-28 Thread Sky Lord
What's that, am new please On Sat, Feb 27, 2021, 4:47 PM Rob Wilkinson wrote: > This is what my code looks like and it now works : > > see where it says "example of setting pk..." below: > > def dyn_menu_new(request): > > from .models import menu as menuX > > from .models import buttons

Re: template is not visible properliy

2021-02-28 Thread Kasper Laudrup
On 28/02/2021 12.53, Sky Lord wrote: Hello am new noob, anyone guide or take me as student? Start by learning how to create a new post instead of just doing random responses to unrelated threads. Assuming you're using Google groups, this should be a start: https://support.google.com/groups

Conseil et Guide

2021-02-28 Thread Michel Mahomy
Bonjour M./M.., je suis Michel MAHOMY développeur débutant en Django. Je voudrais savoir est-ce possible de faire de l'intelligence artificielle en Django ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Conseil et Guide

2021-02-28 Thread Richard Dushime
mr jean michel selon moi django est pour le web devellopement en utilisant python pour rendre facile quelque task et d n est pas repeter les codes ecrit beaucoup des fois thank you On Sun, Feb 28, 2021 at 6:33 PM Michel Mahomy wrote: > Bonjour M./M.., je suis Michel MAHOMY développeur débutant

Re: Log out all sessions for current user logged in

2021-02-28 Thread Salima Begum
New code for logging out all sessions of logged in users. ``` # Logout all devices in account security page. def logoff_all(request): try: # Filtering all session objects. session_query = Session.objects.all() # Iterating session_query and fetching session key.

How add raw query in a Model

2021-02-28 Thread Asaduzzaman Sohel
this is query: ``` sub_query = PaymentDetails.objects.filter(order=OuterRef('pk')).order_by('-updated_at')[:1] payment_summary = """select jsonb_build_object( 'total_paid_amount', coalesce(sum(amount), 0), 'total_due_amount', CASE WHEN (order_order.total_gross - coalesce(sum(amount), 0)) > 0.02 t