Re: Question on migrations vs postgres database

2020-06-12 Thread Integr@te System
Hi Ram, Plz check line #44 in reset_migrations.py try replace square bracket by percent sign. Or check temp file before your actions execute commands migration. Goodluck. On Sat, Jun 13, 2020, 12:31 PM Ram wrote: > Hi, > > We clone our project repository from GIT hub and deployed our web > ap

Question on migrations vs postgres database

2020-06-12 Thread Ram
Hi, We clone our project repository from GIT hub and deployed our web application in our development server in the past. The application was working fine in the past. Now we merged our new features into the same repository which has new models in our models.py. When we merged the changes into the

Re: Realtime reading data

2020-06-12 Thread karan rathore
You can use Django Channels and use WebSockets to connect. Also, you can integrate Django Channels with MQTT protocol On Fri, Jun 12, 2020 at 5:52 PM Sonia Ayachi wrote: > how python / django can read the state of a sensor in real time? I would > like to read the state of my PIR sensor in real t

Re: Best Django Rest Framework Tutorial??????

2020-06-12 Thread Siratim Mustaquim
@chaitanya orakala Why are you looking for the best one! that's a wrong search term, If u want to understand thoroughly: go through the documentation of REST and Django-REST if u are having trouble implementing: watch any youtube video along with the Documentation if you are in a tight schedule: J

Re: Best Django Rest Framework Tutorial??????

2020-06-12 Thread akshatization .
Hello, IMO there is nothing better than Django rest framework's official documentation. It clearly explains every concept pretty neatly. Thanks On Sat, Jun 13, 2020, 7:01 AM Samuel Nogueira wrote: > Hi! > > In my personal exprience i’ve been learning throught a udemy course, and > it helped me

RES: Best Django Rest Framework Tutorial??????

2020-06-12 Thread Samuel Nogueira
Hi!In my personal exprience i’ve been learning throught a udemy course, and it helped me a lot. Maybe it will not be usefull to you since the language is portuguese, but i’m sure you can find some in english or your native language Enviado do Email para Windows 10 De: David ZeaEnviado:sexta-feira,

Re: Django, GraphQL and React Native

2020-06-12 Thread Walid Kambagha
Is the error occur when using emulator or real device? On Sat, 13 Jun 2020 at 01:43, ADEWALE ADISA wrote: > can you show your graphene code ? > > On Fri, 12 Jun 2020, 15:39 ndifreke umoren, > wrote: > >> @Waled thanks for your response. That's exactly what I did but I keep >> having no data sen

Re: Best Django Rest Framework Tutorial??????

2020-06-12 Thread David Zea
Hola, este es un tutorial en la pagina oficial de REST. Hi, this is a tutorial on official page of REST. https://www.django-rest-framework.org/tutorial/1-serialization/ El vie., 12 jun. 2020 a las 17:43, chaitanya orakala (< chaitu.orak...@gmail.com>) escribió: > Thank You guys...

Re: Django, GraphQL and React Native

2020-06-12 Thread ADEWALE ADISA
can you show your graphene code ? On Fri, 12 Jun 2020, 15:39 ndifreke umoren, wrote: > @Waled thanks for your response. That's exactly what I did but I keep > having no data sent back. I tested my API with graphiql and it works > perfectly but on React Native, I keep getting "Network Error: Netw

Re: Best Django Rest Framework Tutorial??????

2020-06-12 Thread chaitanya orakala
Thank You guys... On Fri, Jun 12, 2020 at 4:18 PM Rupesh Dahal wrote: > I would suggest the DRF documentation itself. > > On Thu, Jun 11, 2020 at 8:12 PM chalist wrote: > >> I like this channel. Maybe you like, too: >> >> https://www.youtube.com/watch?v=XMu0T6L2KRQ >> >> On

Re: Collapsible list menu with Django

2020-06-12 Thread Luciano Martins
Search by crispy -- 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 view this discussion on the web visit https://gr

Re: Best Django Rest Framework Tutorial??????

2020-06-12 Thread Rupesh Dahal
I would suggest the DRF documentation itself. On Thu, Jun 11, 2020 at 8:12 PM chalist wrote: > I like this channel. Maybe you like, too: > > https://www.youtube.com/watch?v=XMu0T6L2KRQ > > On Thu, 11 Jun 2020 at 15:04, Mohamed SAMAKE > wrote: > >> https://agiliq.com/blog/2019/04/drf-polls/ >> >

advice on role management in django

2020-06-12 Thread cosmos multi
I am trying to work with a role system that allows from the user registry, select the role to which you want to belong, the problem is that I do not get the best way to do it because when I want to do validations it generates many errors, investigating a bit I realized that the groups are more

How to pass the extra argument to an existing formset

2020-06-12 Thread 'MH' via Django users
Hi I have a formset that is created by an inline formset factory. So, I have seen that during the creation I can pass the extra argument in order to create more blank forms. Fine :) But I also have the case where I want to pre-populate a formset based on entries in the database. In a way I tho

Re: Django, GraphQL and React Native

2020-06-12 Thread ndifreke umoren
@Waled thanks for your response. That's exactly what I did but I keep having no data sent back. I tested my API with graphiql and it works perfectly but on React Native, I keep getting "Network Error: Network failed" error. I'd love all the help I can get solving this problem. Thanks. On Friday

Re: I need help on Keycloak with django

2020-06-12 Thread Kasper Laudrup
Hi Raghavendra, On 12/06/2020 12.00, Raghavendra AK wrote: I'm training to implement keycloak with django using https://github.com/jhuapl-boss/boss-oidc but getting error : *Could not import 'path.to.function' for API setting 'LOAD_USER_ROLES'. ModuleNotFoundError: No module named 'path'* * *

Re: Error running Django tutorial

2020-06-12 Thread temitope iyanoye
I’m using Django 3.0 and I have this same issue following the official Django tutorial, has anyone been able to fix it? Please I need help, thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Contact() got an unexpected keyword argument 'fname'

2020-06-12 Thread José Zuñiga
Try using the call of model Contact like this: contact = Contact.objects.create(vars...) in vars use the same inputs. On Thursday, June 11, 2020 at 1:02:49 PM UTC-4, R D Saini wrote: > > [image: Screenshot (39).png] > please my help me this error solved > -- You received this message because

Realtime reading data

2020-06-12 Thread Sonia Ayachi
how python / django can read the state of a sensor in real time? I would like to read the state of my PIR sensor in real time with python . Ajax does not work . Is there any solution ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

I need help on Keycloak with django

2020-06-12 Thread Raghavendra AK
I'm training to implement keycloak with django using https://github.com/jhuapl-boss/boss-oidc but getting error : *Could not import 'path.to.function' for API setting 'LOAD_USER_ROLES'. ModuleNotFoundError: No module named 'path'* I really appreciate your help or any sample code -- You receiv

Re: how to use session ???

2020-06-12 Thread Kasper Laudrup
Hi Meera, On 12/06/2020 12.55, meera gangani wrote: I am new in django How can i use session in this views.py file Try to explain more in details what you mean by "use session", then you'll have a much better chance of getting some help. Kind regards, Kasper Laudrup -- You received this

Re: makemessages - unable to find a locale path

2020-06-12 Thread Aldian Fazrihady
makemessages should still extract texts from code and put it in po files and store the po files somewhere? Or should it do nothing? On Fri, Jun 12, 2020 at 4:03 PM Kai Kobschätzki wrote: > No error message anymore :) > On 6/12/20 11:00 AM, Aldian Fazrihady wrote: > > After django "forget" the di

Re: How to add a button to Django Admin user menu (the one with logout, change password, ...) ? [SOLVED]

2020-06-12 Thread Olivier
It seems django-admin-tools is doing what I was after, and more. If a django-admin-tools-enabled admin site could peacefully co-exists with classical admin site, then it would be perfect. Le vendredi 12 juin 2020 10:31:43 UTC+2, Olivier a écrit : > > Hello, > > When logged into Django Admin, I c

Re: makemessages - unable to find a locale path

2020-06-12 Thread Kai Kobschätzki
No error message anymore :) On 6/12/20 11:00 AM, Aldian Fazrihady wrote: > After django "forget" the directory, what do you expect makemessages > to do? > > On Fri, Jun 12, 2020 at 3:41 PM Kai Kobschätzki > mailto:kai.kobschaet...@gmail.com>> wrote: > > Hi Aldian, > > thanks for your respo

Re: makemessages - unable to find a locale path

2020-06-12 Thread Aldian Fazrihady
After django "forget" the directory, what do you expect makemessages to do? On Fri, Jun 12, 2020 at 3:41 PM Kai Kobschätzki wrote: > Hi Aldian, > > thanks for your response! > > I do not want a new folder. I removed a folder and the localization don't > accept it.. > > Greetings > > bengoshi > >

Re: Contact() got an unexpected keyword argument 'fname'

2020-06-12 Thread Kasper Laudrup
Hi RD. I can't remember all the scoping rules of Python, but you most likely try construct an instance of Contact from your views, not your model (ie. the same class where your call is failing). Consider renaming your Contact view class to ContactView or change your import from model and use

Re: makemessages - unable to find a locale path

2020-06-12 Thread Kai Kobschätzki
Hi Aldian, thanks for your response! I do not want a new folder. I removed a folder and the localization don't accept it.. Greetings bengoshi On 6/12/20 10:26 AM, Aldian Fazrihady wrote: > Hi, > > you need to set LOCALE_PATHS in the settings file point to your new > folder. > For example, > L

How to add a button to Django Admin user menu (the one with logout, change password, ...) ?

2020-06-12 Thread Olivier
Hello, When logged into Django Admin, I can see a header on view top with: - "Django Administration" on the left - 4 items on the right + "welcome Foo" + "View site" link + "Change password" + "Logout" I want to a add a styled "Deploy" button, anywhere inside this header, so that, after editing

Re: makemessages - unable to find a locale path

2020-06-12 Thread Aldian Fazrihady
Hi, you need to set LOCALE_PATHS in the settings file point to your new folder. For example, LOCALE_PATHS = [os.path.join(BASE_DIR, 'new_locale')] On Fri, Jun 12, 2020 at 3:08 PM Kai Kobschätzki wrote: > Hi all, > > I have some *.po files. But now I am getting the message error „Unable > to f

makemessages - unable to find a locale path

2020-06-12 Thread Kai Kobschätzki
Hi all, I have some *.po files. But now I am getting the message error „Unable to find a locale path to store translations for file $directory“. All I find with google is that I have to create a subdirectory locale in the $directory. But I removed the $directory, so I can't or I do not want to re