Re: ?? question ,its urgent

2022-06-23 Thread Soumen Khatua
Better use JSON Field to store all the informations On Mon, Jun 20, 2022 at 12:16 PM Abhinandan K wrote: > how to store the data in django databse table if user append fields > according to their need > for example i have 1 one field 1) name 2) age 3) salary and the sign('+) > if user click on +

muliple queryset result

2021-01-09 Thread Soumen Khatua
* * >, >, >]>* *Instead of returnning one matched object inside queryset it's returnning three matched object because I have three contact details for this user.* *Thank you in advance* *Regards,* *Soumen Khatua* -- You received this message because you are subscribed to the Goog

Re: wrong time in query

2020-08-30 Thread Soumen Khatua
no,directly I'm using *TIME_ZONE = 'Asia/Kolkata',* On Sun, Aug 30, 2020 at 11:37 PM Kunal Solanke wrote: > Are you using timezone for saving time > which is exported from django.utils or the python datetime module? > > On Sun, Aug 30, 2020, 23:34 Soumen Khatua >

wrong time in query

2020-08-30 Thread Soumen Khatua
like: *2020-08-30 14:14:00+00:00* Can anyone tell me why I'm getting wrong time,although I selected *TIME_ZONE = 'Asia/Kolkata'* Thank you regards, Soumen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Dynamic Set

2020-08-16 Thread Soumen Khatua
multiple hours on this problem.but still I don't have any clue what is the way to solve it. Thank you Regards, Soumen Khatua -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails f

Multiple DB

2020-07-12 Thread Soumen Khatua
Hi Folks, Actually I want to set up multiple Databases like one DB for User-specific table and another DB for Blog Post, But in this case, User should be a Foreign Key in Post table. Is it possible to do that, if it is then How I can write a query(ORM)? Thank you Regards, Soumen -- You

Re: Custom Primary Key

2020-06-23 Thread Soumen Khatua
Yes, at the time of add a new record in model, automatically I want to create a custom ID and insert it into model On Wed 24 Jun, 2020, 7:18 AM Clive Bruton, wrote: > > On 23 Jun 2020, at 23:32, Oleg Kishenkov wrote: > > > Hello Soumen, you should use a CharField with the p

Re: Custom Primary Key

2020-06-23 Thread Soumen Khatua
In the documentation they are specified, How to set Primary Key in Django model but In my case, I want to generate custom Primary Key?! On Wed, Jun 24, 2020 at 1:36 AM David Chorpash wrote: > Hi Soumen, > > Are you looking for this? > https://docs.djangoproject.com/en/3.0/ref/m

Custom Primary Key

2020-06-23 Thread Soumen Khatua
Hi Folks, In Django is there any way to create custom Primark Key like: M01234GH, M056YUOIP, etc. Please help me guys. Thank you in advance Regards, Soumen Khatua -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Capture Content Id

2020-06-15 Thread Soumen Khatua
Thank you for your response. On Tue 16 Jun, 2020, 6:29 AM Soumen Khatua, wrote: > Yeah but in this way the time complexity will be very high, just think if > I'll have more than 1 million post than it will check all the field if it > is available or not. > However my query is

Re: Capture Content Id

2020-06-15 Thread Soumen Khatua
slug = '{}-{}'.format(slug, num) >> num += 1 >> return unique_slug >> >> def save(self, *args, **kwargs): >> if not self.slug: >> self.slug = self._get_unique_slug() >> super().save(*args, **kwar

Re: Capture Content Id

2020-06-15 Thread Soumen Khatua
Could you give me an example?? On Mon, Jun 15, 2020 at 1:21 PM Kayode Oladipo wrote: > There's an id field built into every Django model (aka, the primary key > (pk)) > > Just do, ModelInstance.id and that should do the trick. > > Cheers. > > On Mon, Jun 15, 2020, 8

Capture Content Id

2020-06-15 Thread Soumen Khatua
the parameter of the view and it can be duplicated. Any help will be appreciated Thank You Regards, Soumen -- 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

Bridge between two users

2020-06-09 Thread Soumen Khatua
return Response(serializer.data,status=status.HTTP_200_OK)* Please help me Thank You Regards, Soumen -- 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 t

User table inside custom table

2020-06-06 Thread Soumen Khatua
s Meta: model = Userfields = ('full_name','email','phone_number','bio')class UserFollowSerializer(serializers.ModelSerializer): user = UserDetailSerializer(read_only=True) class Meta: model = Follow fields = ('user

Re: filter on multiple tables

2020-05-29 Thread Soumen Khatua
Thank You, for your guidance.I think I'm very close to this problem. Thank you once again. ‪On Fri, May 29, 2020 at 9:56 AM ‫אורי‬‎ wrote:‬ > Hi Soumen, > > You can filter on another table by using __, for > example: > > User.objects.filter(profile__profiles__institute

Re: Optimized Query

2020-05-29 Thread Soumen Khatua
Hi, Yeah, but whenever I'm trying to iterate a loop on all these qs. I'm getting an *error too many sql variables.* I know I'm doing something wrong,but I'm not able to find the error. Thank you for your response and time. Regards, Soumen ‪On Fri, May 29, 2020 at 5:

Re: filter on multiple tables

2020-05-29 Thread Soumen Khatua
n Key, in Education table. actually I want to fetch all the users those are from the same Institution or Specialization or location. Thank you for your response and time. Regards, Soumen ‪On Fri, May 29, 2020 at 9:56 AM ‫אורי‬‎ wrote:‬ > Hi Soumen, > > You can filter on anothe

filter on multiple tables

2020-05-28 Thread Soumen Khatua
appreciated. Thank You Regards, Soumen *class Location(models.Model):name = models.CharField(max_length = 15)* *class Profile(models.Model):user = models.OneToOneField( settings.AUTH_USER_MODEL,on_delete = models.CASCADE, related_name="profile")

Re: Optimized Query

2020-05-27 Thread Soumen Khatua
Actually I want to fetch all users from User table and users location from Location table which is many to many relation from same Profile table. Is it possible??? On Thu 28 May, 2020, 2:54 AM Soumen Khatua, wrote: > Now I'm facing one problem whenever I'm trying to iterate a loop

Re: Optmized Query

2020-05-27 Thread Soumen Khatua
Now I'm facing one problem whenever I'm trying to iterate a loop I'm getting too many SQL variables. Actually after iterating the loop I want to render all the value in the template. if could you resolve this it would be very good for me. Thank you for your time and response Regar

Re: Optmized Query

2020-05-27 Thread Soumen Khatua
)location = models.ManyToManyField(Location)* Thank you Regards, Soumen On Wed, May 27, 2020 at 7:20 PM Chetan Ganji wrote: > select_related for fk and prefetch_related for m2m in django, you can > chain them together > > Regards, > Chetan Ganji > +91-900-483-4183 > ganji.che...@gma

Optmized Query

2020-05-27 Thread Soumen Khatua
Hi Folks, I have many to many relationships and Foreign Key in the table, I'm using select_realted(foreign key filed name) to optimize the query but I want to fetch many to many and foreign key at the same time , How I can do this in very optimized way? Thank You Regards, Soumen -- You rec

Custom Group

2020-05-26 Thread Soumen Khatua
Hi Folks, Actually my requirement is a registered user can create a room/group where n(could be any number) number of peoples can join for a certain period of time like 1 hr,But I don't have any idea about this,How I can do this in Django?! Any help will be appreciated Thank You Regards, S

Django Pipeline

2020-05-07 Thread Soumen Khatua
Hi Guys, I want to use Django-pipeline library, Does anyone know how I can use it? I'm also using AWS S3 storage. Any help will be appreciated. Regards, Soumen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

font awesome loading problem

2020-04-08 Thread Soumen Khatua
help me guys regarding this issue. Thank you in advance Regards, Soumen Note: All error are here *Access to font at 'https://xyz.s3.amazonaws.com/static/css/font-awesome/fonts/fontawesome-webfont.woff?v=4.7.0 <https://xyz.s3.amazonaws.com/static/css/font-awesome/fonts/fontawesom

Many to many relationship

2020-03-17 Thread Soumen Khatua
Hi Folks, I'm using many to many relationship of a model by I'm not able update one person record. I don't know how to update a particular person's record when I'm using many to many relationship. Thank you Regards, Soumen -- You received this message because you are

Restriction to create multiple instance

2020-03-16 Thread Soumen Khatua
searching about it if you people know how to solve it then it will save lots of time. Thank you in advance. Regards, Soumen -- 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

ACESS FOREIGN KEY TABLE

2020-03-12 Thread Soumen Khatua
?? Thank you in advance Regards, Soumen -- 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 discuss

Unique constrains failed

2020-03-06 Thread Soumen Khatua
nd a message to that user something like your data is already existed in our database. But I don't know how do that,please help my guys?!! Thank you in advance Regards, Soumen -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

Re: NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Soumen Khatua
Could you tell me how I can save image in aws S3 bucket after resizing the image into some random pixels?? Thank you On Wed, Mar 4, 2020 at 12:11 PM Soumen Khatua wrote: > obj.save(force_insert=True, using=self.db) > TypeError: save() got an unexpected keyword argument 'f

Re: NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Soumen Khatua
obj.save(force_insert=True, using=self.db) TypeError: save() got an unexpected keyword argument 'force_insert' [04/Mar/2020 12:11:16] "POST /register/ HTTP/1.1" 500 108601 On Wed, Mar 4, 2020 at 12:00 PM Soumen Khatua wrote: > okay..sure > > On Wed, Mar 4,

Re: NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Soumen Khatua
okay..sure On Wed, Mar 4, 2020 at 11:56 AM Naveen Arora wrote: > Can you share the complete traceback of error + what are you passing and > where so that i can understand the flow. ? > > Cheers > > On Tuesday, 3 March 2020 19:15:56 UTC+5:30, Soumen Khatua wrote: >> &g

Re: NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Soumen Khatua
2020 13:46:11 UTC+5:30, Soumen Khatua wrote: >> >> Hi Folks, >> >> I'm using AWS S3 Bucket to store media folder(images) but I want to >> resize each every image in 300*300. So, I'm overriding the save method >> inside django model class. But I'm

NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Soumen Khatua
don't know how to solve this issue. Thank you in advance Regards, soumen -- 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.

Re: production setup

2020-03-01 Thread Soumen Khatua
Actually I'm storing this files in aws s3 bucket..but I want to know Is it a good practice to store all the images and documents inside media folder. On Sat 29 Feb, 2020, 6:45 PM Appu Yadav, wrote: > store image and documents in aws bucket or Google stroage > > On Sat, 29 Feb 2020, 10:25 Naveen

Re: production setup

2020-02-29 Thread Soumen Khatua
Okay, sure. Thank you for your response. On Sat 29 Feb, 2020, 11:33 AM Naveen Arora, wrote: > Hi > > have a look at this - > https://github.com/codingforentrepreneurs/Guides/blob/master/all/Heroku_Django_Deployment_Guide.md > > Cheers > > -- > You received this message because you are subscribe

Re: production setup

2020-02-28 Thread Soumen Khatua
I already read the documentation but still I'm confuse that's why I posted. BTW thank you for your help. On Fri, Feb 28, 2020 at 5:51 PM Naveen Arora wrote: > Hi Soumen, > > https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/ > https://docs.djangopr

Image Upload

2020-02-28 Thread Soumen Khatua
r','profile_pic']extra_kwargs = {'user': {'write_only': True}}* My models.py contain profile_pic as a ImageField. Thank you in advance Regards, soumen -- You received this message because you are subscribed to the Google Groups &q

Re: Django Image and File

2020-02-27 Thread Soumen Khatua
me name NOTE make sure that you have a media > folder added to you your settings.py file or you can pass the path to where > to save the image like this fs = FileSystemStorage(location= > 'media/rent_pictures/') Hope this helps another thing is that image is > also a file and

production setup

2020-02-27 Thread Soumen Khatua
Hi Folks, I'm storing users images and documents inside media folder during development. but I don't how to serve this files for production level.Any one have any idea, actually I read the documentation but I'm still confuse. Thank You in advance regards, soumen -- You receiv

Django Image and File

2020-02-26 Thread Soumen Khatua
Hi Folks, Actually I have one image filed called profile_pic and another is file field called documents but I don't know what is best practise to store it. Most importantly how I can make each user details is unique. Thank you in advance Regards, Soumen -- You received this message be

Admin login problem

2020-02-26 Thread Soumen Khatua
-sensitive . But don't why i'm getting this error message. Thank you in advance Regards, Soumen -- 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 e

Re: django context data into javascript

2020-02-25 Thread Soumen Khatua
But I'm getting one error On Tue 25 Feb, 2020, 5:59 PM Naveen Arora, wrote: > Hi, this is simple just enclose {{name}} into " " as "{{name}}" for your > part. > > Thanks > > On Tuesday, 25 February 2020 15:56:05 UTC+5:30, Soumen Khatua wrote: >>

django context data into javascript

2020-02-25 Thread Soumen Khatua
Hi Folks, I'm sending some context data into html like name = 'soumen' return render(request,'xyz.html', context = {'name':name}) inside myjs.js(js script has been integrated to html): --- var

Re: Django rest framework error

2020-02-20 Thread Soumen Khatua
If I'm using serializer then it's working fine but I want to return only database object. So for that Do I need to add serializer. Thank you for your response. On Thu 20 Feb, 2020, 11:17 PM MTS BOUR, wrote: > Can you show us your serializer.py file? > > > Le jeu. 20 fé

Django rest framework error

2020-02-20 Thread Soumen Khatua
Response({'user':user}, status = status.HTTP_200_OK)* *urls.py* ** *urlpatterns = [ path('api/location/',views.LocationApiView.as_view(),name = 'api_location')]* *btw when I'm sending a normal message it's working fine. But in this case I'

Runserver with a custom script

2020-02-17 Thread Soumen Khatua
Hi Folks, I want to run a script or url at the time of django server loading.So Does this possible,If yes could you tell me,How? Thank you in advance Regards, Soumen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Multiple calls

2020-02-17 Thread Soumen Khatua
the CSV file is loading inside the AutoComplete(class) constructor On Mon, Feb 17, 2020 at 10:44 PM Soumen Khatua wrote: > The CSV file is in project folder.Could you send me any code > snippet,Please? > > Thanks for your time. > > > > On Mon, Feb 17, 2020 at 10:39

Re: Multiple calls

2020-02-17 Thread Soumen Khatua
The CSV file is in project folder.Could you send me any code snippet,Please? Thanks for your time. On Mon, Feb 17, 2020 at 10:39 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > Hi Soumen, > Where is the Csv file loading ? > You could try return redirect also if

Re: Multiple calls

2020-02-17 Thread Soumen Khatua
;> >> >> >> >> *else:self.keys.append(row[1]) >> print("constructor execution")global tt = Trie() >> t.formTrie(self.keys) def post(self,request):key = request.data >> print("

Re: Multiple calls

2020-02-17 Thread Soumen Khatua
il.com> wrote: > >> i faced the same problem while i was dealing with CSV file. >> i gave a unique file in csv to make a check on the particular entry. by >> this way, i avoided multiple entries in my database >> >> >> On Mon, Feb 17, 2020 at 7:30 PM Soumen

Re: Multiple calls

2020-02-17 Thread Soumen Khatua
Yeah, I'm trying to do it in your way but somehow it's not working in my script. Thanks for your valuable time. On Mon, Feb 17, 2020 at 7:27 PM Kasper Laudrup wrote: > Hi Soumen, > > On 17/02/2020 14.51, Soumen Khatua wrote: > > Okay. > > Is it possible to lo

Re: Multiple calls

2020-02-17 Thread Soumen Khatua
Okay. Is it possible to load the csv file one time do the POST or any request multiple times without loading the same file.Of course If it is in same class?? On Mon, Feb 17, 2020 at 7:14 PM Kasper Laudrup wrote: > Hi Soumen, > > On 17/02/2020 14.31, Soumen Khatua wrote: >

Multiple calls

2020-02-17 Thread Soumen Khatua
al tt = Trie()t.formTrie(self.keys)def post(self,request):key = request.dataprint("key:",key) suggested_word = t.printAutoSuggestions(key)return Response(suggested_word, status = status.HTTP_200_OK)* *Thank you in advance* *Regards,* *Soum

Re: Image overwrite

2020-02-17 Thread Soumen Khatua
okay,thank you On Mon, Feb 17, 2020 at 5:46 PM onlinejudge95 wrote: > On Sun, Feb 16, 2020 at 11:09 AM Soumen Khatua > wrote: > >> Hi Folks, >> >> I have a model where user can upload their image. >> > > I am assuming you are not storing the image as a

Re: Images and pdfs for production level

2020-02-15 Thread Soumen Khatua
Okay On Sun 16 Feb, 2020, 11:37 AM Devender Kumar, wrote: > Read about cloudfront that will help you for sure. > > On Sun, 16 Feb, 2020, 11:03 am Soumen Khatua, > wrote: > >> Actually I'm using s3 bucket but I want to convert it as a CDN. Could you >> tell me ho

Image overwrite

2020-02-15 Thread Soumen Khatua
Hi Folks, I have a model where user can upload their image. But after uploading a new image the old image is still their but as for my convention if a user upload his new image the old image should not be their, If anyone know please tell me How I can do that?? Thank you Regards, Soumen

Re: Images and pdfs for production level

2020-02-15 Thread Soumen Khatua
Actually I'm using s3 bucket but I want to convert it as a CDN. Could you tell me how I can do that? Thank you Regards, Soumen On Fri 14 Feb, 2020, 1:10 PM Devender Kumar, wrote: > I will suggest you go with AWS S3 you can use boto3 lib available for > python > > On Thu, 13

Re: Images and pdfs for production level

2020-02-12 Thread Soumen Khatua
Yes,I want to use CDN for my static files. But I don't know how to implement it. On Wed, Feb 12, 2020 at 9:04 PM Devender Kumar wrote: > Some CDN > > On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, > wrote: > >> Hi Folks, >> Where I need to store images and pdfs f

Images and pdfs for production level

2020-02-12 Thread Soumen Khatua
Hi Folks, Where I need to store images and pdfs for production level. Thank you in advance regards, Soumen -- 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

Memcache

2020-02-11 Thread Soumen Khatua
Hi Folks, Actually I want to implement memcache service into my project but I don't know How to implement it with proper scalability. If anyone have any idea or code snippet, please share with me. Thank you Regards, Soumen -- You received this message because you are subscribed to the G

Trie Implemntation in django

2020-02-10 Thread Soumen Khatua
Hi Folks, I wrote one python file which is a Trie algorithm but i don't know how to implement it in Django and javascript. Please help me regarding this matter. Thank you in advance regards, Soumen -- You received this message because you are subscribed to the Google Groups "Dj

Re: Trie Data Structure

2020-02-08 Thread Soumen Khatua
m > which is language agnostic. Technically, it shouldn't be asked in the > Python Mailing list too. > > Keep a watch on your inbox though. :) > > Thanks, > onlinejudge95 > > On Sat, Feb 8, 2020, 3:06 PM Soumen Khatua > wrote: > >> from collections impo

Trie Data Structure

2020-02-08 Thread Soumen Khatua
from collections import defaultdict class TrieNode(): def __init__(self): self.children = defaultdict() self.terminating = False class Trie(): def __init__(self): self.root = self.get_node() def get_node(self): return TrieNode() def get_index(self, ch): return ord(ch) - ord('a') def insert

Re: CURL Command

2020-02-04 Thread Soumen Khatua
Okay,sorry I thought Wireshark some code snippet. Now i got it. Thank you On Tue, Feb 4, 2020 at 5:46 PM Kasper Laudrup wrote: > Hi Soumen, > > On 04/02/2020 13.02, Soumen Khatua wrote: > > Yeah I did whatever you said but still I'm facing the same issue, But > > same

Re: CURL Command

2020-02-04 Thread Soumen Khatua
Yeah I did whatever you said but still I'm facing the same issue, But same code is working in Httpie and POSTMAN.That's why I'm surprised. On Tue, Feb 4, 2020 at 5:29 PM Kasper Laudrup wrote: > Hi Soumen, > > Did you read the rest of my answer past the first two lines?

Re: CURL Command

2020-02-04 Thread Soumen Khatua
:return: returns a successfully created job record"""seekers_data = validated_data.pop('seekers_name',None)return Job.objects.create(**validated_data)return validated_data* *But it's working in POSTMAN Tool* *Thank you for your resp

Re: CURL Command

2020-02-04 Thread Soumen Khatua
ld you tell me why I'm getting this error? but in POSTMAN it is woking properly. On Tue, Feb 4, 2020 at 4:11 PM Kasper Laudrup wrote: > Hi Soumen, > > On 04/02/2020 09.01, Soumen Khatua wrote: > > Hi Folks, > > > > Actually now I'm usng POSTMAN for all ope

CURL Command

2020-02-04 Thread Soumen Khatua
Hi Folks, Actually now I'm usng POSTMAN for all operation like GET,POST,PUT,PATCH and DELETE. But I want to do the same thing by using Curl Command, Could anyone tell me what are the commands for CURL.I'm providing my end point below and most important I'm using Basic Authentication. 1) http://12

Re: Unique Field

2020-01-21 Thread Soumen Khatua
Okay Thanks for the information. On Wed, 22 Jan 2020, 02:11 Irfan Khan, wrote: > No I didn’t check that one, it will generate unique id’s for you but how > many you wanted to generate you must write code explicitly with some logic > > On Wed, 22 Jan 2020 at 1:43 AM, Soumen Kha

Re: Unique Field

2020-01-21 Thread Soumen Khatua
Irfan- Are you sure it will generate unique id for 10 billion people. On Wed, 22 Jan 2020, 01:39 Irfan Khan, wrote: > Here you can check this link for reference > > https://pypi.org/project/nanoid/ > > > On Tue, 21 Jan 2020 at 9:02 PM, Soumen Khatua > wrote: >

some value for primary key

2020-01-21 Thread Soumen Khatua
Hi Folks, I want to start my primary key from saome random number like: (onwards) but not from 1. How I can do that in django? Thank you in advance Regards, Soumen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Tracking IP

2020-01-21 Thread Soumen Khatua
ok On Tue, Jan 21, 2020 at 11:19 PM Kasper Laudrup wrote: > Hi, > > On 21/01/2020 13.34, Roger Gammans wrote: > > Hi > > > > The precise details of this depend on your hosting environment, but the > > canonical method is request.get_host() ; see > > > https://docs.djangoproject.com/en/3.0/ref/r

Re: Unique Field

2020-01-21 Thread Soumen Khatua
Could you share any documentation link,please?? On Tue, 21 Jan 2020, 20:45 Irfan Khan, wrote: > You can use nano library to generate unique numbers or characters > > On Tue, 21 Jan 2020 at 8:41 PM, Soumen Khatua > wrote: > >> Hi Folks, >> >> Is their any oth

Unique Field

2020-01-21 Thread Soumen Khatua
Regards, Soumen -- 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 vi

Re: Tracking IP

2020-01-21 Thread Soumen Khatua
I want to show the users/clients IP address On Tue, Jan 21, 2020 at 5:29 PM bharat pamnani wrote: > hostname -I will give you the ip of user. > > On Tue, Jan 21, 2020 at 5:27 PM Soumen Khatua > wrote: > >> Hi Folks, >> >> In my Django application I want to sh

Tracking IP

2020-01-21 Thread Soumen Khatua
Hi Folks, In my Django application I want to show IP address of users, Just like others financial websites. How I can do that using Django(of course it's should be free cost). Thank You in advance Regards, Soumen -- You received this message because you are subscribed to the Google G

Re: Primary Key

2020-01-20 Thread Soumen Khatua
Thank you for your email On Mon, Jan 20, 2020 at 3:09 PM Kasper Laudrup wrote: > Hi again, > > On 20/01/2020 10.22, Kasper Laudrup wrote: > > > > You want to generate a number between 0 and 1.000.000 that should be > > unique for 10.000.000.000 instances? > > > > I hope you can understand why th

Primary Key

2020-01-20 Thread Soumen Khatua
Hi Folks, I want to generate unique 6 digit primary key for django models and I want to generate this for 10 billon users. So guys please could you tell me How I can do that? I tried UUID module but it's generating some big numbers. Thank you Regards, Soumen -- You received this me

Django ORM

2020-01-17 Thread Soumen Khatua
Hi Folks, *Actually I'm extending User table in some other table and this current table I'm extending soe other table. But this time I want to filter by using first table username How can i Do that?* *Example:* *class FirstTable(models.Model):* *user_by = models.ForeignKey(user,related_na

Model Related Issue

2020-01-14 Thread Soumen Khatua
r was declared with a lazy reference to 'profiles.tildehatuser', but app 'profiles' doesn't provide model 'tildehatuser'* Note: I already added the customized model name in settings.py like 'profiles.ClassName". Please help me guys regarding this matter but I

data type

2020-01-10 Thread Soumen Khatua
Hi Folks, I'm sending the json data from postman. But Inside my python code when I'm doing: Suppose my json data: *{ "name" : "soumen" }* *data = request.data* *print(type(data)) # * *How it is possible without using serializer, how data converted automatically

Re: Password Reset

2020-01-10 Thread Soumen Khatua
jFc/Django-DRF-Boilerplate-with-otp-verification > > On Fri, 10 Jan 2020, 12:35 pm Soumen Khatua, > wrote: > >> Hi Guys, >> In Django we have some inbuilt class for password rest and confirmation. >> But In Django rest framework ,How can I do that? >> &

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 "D

Re: Csrf_exempt

2020-01-09 Thread Soumen Khatua
tman 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 < >> datacentral...@gmail.com> wrot

Re: Csrf_exempt

2020-01-09 Thread Soumen Khatua
guide/authentication/#sessionauthentication > > Nice. > > > > > On Thu, Jan 9, 2020, 22:25 Soumen Khatua > wrote: > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>

Re: Django Validation error

2020-01-09 Thread Soumen Khatua
gt; >> Use try catch and send whatever response you want to send >> >> On Wed, 8 Jan 2020, 10:36 pm Soumen Khatua, >> wrote: >> >>> >>> *seriazlizers.py* >>> >>> >>> >>> >>> >>> >>&

Re: Csrf_exempt

2020-01-09 Thread Soumen Khatua
status.HTTP_200_OK)except User.DoesNotExist: return Response({"deatils": "user not found"},status = status.HTTP_404_NOT_FOUND)* *On Thu, Jan 9, 2020 at 8:42 PM Suraj Thapa FC > wrote:* > *Code...? * > > > *On Thu, 9 Jan 2020, 8:40 pm Soumen Khatua,

Csrf_exempt

2020-01-09 Thread Soumen Khatua
srf_exempt inside APIView(post) request? If yes, then why it is working some times? Thank you in advance Regards, Soumen -- 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,

Re: DRF

2020-01-09 Thread Soumen Khatua
tf-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:* >> >> *{ "name":"soumen","passwor

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 po

Re: Dajgo Validation error

2020-01-08 Thread Soumen Khatua
nt to raise validation error that email should be unique and password should be alphanumeric character in json format? On Wed, Jan 8, 2020 at 9:44 PM Suraj Thapa FC wrote: > For email you can set email field in model as unique=True and the password > should be stored in hash.. > >

Dajgo Validation error

2020-01-08 Thread Soumen Khatua
, Soumen -- 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://groups.go

Re: Python problem

2019-12-15 Thread Soumen Khatua
output_string += order[index] >> >> print() >> print(input_string) >> print(output_string) >> print() >> >> >> >> >> Regards, >> Chetan Ganji >> +91-900-483-4183 >> ganji.che...@gmail.com >> http://ryuco

Python problem

2019-12-15 Thread Soumen Khatua
Hi Folks, I'm stucking in this problem from 5 hours but still I'm not bale to logic to solve this problem, Please help me guys to solve this problem: Example:- input: h123456ello output: o123456lleh input: th34isisast56ring3 output: gn34irtsasi56siht3 Thank you in advance. regar

Code Inspect

2019-12-11 Thread Soumen Khatua
lling UserViewSet. Thank You in advance Regards, Soumen -- 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: Username as email

2019-11-23 Thread Soumen Khatua
lso uppercase email is accepted in the login form. The email is always > saved as lowercase in the database (when the user registered or adds a new > email address). > > אורי > u...@speedy.net > > > On Sun, Nov 24, 2019 at 7:55 AM Soumen Khatua > wrote: > >>

Username as email

2019-11-23 Thread Soumen Khatua
Hi Folks, Any have any idea in real time how programmers manage email id as username only. Because django provide different fields for username and email id. So how I can overcome to this problem?? Thank you in advance. Regards, Soumen -- You received this message because you are subscribed to

Re: DRF

2019-09-17 Thread Soumen Khatua
Thank you, It really helps me a lot. Regards, Soumen On Tue, 17 Sep 2019, 12:50 Andréas Kühne, wrote: > Hi Soumen, > > So let's look at your questions: > 1. super(UserLoginSerializer, self).__init__(*args, **kwargs) - this means > that it gets the parent of the UserLoginS

  1   2   >