Password Reset

2020-01-09 Thread Soumen Khatua
Hi Guys, In Django we have some inbuilt class for password rest and confirmation. But In Django rest framework ,How can I do that? Please share any code snippet or link. Thank you in advance Regards, Soumen -- You received this message because you are subscribed to the Google Groups "Django

Re: Business Opportunity

2020-01-09 Thread Anh Nguyen
Hi, im working with python ~5 years mostly in django. Iam interesting. Please send more info. On Wed, Jan 8, 2020 at 22:17 Philani Mthembu wrote: > 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

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

2020-01-09 Thread Jeremy Wai
going to answer my own question for the sake of anyone who runs into things while learning python: I needed channel redis that can pass messages from one process to another. redis is just a key/value storage server that you can install in ubuntu. On Wednesday, January 8, 2020 at 8:22:11 PM

Re: Writing your first Django app, part 1¶

2020-01-09 Thread Mike Dewhirst
On 10/01/2020 1:09 pm, Garrett Wiseman wrote: Hello Everyone, This may sound stupid. When people know a skill so well. Its sometimes hard to think someone wouldn't know the most basic information. New to coding write code for Arduino. Garrett I fully understand what you are saying.

Writing your first Django app, part 1¶

2020-01-09 Thread Garrett Wiseman
Hello Everyone, This may sound stupid. When people know a skill so well. Its sometimes hard to think someone wouldn't know the most basic information. New to coding write code for Arduino. When your on the - documentation page - Writing your first Django app, part 1¶ .

Channel 1 and Django 2.2 compatibility

2020-01-09 Thread James
Hello guys just a quick question, I have a project running channel 1, we are looking at upgrading to django 2.2, does channel 1 work with django 2.2 without upgrading to channel 2? Cheers James -- You received this message because you are subscribed to the Google Groups "Django users"

Re: System to check field change in Char Field and Text Field.

2020-01-09 Thread KONE GOMPOU LOUA ALASSANE
225 47389778 Add me in the whatsapp group Le sam. 14 déc. 2019 à 21:44, Sudipto Ghosh a écrit : > Hello everyone, I am stuck in solving an assignment. I would be grateful > to you all whosoever can help me in this memory. > > I have to make a system which shows the updated text file and

Re: Admin Panel

2020-01-09 Thread Motaz Hejaze
search github for vali admin panel On Thu, Jan 9, 2020 at 9:01 PM APIJAY SHARMA wrote: > Can anyone help me out with good looking admin panels and how to customize > it and if possible how to make it more reliable!!! I am just getting > frustrated with admin issues in most of the modules > >

Re: Csrf_exempt

2020-01-09 Thread Soumen Khatua
can you tell me How Can I do that? Is it necessary ton use csrf_exempt in APIView for login operation or signup operation? On Fri, Jan 10, 2020 at 12:30 AM Riyasutheen A wrote: > Hi, > > Use postman interceptor extension in your browser to get correct csrf > token in postman as well. > >

Re: Csrf_exempt

2020-01-09 Thread Riyasutheen A
Hi, Use postman interceptor extension in your browser to get correct csrf token in postman as well. Thanks On Thu, 9 Jan, 2020, 11:49 PM Soumen Khatua, wrote: > post method is working on browser but I'm getting the error in post man? > > On Thu, Jan 9, 2020 at 10:27 PM Integr@te System >

Admin Panel

2020-01-09 Thread APIJAY SHARMA
Can anyone help me out with good looking admin panels and how to customize it and if possible how to make it more reliable!!! I am just getting frustrated with admin issues in most of the modules -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Csrf_exempt

2020-01-09 Thread Soumen Khatua
post method is working on browser but I'm getting the error in post man? On Thu, Jan 9, 2020 at 10:27 PM Integr@te System wrote: > Hi Sounen, > > Inspect this link for which type and setting you like to work with. > >

Re: Csrf_exempt

2020-01-09 Thread Integr@te System
Hi Sounen, Inspect this link for which type and setting you like to work with. https://www.django-rest-framework.org/api-guide/authentication/#sessionauthentication Nice. On Thu, Jan 9, 2020, 22:25 Soumen Khatua wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: Make a Django query filter at runtime

2020-01-09 Thread Ezequias Rocha
It worked well. Many thanks. On Wednesday, January 8, 2020 at 10:08:18 PM UTC-3, Alex Conselvan de Oliveira wrote: > > 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,

Re: Django Validation error

2020-01-09 Thread Soumen Khatua
what you want to modify? On Thu, Jan 9, 2020 at 7:07 PM Wesley Montcho wrote: > Hello > Thanks for helping me > I want to ask you something else, Should I create serializer.py or it is > some file I can modify > > Le jeu. 9 janv. 2020 à 13:59, Suraj Thapa FC a > écrit : > >> Use try catch and

Re: ModuleNotFoundError: No module named 'datetime'

2020-01-09 Thread bhushan Gupta
Hello Kasper, thanks for following up. I installed Datetime module using pip. The module is there but still the same error. Looks like a setup error. Here is the pip output: asgiref==3.2.3 DateTime==4.3 Django==3.0.1 pytz==2019.3 pywin32==227 sqlparse==0.3.0 virtualenv==16.7.8

Re: Csrf_exempt

2020-01-09 Thread Soumen Khatua
*class LoginView(APIView):# permission_classes = (AllowAny,)def post(self, request, format=None):data = request.dataemail = data.get('email',None)password = data.get('password',None) phone_number = data.get('phone_number')if email is not None: if '@' in

Re: Csrf_exempt

2020-01-09 Thread Suraj Thapa FC
Code...? On Thu, 9 Jan 2020, 8:40 pm Soumen Khatua, wrote: > Hi Folks, > > In django rest framework,I extend the LoginApiView(APIView) but when I'm > passing username and password in browser it logn successfully but in post > man I'm getting : > > > *{"detail": "CSRF Failed: CSRF token

Csrf_exempt

2020-01-09 Thread Soumen Khatua
Hi Folks, In django rest framework,I extend the LoginApiView(APIView) but when I'm passing username and password in browser it logn successfully but in post man I'm getting : *{"detail": "CSRF Failed: CSRF token missing or incorrect."}* Do I need to use csrf_exempt inside APIView(post)

Re: Django Makemigration Error Can't Serialize

2020-01-09 Thread Caique Reinhold
The problem is on the on_delete=models.SET() lines. The models.SET() option does not accept field declarations. It should be given a method or a queryset that must return an instance of the relationship model. You can read more about how to use SET in the documentation:

Calculated fields and ordering

2020-01-09 Thread Manos Zeakis
I have created a calculated field in models.py <…> @property def final_score(self): return (100.0 * self.a) /(1 + 0.1 * self.b) <…> And declare it in admin.py <…> @admin.register(Project) class TaskAdmin(admin.ModelAdmin): fields = (<...>,

Re: Django Validation error

2020-01-09 Thread Wesley Montcho
Hello Thanks for helping me I want to ask you something else, Should I create serializer.py or it is some file I can modify Le jeu. 9 janv. 2020 à 13:59, Suraj Thapa FC a écrit : > Use try catch and send whatever response you want to send > > On Wed, 8 Jan 2020, 10:36 pm Soumen Khatua, >

Re: Dajgo Validation error

2020-01-09 Thread Suraj Thapa FC
Use try catch and send whatever response you want to send On Wed, 8 Jan 2020, 10:36 pm Soumen Khatua, wrote: > > *seriazlizers.py* > > > > > > > *email = > serializers.EmailField(required=True,validators=[UniqueValidator(queryset=User.objects.all())]) > phone_number =

Django Makemigration Error Can't Serialize

2020-01-09 Thread Wesley Montcho
Hello everyone, I'm a beginner in coding and i choose python, like my favorite. I am interresting myself to python frameworks, and technologies, and I'm trying to have knoweldge in web develoment through django; But, recently i have some error of migration in my django project that i

Re: Request for an internship

2020-01-09 Thread neha somani
Can u pl send me your detailed CV On Thu, 9 Jan 2020, 9:48 am Bryan Maxx, wrote: > 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

Re: Training course and/or job

2020-01-09 Thread sagar podilapu
Hi Red, Are you looking for a free course or a paid one? There are plenty of free resources on youtube. I like Corey Schafer tutorial on youtube. On Udemy, you will find the courses but I did not see a difference between them and youtube. If you would like to have a mentor based learning where

Django integration with node js

2020-01-09 Thread Muhammed RAFI A
Django integration with node js for any reference -- 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

Re: Make a Django query filter at runtime

2020-01-09 Thread Ezequias Rocha
Thank you very much Alex and Shaheed, but if I want to use the *>, >= <, <=* how do do that? On Wednesday, January 8, 2020 at 10:08:18 PM UTC-3, Alex Conselvan de Oliveira wrote: > > Hi Ezequias, > > You could use a dict: > > data = { > 'name': 'John', > 'age': 42, > } > >

Re: DRF

2020-01-09 Thread Mandeep Tondak
Yes On Thu, Jan 9, 2020, 2:55 PM Soumen Khatua wrote: > if i'm using serializers still i need to do that? > > > On Thu, Jan 9, 2020 at 2:39 PM Mandeep Tondak > wrote: > >> Hi, >> >> You need to import json then you can do like this >> >> import json >> data_json =

Re: Training course and/or job

2020-01-09 Thread Debora Peralta
Hi red, I might help if you are willing to pay a course. Contact me for more details. Kind regards, Debora. El El jue, 9 ene 2020 a las 8:49, red escribió: > Hello, > > I’m a 27 years old french guy and a Django beginner. I have a mechanical > engineering and a computer science degree, but

Re: DRF

2020-01-09 Thread Soumen Khatua
if i'm using serializers still i need to do that? On Thu, Jan 9, 2020 at 2:39 PM Mandeep Tondak wrote: > Hi, > > You need to import json then you can do like this > > import json > data_json = json.loads(request.body.decode('utf-8')) > > * decode('utf-8') if you are using python 3 > > Thanks

Re: DRF

2020-01-09 Thread Mandeep Tondak
Hi, You need to import json then you can do like this import json data_json = json.loads(request.body.decode('utf-8')) * decode('utf-8') if you are using python 3 Thanks On Thu, Jan 9, 2020 at 1:01 PM Soumen Khatua wrote: > Hi Folks, > > *If I'm sending data into json format like this:* >

Training course and/or job

2020-01-09 Thread red
Hello, I’m a 27 years old french guy and a Django beginner. I have a mechanical engineering and a computer science degree, but in web development specifically, I’m a self-learner. I really do love Django and would like to become a professional web backend developer, or possible full stack, since