DRF

2020-01-08 Thread Soumen Khatua
Hi Folks, *If I'm sending data into json format like this:* *{ "name":"soumen","password":"@sou123"}* *but in my python class,If doing something like this:* *type(request.data.get("name") #<'class Dict'> * *How it is possible without using serializer,How I can do access json data diresctly?*

Re: I'm struggling with Django's view directory structure.

2020-01-08 Thread Scot Hacker
That is entirely up to you. The typical scenario is that you have one views module per app in your project, which would live at your `yourapp/views.py`. If your app has lots of views and you want to keep it from getting too large, another common pattern is to have one module per view in a

How do I make my webhook object run a websocket function?

2020-01-08 Thread Jeremy Wai
I got a heroku server running on one web processing, in the routing.py I have application = ProtocolTypeRouter({ 'websocket': backEndConsumer, 'http': frontEndConsumer, }) my frontEndConsumer handles the http webhook requests and my backEndConsumer handles all my

Request for an internship

2020-01-08 Thread Bryan Maxx
I'm looking for an internship in the field of ICT,IT,MEDICINE, and PHYSICS. Incase you can offer or know of one, kindly inform me. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

How do I make my webhook run a function in websocket?

2020-01-08 Thread Jeremy Wai
theisnfksdnflksd why does this not work when i have my actual post? -- 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.

Re: Django for beginers

2020-01-08 Thread jose angel encinas ramos
this is the documentation, is very useful https://docs.djangoproject.com/en/3.0/ https://www.valentinog.com/blog/drf/ El mié., 8 ene. 2020 a las 18:08, KULDEEP SHARMA (< onshadeeprmaald1...@gmail.com>) escribió: > How and where can we find the Django doc. And how can we llink Python with >

Re: Make a Django query filter at runtime

2020-01-08 Thread Alex Conselvan de Oliveira
Hi Ezequias, You could use a dict: data = { 'name': 'John', 'age': 42, } model.filter(**data) Best Regards! Em qua., 8 de jan. de 2020 às 18:09, Ezequias Rocha < ezequias.ro...@gmail.com> escreveu: > Hi everyone > > I am in a doubt about creating django filters dynamically. > > All you

Django for beginers

2020-01-08 Thread KULDEEP SHARMA
How and where can we find the Django doc. And how can we llink Python with our reactjs. -- 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

Re: Make a Django query filter at runtime

2020-01-08 Thread Shaheed Haque
On Wed, 8 Jan 2020 at 20:09, Ezequias Rocha wrote: > Hi everyone > > I am in a doubt about creating django filters dynamically. > > All you know a filter is made by using the parameters like: > > model.filter(name='John', age=42) > > But if I can't type all fields and values at design time but

Error in admin page- TemplateSyntaxError at /admin/login/

2020-01-08 Thread Body Abdo
Dear all , I've error when accesses in admin page : 'admin_static' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls cache django_ajax_tags i18n import_export_tags l10n log static tags tz -- You received this message because you are subscribed to the Google

When I use requests test loginView, return 302 and response header set-cookie , in sessionid line, there are always have a "SameSite=Lax," before sessionid string. This causes client cookies parser pr

2020-01-08 Thread bjxyys XIN
{set-cookie: csrftoken=dsEtx2CP6rX5bhIbRmkTOv5LmciytID5t6ShQbgNMTALTnhCoXdxWQ1TcAzxQoDO; expires=Wed, 06 Jan 2021 17:01:00 GMT; Max-Age=31449600; Path=/; SameSite=Lax,sessionid=2rtrkbnhc8m30iqs7sw4em014hr6a3ss; expires=Wed, 22 Jan 2020 17:01:00 GMT; HttpOnly; Max-Age=1209600; Path=/;

Make a Django query filter at runtime

2020-01-08 Thread Ezequias Rocha
Hi everyone I am in a doubt about creating django filters dynamically. All you know a filter is made by using the parameters like: model.filter(name='John', age=42) But if I can't type all fields and values at design time but at runtime how to do that? Best regards Ezequias -- You received

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
Yup! that works  Thank you so much El miércoles, 8 de enero de 2020, 13:26:22 (UTC-5), Alfredo Silveira escribió: > > Yes, python version 3.8 not Django > > > > On 8 Jan 2020, at 13:13, Cristhiam Gabriel Fernández > wrote: > >  > 3.8? 樂 > Did you mean 2.2.8? > Yes, 2.2.8 works fine. > > El

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
Awesome! upgrade python to 3.8 and django works again  Thank you so much El miércoles, 8 de enero de 2020, 11:30:18 (UTC-5), Jasim Ak escribió: > > Update your Python to version 3.8. > > Met with the same issue and this worked for me. > > On Wed, 8 Jan 2020, 21:43 Cristhiam Gabriel Fernández, <

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Alfredo Silveira
Yes, python version 3.8 not Django > On 8 Jan 2020, at 13:13, Cristhiam Gabriel Fernández > wrote: > >  > 3.8? 樂 > Did you mean 2.2.8? > Yes, 2.2.8 works fine. > > El miércoles, 8 de enero de 2020, 3:11:14 (UTC-5), Alfredo Silveira escribió: >> >> Try update your python version to 3.8 >>

Re: Dajgo Validation error

2020-01-08 Thread Soumen Khatua
*seriazlizers.py* *email = serializers.EmailField(required=True,validators=[UniqueValidator(queryset=User.objects.all())]) phone_number = serializers.CharField(required = True,validators=[UniqueValidator(queryset=User.objects.all())])password =

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Jasim Ak
Update your Python to version 3.8. Met with the same issue and this worked for me. On Wed, 8 Jan 2020, 21:43 Cristhiam Gabriel Fernández, < cristhiang...@gmail.com> wrote: > 3.8? 樂 > Did you mean 2.2.8? > Yes, 2.2.8 works fine. > > El miércoles, 8 de enero de 2020, 3:11:14 (UTC-5), Alfredo

Re: Necessary to learn React/ Angular with backend Django

2020-01-08 Thread Balaji Shetty
Hello Dear Community Thank you very much for your nice reply. Definitely your guidance will help me a lot. On Wednesday, January 8, 2020, Integr@te System wrote: > Hi Shetty, > > You also consider your project serve local users, so unnecessary implement > high interactive pages from internet

Re: Dajgo Validation error

2020-01-08 Thread Suraj Thapa FC
For email you can set email field in model as unique=True and the password should be stored in hash.. On Wed, 8 Jan 2020, 9:37 pm Soumen Khatua, wrote: > Hi Folk, > > What is the process to validate fields in django rest framework? > like email and phone number should be unique and password

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
3.8? 樂 Did you mean 2.2.8? Yes, 2.2.8 works fine. El miércoles, 8 de enero de 2020, 3:11:14 (UTC-5), Alfredo Silveira escribió: > > Try update your python version to 3.8 > > > > On 8 Jan 2020, at 03:59, Gil Obradors > > wrote: > >  > Oh yes, sorry, i didnt read right... > > Mn, no more output

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
No, no more output in terminal. I'm using Visual Studio Code. I'm using pipenv also. Django 2.2.9 works fine. El miércoles, 8 de enero de 2020, 1:59:21 (UTC-5), Gil Obradors escribió: > > Oh yes, sorry, i didnt read right... > > Mn, no more output to paste? > Do you use an IDE? > > i have django

Dajgo Validation error

2020-01-08 Thread Soumen Khatua
Hi Folk, What is the process to validate fields in django rest framework? like email and phone number should be unique and password should be alphanumeric character only. Where i need to write the logic inside serializers or views part and how i can do that? Thank you in advance Regards,

Business Opportunity

2020-01-08 Thread Philani Mthembu
Hi, All I am a co-founder for Digital Tech Proz (Pty)Ltd, It's a startup web development agency, I am looking for an experienced programmer to work with my company to develop web apps, Mobile apps, and website development. You must be experienced working with Django, PHP, Laravel, HTML5,

Re: Intern

2020-01-08 Thread Rahul Kumar
Hi Arjun, Give me a call at 8368529459. Regards, Amit Paul On Mon, Dec 23, 2019 at 11:23 PM Arjun Baidya wrote: > I have completed Bsc in CSE. I have good knowledge about python language > and machine learning algorithms. > Now I need a intern job opportunity which i can grow my skill. > Thanks

Re: Authentication of Zendesk

2020-01-08 Thread Kasper Laudrup
On 08/01/2020 12.55, Saswat Ray wrote: Thanks Kasper. You're more than welcome. Be warned that I haven't tried this and have zero experience with zendesk, but that's what I would look into if I were you. Good luck. Kind regards, Kasper Laudrup -- You received this message because

Re: Authentication of Zendesk

2020-01-08 Thread Saswat Ray
Thanks Kasper. *Thanks*, *Saswat* On Wed, Jan 8, 2020 at 4:39 PM Kasper Laudrup wrote: > Hi Saswat, > > On 08/01/2020 11.52, Saswat Ray wrote: > > Hi I want to authenticate Zendesk with my apps.Anyone know how to do in > > DJANGO > > > > Zendesk seems to support OAuth: > > >

Re: Authentication of Zendesk

2020-01-08 Thread Kasper Laudrup
Hi Saswat, On 08/01/2020 11.52, Saswat Ray wrote: Hi I want to authenticate Zendesk with my apps.Anyone know how to do in DJANGO Zendesk seems to support OAuth: https://support.zendesk.com/hc/en-us/articles/203663836-Using-OAuth-authentication-with-your-app Combining that with Django

Authentication of Zendesk

2020-01-08 Thread Saswat Ray
Hi I want to authenticate Zendesk with my apps.Anyone know how to do in DJANGO *Thanks*, *Saswat* -- 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

SQLDecodeError at /accounts/sign-up/ FAILED SQL: SELECT

2020-01-08 Thread nelson mudanya
am getting this error when using mongoengine djongo, help -- 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

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Alfredo Silveira
Try update your python version to 3.8 > On 8 Jan 2020, at 03:59, Gil Obradors wrote: > >  > Oh yes, sorry, i didnt read right... > > Mn, no more output to paste? > Do you use an IDE? > > i have django 2 and 3 working without this behaveor > > Have you introduced changes to admin? > > >