Re: Make a Django query filter at runtime

2020-01-11 Thread Derek
There is a long discussion about "not equals" here: https://stackoverflow.com/questions/687295/how-do-i-do-a-not-equal-in-django-queryset-filtering I am sure you can adapt one of the suggestions there for your specific needs. On Friday, 10 January 2020 14:35:48 UTC+2, Ezequias Rocha wrote: > >

Re: Admin Panel

2020-01-11 Thread Derek
For a better looking admin, try: * https://django-grappelli.readthedocs.io/en/latest/ * https://djangosuit.com/ For "admin issues" you'll need to be more specific. There are very few, if any, unsolved bugs in the Admin code On Thursday, 9 January 2020 21:02:03 UTC+2, APIJAY SHARMA wrote:

Re: Regarding Internship

2020-01-11 Thread Laura Pérez
Hi!! I’m interested in this position. Best! Enviado desde mi iPhone > El 11 ene. 2020, a la(s) 1:51 a.m., Ravi Shankar > escribió: > >  > Hi Deepak, > > I work for Qwikcilver a Fintech company and also we have NGO Career Vizion, > we training students to become industry-ready. > > Call

"This field is required." error in REST

2020-01-11 Thread Yash Garg
I have created a User registration rest api app views.py- class UserRegister(APIView): throttle_classes = [UserRateThrottle] def post(self, request, format='json'): serializer = UserRegisterSerializer(data=request.data) if serializer.is_valid(): user = serializer.save() if user: return

Pagination in Admin class

2020-01-11 Thread Bruckner de Villiers
Does anyone have some example code to achieve pagination to display a model with many records in Admin, please? admin.py – class CurrencyAdmin(admin.ModelAdmin):     paginate_by=10     list_display = ('id', 'currency_Code', 'currency_Description')     fieldsets = (     (None,

specefic field(s) for each query.

2020-01-11 Thread Santhosh sridhar
You can query like this in Django, say A is the table name and B is the columns. A.objects.all().values('B') or A.objects.all().values_list('B',flat=True) Regards, San -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Facebook Like app with Django

2020-01-11 Thread Sky Luv
Hi, I am creating a social app something like facebook with Django. I do not want to "reinvent the wheel" and I know there are a lot of awesome Django packages. Could you kindly list packages that I should install to my app? Thank a lot in advance! Best -- You received this message because

react.js not rendering anything in django project

2020-01-11 Thread engineer sahab
check here full code and all details: https://stackoverflow.com/questions/59694929/react-js-not-rendering-in-django-project -- 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

Re: react.js not rendering anything in django project

2020-01-11 Thread Integr@te System
Hi, Plz look at an answer that an expert point out your typo, case sensitive usual mistakes. Thanks. On Sat, Jan 11, 2020, 21:55 engineer sahab wrote: > check here full code and all details: > https://stackoverflow.com/questions/59694929/react-js-not-rendering-in-django-project > > -- > You

specefic field(s) for each query.

2020-01-11 Thread Mohsen Pahlevanzadeh
Hello everybody, I can write django code for "select * from mytables;", but I can't specefic fields such as "select field(s) from my table;" Please help me.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

contrib.sites readonly question

2020-01-11 Thread Mike Dewhirst
I use contrib.sites I think successfully to differentiate between dev, staging and production for purposes of adjusting URLs as intended for linked resources. However, I cannot find a way to make contrib.sites data readonly in the Admin How can I make it readonly in the Admin? I've tried

Re: contrib.sites readonly question

2020-01-11 Thread Daksh agnihotri
In admin.py Class UserProfileAdmin(admin.ModelAdmin): List_display = () Readonly_fields =() ... ... .. Field in readonly_field... will have read permissions only.. I have used it. On Sun, Jan 12, 2020, 8:47 AM Mike Dewhirst wrote: > I use contrib.sites I think successfully to differentiate

How to Extract values of diffrent from foreign key in django models

2020-01-11 Thread manas srivastava
I have made a model to make friends using Django model. Now I am unable to get the friend id through the model. The model is as follows class Friend(models.Model): users = models.ManyToManyField(User) #following users current_user = models.ForeignKey(User, related_name='owner',

Re: Facebook Like app with Django

2020-01-11 Thread Motaz Hejaze
Ofcourse you can make use of many packages .. Djangorestframework Allauth As a start .. On Sat, 11 Jan 2020, 3:14 pm Sky Luv, wrote: > Hi, > > I am creating a social app something like facebook with Django. > I do not want to "reinvent the wheel" and I know there are a lot of > awesome Django

specefic field(s) for each query.

2020-01-11 Thread Santhosh sridhar
You can query like this in Django, say the table name is A and column name is name. A.objects.all() will give all the objects and A.objects.filter(name='Django') will give all the objects whose name is Django. -- You received this message because you are subscribed to the Google Groups

Re: specefic field(s) for each query.

2020-01-11 Thread 山村維宏
use values(). example: Foo.objects.filter(name='foo').values('bar', 'baz') 2020年1月12日(日) 2:38 Mohsen Pahlevanzadeh : > Hello everybody, > > I can write django code for "select * from mytables;", but I can't > specefic fields such as "select field(s) from my table;" > > Please help me.. > >

Re: "This field is required." error in REST

2020-01-11 Thread Integr@te System
Hi Garg, Which your expected results in your code!? Where the points you see errors!? Plz review again and provide us more details. Nice. On Sat, Jan 11, 2020, 18:19 Yash Garg wrote: > I have created a User registration rest api app > > views.py- > class UserRegister(APIView): > >

Re: How to Extract values of diffrent from foreign key in django models

2020-01-11 Thread Integr@te System
Hi Manas, What about User model!? (Because of ForeignKey you declared) This is where Friend.object.get() come from Friend model of current user. On Sun, Jan 12, 2020, 11:50 manas srivastava wrote: > > > > I have made a model to make friends using Django model. Now I am unable to > get the

Re: react.js not rendering anything in django project

2020-01-11 Thread engineer sahab
yes don't know what was mistake but started from scratch and now it's working On Saturday, January 11, 2020 at 10:24:17 PM UTC+5:30, Integr@te System wrote: > > Hi, > > Plz look at an answer that an expert point out your typo, case sensitive > usual mistakes. > Thanks. > > On Sat, Jan 11,