Django rest framework

2020-01-14 Thread aman kumar
could anybody, please tell me that how we can do url mapping of create api view , update api view, ..n all.how we can perform crud operation using generic views in rest framework..with django 2.2 -- You received this message because you are subscribed

Re: Django rest framework

2020-01-14 Thread Kasper Laudrup
Hi Aman, On 14/01/2020 09.56, aman kumar wrote: could anybody, please tell me that how we can do url mapping of create api view , update api view,  ..n all.how we can perform crud operation using generic views in rest framework..with django 2.2 Doesn

Design a good model

2020-01-14 Thread Abhishek Tiwari
Hey guys.. Please tell how design a model for fields like this.. -- 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 vi

About WSGI header spoofing via underscore/dash conflation

2020-01-14 Thread Dario Palmisano
Hello Everyone, I have a Django project deployed via apache/uwsgi. But things do not work ... as described (in https://docs.djangoproject.com/en/3.0/ref/request-response/#django.http.HttpRequest.META). I would expect all request headers to be converted to "META keys by converting all charact

get complete row from a table

2020-01-14 Thread Anand Mate
Hello everyone, I am new to django. I am making a app, in which I want to print a complete row from table. At first I want to apply a filter on one column. get that dataset and then find minimum value from another column and display the complete row using html... -- You received this message b

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-14 Thread Mohamed A
the issue is related to PEP8. You need to space it a little bit :) leave an empty line before __str__ . And it is not an error, it is just a warning :) On Mon, Jan 13, 2020 at 11:27 PM Julius Lange wrote: > Okay, thank you guys! > > I figured it out. The reason was another issue and my nooby ass

Re: How to do SEO for my django website

2020-01-14 Thread Mohamed A
Please, check an alternative from here https://djangopackages.org/grids/g/seo/ On Mon, Jan 13, 2020 at 10:40 PM Roshan Shah wrote: > Anyone fixing django-seo to be compatible with Django 3.0? > > On Fri, Jan 3, 2020 at 7:54 AM Yash Garg wrote: > >> rollyourown.seo in not compatible with latest

Model Related Issue

2020-01-14 Thread Soumen Khatua
Hi Folks, After changing the model name,I'm getting some error, like initially my model name was some thing like this: class new_model(models.Model) but now I'm change it to class NewModel(models.Model) but after migrate I'm getting this error: *File "/home/sou/tildehat_platform/env/lib/pytho

About extending the django inbuilt user

2020-01-14 Thread sachinbg sachin
Hii every one I want to add some additional fields in inbuilt django user model am tried many of the things am not achieved that any reference help me and any sources Git repositories Thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: About extending the django inbuilt user

2020-01-14 Thread Kasper Laudrup
On 14/01/2020 17.10, sachinbg sachin wrote: Hii every one I want to add some additional fields in inbuilt django user model am tried many of the things am not achieved that any reference help me and  any sources Git repositories Thanks in advance https://simpleisbetterthancomplex.com/tutoria

Re: About extending the django inbuilt user

2020-01-14 Thread ROHIT CHAUHAN
https://www.codingforentrepreneurs.com/tags/django/ On Tue, 14 Jan 2020 at 21:41, sachinbg sachin wrote: > Hii every one I want to add some additional fields in inbuilt django user > model am tried many of the things am not achieved that any reference help > me and any sources > Git repositorie

Re: About extending the django inbuilt user

2020-01-14 Thread Farai M
Just do a one to One to the user table because if you have already created and migrated the model on first install .Creating a custom model will give you a headache On Tue, Jan 14, 2020 at 6:11 PM sachinbg sachin wrote: > Hii every one I want to add some additional fields in inbuilt django user

[no subject]

2020-01-14 Thread yusuf abdul
why is my carousel not changing veiw -- 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 we

Re: Django rest framework

2020-01-14 Thread aakansha jain
Can anybody tell me how to run the project and see the code? I am a beginner and not able to run the project On Tue 14 Jan, 2020, 2:26 PM aman kumar, wrote: > could anybody, please tell me that how we can do url mapping of create api > view , update api view, ..n all.how we

Re: About extending the django inbuilt user

2020-01-14 Thread aakansha jain
hey, I am a beginner. I also want to contribute on django framework but I am not getting how to run the project and see the code of it. On Tue, Jan 14, 2020 at 9:41 PM sachinbg sachin wrote: > Hii every one I want to add some additional fields in inbuilt django user > model am tried many of the

Re: bugs for beginners

2020-01-14 Thread aakansha jain
I was asking about the bugs that I can work upon(as a beginner) in django project of gsoc 2019. On Sunday, January 12, 2020 at 9:34:13 PM UTC+5:30, aakansha jain wrote: > > Can someone suggest me the bugs that can be worked upon by beginners? > -- You received this message because you are subsc

Re: bugs for beginners

2020-01-14 Thread John McClain
https://edabit.com/challenges/python3 On Tue, 14 Jan 2020 at 18:49, aakansha jain wrote: > I was asking about the bugs that I can work upon(as a beginner) in django > project of gsoc 2019. > > On Sunday, January 12, 2020 at 9:34:13 PM UTC+5:30, aakansha jain wrote: >> >> Can someone suggest me t

Re:

2020-01-14 Thread Kasper Laudrup
Hi Yusuf, On 14/01/2020 16.31, yusuf abdul wrote: why is my carousel not changing veiw Try spinning it around a bit. That usually gives some new perspective. Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Format queryset return dictionary of primary keys?

2020-01-14 Thread MM
or: { o.pk: o for o in Model.objecs.all() } On Thursday, August 4, 2011 at 4:12:31 PM UTC-4, Javier Guerra Giraldez wrote: > > On Thu, Aug 4, 2011 at 2:19 PM, diafygi > > wrote: > > Is there a built in way to get: > >>>Model.objects.all().something_pk_values() > > {1 : {'vin':189554}, 2 : {'v

Re:

2020-01-14 Thread Alfredo Sumague
there are two things when you have carousel, the html which is the view, and the javascript that make view change. On Tue, Jan 14, 2020 at 10:27 AM yusuf abdul wrote: > why is my carousel not changing veiw > > -- > You received this message because you are subscribed to the Google Groups > "Djan

Re:

2020-01-14 Thread Kevin Dublin
Hi Yusuf, It could be any number of reasons depending on the type of carousel and implementation. I will assume you are using bootstrap and suggest that you make sure all of the necessary bootstrap css and JavaScript files are linked at the bottom of your base template. Also check your carousel a

Re: How to do SEO for my django website

2020-01-14 Thread Ram
Hi, I'm also interested in the default SEO module that comes with DJango FWK. Thanks, ~Ram On Tue, Jan 14, 2020 at 5:39 AM Mohamed A wrote: > Please, check an alternative from here > https://djangopackages.org/grids/g/seo/ > > On Mon, Jan 13, 2020 at 10:40 PM Roshan Shah > wrote: > >> Anyone

Re: Django rest framework

2020-01-14 Thread aman kumar
yeah Kasper, it did very well, I found difficulty in mapping URLs ...but np I'll surely find a way to get out of it On Tue, Jan 14, 2020 at 2:38 PM Kasper Laudrup wrote: > Hi Aman, > > On 14/01/2020 09.56, aman kumar wrote: > > could anybody, please tell me that how we can do url mappin

Re: Django rest framework

2020-01-14 Thread aman kumar
thankuh ROHIT, useful stuff. On Tue, Jan 14, 2020 at 11:58 PM ROHIT CHAUHAN wrote: > > > On Tue, 14 Jan 2020 at 14:38, Kasper Laudrup > wrote: > >> Hi Aman, >> >> On 14/01/2020 09.56, aman kumar wrote: >> > could anybody, please tell me that how we can do url mapping of create >> > api view

Re: About extending the django inbuilt user

2020-01-14 Thread sachinbg sachin
I was getting some error like is_staff is not an atribute an other source are git link I tried to fix that but am not able to do that -- 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

Re: Django rest framework

2020-01-14 Thread aman kumar
hey Akansha, welcome to the community...it will help you out... https://www.youtube.com/watch?v=b0lvbPcEHRg&list=PL1WVjBsN-_NIdlnACz0Mxuq8VcuxER-is&index=2 On Wednesday, January 15, 2020 at 12:07:55 AM UTC+5:30, aakansha jain wrote: > > Can anybody tell me how to run the project and see the

Re: About extending the django inbuilt user

2020-01-14 Thread Carsten Fuchs
Besides what others have said, I suggest you have a look at https://docs.djangoproject.com/en/3.0/topics/auth/customizing/#extending-the-existing-user-model and all subsequent sections. If you have not started your project yet (have no migrations yet), look at https://github.com/jambonsw/django-im

Re: About extending the django inbuilt user

2020-01-14 Thread sachinbg sachin
Thanks carstien On Wed, Jan 15, 2020, 12:10 PM Carsten Fuchs wrote: > Besides what others have said, I suggest you have a look at > > https://docs.djangoproject.com/en/3.0/topics/auth/customizing/#extending-the-existing-user-model > and all subsequent sections. > > If you have not started your p