Re: Social Authentication

2021-03-10 Thread Ashutosh Mishra
unable to achieve what i want,can you share some more resource On Wednesday, March 10, 2021 at 6:47:56 PM UTC+5:30 christian...@gmail.com wrote: > https://www.toptal.com/django/integrate-oauth-2-into-django-drf-back-end > > > On Tue, 9 Mar 2021 at 17:19, Ashutosh Mishra > wro

Social Authentication

2021-03-09 Thread Ashutosh Mishra
I want to create a social authentication system in django rest framework,without frontend using custom user model. Can someone share some material or link from where i can learn how to do this?? -- You received this message because you are subscribed to the Google Groups "Django REST framework

Geofencing

2021-03-03 Thread Ashutosh Mishra
I want to get all the objects in a radius, suppose i want to get all the restaurant available around 3km radius of my current location How can i achieve in django, can anyone suggestme some post or article -- You received this message because you are subscribed to the Google Groups "Django REST

HOW TO GET DATA FROM PARENT MODEL

2021-02-25 Thread Ashutosh Mishra
class Category(models.Model): name = models.CharField(max_length=100,null=True,blank=True) def __str__(self): return str(self.name) class Items(models.Model): name = models.CharField(max_length=100) category = models.ForeignKey(Category,on_delete=models.CASCADE ,related_name='items') def __str__

How to update product details in database by excel sheet?

2020-11-17 Thread Ashutosh Mishra
It's urgent I have a task, How to Update a product Price in our database from excel sheet for eg i have a product name ABC on my website, i want to update that price from an excel sheet models.py class Product(models.Model): product_name=models.CharField(max_length=255,blank=True,null=True) pro

Download images on pdf file

2020-11-09 Thread Ashutosh Mishra
class Photo(models.Model): image1=models.FileField(blank=True, default="",upload_to="media/images",null=True) image2=models.FileField(blank=True, default="",upload_to="media/images",null=True) def __str__(self): return str(self.image1) i want to download images from both fields image1 and image

Token authentication

2020-11-07 Thread Ashutosh Mishra
Hello guys I have a task.I have an authentication model in which there is a custom user model and nurse model,email and password will store in custom user model rest details of the nurse will store in the nurse model,and token will be generated.I am unable to figure out how can i do this,i am a

Re: 'Article' object is not iterable ,why this error is popping up,while fetching data using primary no

2020-11-04 Thread Ashutosh Mishra
of objects. You provide a single object; hence you get an > error about argument not being iterable. > > On Wed, Nov 4, 2020 at 1:32 AM Ashutosh Mishra < > ashutoshmishra...@gmail.com> wrote: > >> I want to fetch a particular entry by using primary key,suppose if I put &g

Re: 'Article' object is not iterable ,why this error is popping up,while fetching data using primary no

2020-11-03 Thread Ashutosh Mishra
I want to fetch a particular entry by using primary key,suppose if I put 1 the entry associated with 1 will appear On Wed 4 Nov, 2020, 12:01 Xavier Ordoquy, wrote: > The question is, what are you trying to do and what outcome are you > expecting ? > > Le 4 nov. 2020 à 07:28, Ashuto

Re: 'Article' object is not iterable ,why this error is popping up,while fetching data using primary no

2020-11-03 Thread Ashutosh Mishra
rd which means the serializer will expect an > iterable of Articles as the error suggests. > > Regards, > Xavier O. > Linovia. > > > Le 4 nov. 2020 à 07:03, Ashutosh Mishra a > écrit : > > whenever i try to fetch data usinng primary key,getting above er

Re: ASSERTION ERROR

2020-10-26 Thread Ashutosh Mishra
so do i need to add serializer_class every where i have put serializer? On Monday, October 26, 2020 at 9:32:56 PM UTC+5:30 beignet...@gmail.com wrote: > > in RegisterApi add serializer_class=RegisterSerializer , model = Nurse and > queryset or get_queryset > On Monday, 26 October 2020 at 14:24:

ASSERTION ERROR

2020-10-26 Thread Ashutosh Mishra
getting error=RegisterAPI' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method models.py: class Nurse(models.Model): name = models.CharField(max_length=255, null=False) email = models.CharField(max_length=255, null=False) nurseid = models.CharFiel

Password Validation Link

2020-10-24 Thread Ashutosh Mishra
I have some fields related to user,i need to send validation link to user email ,link opens a web page to enter password twice for comlete registration.Later user can log in through this password.Anyone? -- You received this message because you are subscribed to the Google Groups "Django REST

Re: Not getting the URL of Update api

2020-10-14 Thread Ashutosh Mishra
I am getting the url while printing it On Wed 14 Oct, 2020, 14:07 Ashutosh Mishra, wrote: > buddy i have tried the way i have coded,i have got results too,but today i > am not getting > > On Wednesday, October 14, 2020 at 9:45:28 AM UTC+5:30 rsalg...@gmail.com > wrote:

Check the link below

2020-10-14 Thread Ashutosh Mishra
https://stackoverflow.com/questions/64349822/not-getting-the-url-of-update-api-in-django -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fra

Re: Not getting the URL of Update api

2020-10-14 Thread Ashutosh Mishra
wSet instead of ViewSet. > > On Wednesday, October 14, 2020 at 9:24:57 AM UTC+5:30 > ashutosh...@gmail.com wrote: > >> can anyone see my code through teamviewer ? >> >> >> On Monday, October 12, 2020 at 11:34:54 PM UTC+5:30 matemat...@gmail.com >> wrote: &

Re: Not getting the URL of Update api

2020-10-13 Thread Ashutosh Mishra
can anyone see my code through teamviewer ? On Monday, October 12, 2020 at 11:34:54 PM UTC+5:30 matemat...@gmail.com wrote: > On Mon, Oct 12, 2020 at 6:52 AM Ashutosh Mishra > wrote: > >> I have create update api in django,but i am not getting its api link in >> postma

Not getting the URL of Update api

2020-10-12 Thread Ashutosh Mishra
I have create update api in django,but i am not getting its api link in postman urls.py from rest_framework.routers import DefaultRouter from doctor import views from .views import* router=DefaultRouter() router.register(r'Patient', views.PatViewSet, basename='PatViewSet') router.register(r'Sch',

Doctor appointment

2020-10-06 Thread Ashutosh Mishra
I have a schedule model in which there is a doctor and his STARTING_TIME and CLOSING_TIM ARE 10am to 6pm.So how can i give 15 minute slots to the patients while booking in the other appointment model? -- You received this message because you are subscribed to the Google Groups "Django REST fr

boolean field is not accepting data through postman

2020-09-28 Thread Ashutosh Mishra
i am tring to add boolean field true through postman but it is giving an error,and i am unable to figure out the problem models.py class Tutorial(models.Model): title=models.CharField(max_length=50,blank=False,default='') description=models.CharField(max_length=200,blank=False,default='') publishe

How to feed data to each option in choice field django

2020-09-22 Thread Ashutosh Mishra
I want to create an api to feed opening time and closing time of restaraunt for each day in a week.All days are in choice field.How can i do that models.py class Schedule(models.Model): restaraunt=models.ForeignKey(Restaraunt, on_delete=models.CASCADE,related_name='restaraunt_name') days=mo

Re: Need help in project

2020-09-20 Thread Ashutosh Mishra
Can you please tell me the flow,I. Am a beginner in def. On Sun 20 Sep, 2020, 15:11 naveen Kumar, wrote: > What's the exact issue I can help you... > > > > > On Sun, 20 Sep, 2020, 3:06 pm Ashutosh Mishra, < > ashutoshmishra...@gmail.com> wrote: > >> He

Re: Need help in project

2020-09-20 Thread Ashuosh Mishra
First of all I am not using serializers All custom code. I am having problem with forget password. On Sun 20 Sep, 2020, 15:11 naveen Kumar, wrote: > What's the exact issue I can help you... > > > > > On Sun, 20 Sep, 2020, 3:06 pm Ashutosh Mishra, < > ashut

Need help in project

2020-09-20 Thread Ashutosh Mishra
Hello everyone i am creating an project,can anyone help me its some features. i am posting the link https://marvelapp.com/prototype/150je746/screen/40505991 -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this grou

Re: How to reset password after otp verification

2020-09-20 Thread Ashutosh Mishra
unable to get what are you saying. On Sunday, September 20, 2020 at 2:11:51 PM UTC+5:30 beignet...@gmail.com wrote: > you can simply use dj-rest-auth > > Le dim. 20 sept. 2020 à 05:40, Ashutosh Mishra a > écrit : > >> I have create an api's for sending otp and otp

How to reset password after otp verification

2020-09-19 Thread Ashutosh Mishra
I have create an api's for sending otp and otp verification.But unable to figure out how to reset password of the user whose password field is in some other model. Hers is my question on stackoverflow *https://stackoverflow.com/questions/63975517/how-to-change-password-in-after-otp-verification

How to log out by deleting token

2020-09-14 Thread Ashutosh Mishra
I have created custom user ,through which i have authenticated and got token .Later the user log in .Now i want to create logout.How can i get that user token who recently logged in. -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To

Re: message": "Cannot query \"\": Must be \"User\" instance.",

2020-09-10 Thread Ashutosh Mishra
adable. > Thanks > > On Thu, Sep 10, 2020 at 4:16 AM Ashuosh Mishra > wrote: > >> Trying to generate token of custom user but getting above error, >> >> models.py >> class MyUserManager(BaseUserManager): >> def create_user(self, email, password=None, **extra_f

message": "Cannot query \"\": Must be \"User\" instance.",

2020-09-10 Thread Ashuosh Mishra
Trying to generate token of custom user but getting above error, models.py class MyUserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): if not email: raise ValueError('Users must have an email address') account = self.model( email=self.normalize_email(email),

Re: Custom user model

2020-09-08 Thread Ashutosh Mishra
at Cisco that was > three years and it's still being worked on. Building for the web is > time-consuming there are NO short cuts. An make sure you write tests on > your code WILL be broken. > > ~Carl > > On Tue, Sep 8, 2020 at 12:33 PM Ashutosh Mishra < > ashutoshm

Re: Custom user model

2020-09-08 Thread Ashutosh Mishra
the frontend > and backend. This is usually non-trivial. > > Think about what you are asking and you will see it takes work and > customization is always part of it. > > ~Carl > > On Tue, Sep 8, 2020 at 3:21 AM Ashutosh Mishra < > ashutoshmishra...@gmail.com> wrote:

Custom user model

2020-09-08 Thread Ashutosh Mishra
i want to create authentication of student,admin and superadmin using viewset and routers without serializers(custom code) how can i do this,some please guide me -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this

Get Personal and maching Horoscope

2020-07-22 Thread Ashutosh Mishra
I want to create api's to get personal horoscope and the matching horoscope by providing date of birth for girl and boy,some one plz guide how can we do this -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this gro

I want to fetch images on excel sheet using openpyxl

2020-07-11 Thread Ashutosh Mishra
i am creating an api to get the images from django model to excel sheet ,i am trying using openpyxl,but getting only the url of image of excel sheet not the image., i have posted the link of my question https://stackoverflow.com/questions/62848215/unable-to-get-images-on-excel-sheet-using-openpy

Re: How to get data from django model to excel sheet using openpyxl including images.

2020-07-09 Thread Ashutosh Mishra
m+=1 row = [ obj.Id, obj.Name, obj.Image1.url, obj.Image2.url, str(obj.Date), ] print(type(row)) for col_num in range(len(row)): c = ws.cell(row=row_num + 1, column=col_num + 1) c.value = row[col_num] wb.save(response) return response except Exception as error: traceback.print_exc() return Response({&q

Re: How to get data from django model to excel sheet using openpyxl including images.

2020-07-09 Thread Ashutosh Mishra
> Are you able to produce a excel file? > > On Fri, Jul 10, 2020 at 5:02 AM Ashutosh Mishra < > ashutoshmishra...@gmail.com> wrote: > >> I am creating an api to get data and images from django model to excel >> sheet ,how can i do that,someone please help me. >&g

How to get data from django model to excel sheet using openpyxl including images.

2020-07-09 Thread Ashutosh Mishra
I am creating an api to get data and images from django model to excel sheet ,how can i do that,someone please help me. -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, s

How to export data from django model to excel sheet.

2020-07-05 Thread Ashutosh Mishra
i want to get the data from the django model contans(name,age,photo) on a excel sheet. How can i do that. -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email

Unable to export images from django model to the excel sheet

2020-07-04 Thread Ashutosh Mishra
I am creating an api to export image from django model to the excel sheet.But unable to do that,while doing that geeting only the root path of images.Please help it's uergent. models.py class Task(models.Model): Id=models.IntegerField() Name=models.CharField(max_length=50,null=False,b

Doubt with Nested relations One to many in django rest framework.

2018-08-28 Thread Mishra
I have Three models User, Consumer and Tasks. My consumer is one to one with user(django inbuilt) and my consumer model is one to many with tasks i.e one consumer can add many tasks. My models are like this : class Consumer(models.Model): user=models.OneToOneField(User,on_delete=models.CA