problem in login rest API framework

2019-07-06 Thread laya
AttributeError:'Student' object has no attribute 'check_password' I user Custom User Model named Student which inherits Django User Model. I have problem in its logon when I want to use check_password. The error is that Student which is a custom user model has not such attribute. I wanna login

Re: Multiple roles Django 2

2019-07-06 Thread laya Mahmoudi
You should add some code in your settings.py like AUTH_USER_MODEL= 'appname.modelname' which inherits django user mode. در تاریخ یکشنبه ۷ ژوئیهٔ ۲۰۱۹،‏ ۳:۳۷ Shazia Nusrat نوشت: > Hi All, > I am having hard time to get multiple roles for users in a project and I > am having errors. > I've added

Re: what is the meaning of this error

2019-07-06 Thread laya Mahmoudi
I usually fix this error by entering the exact version which matches the other installed packages. Like pip install packagenane== version like: 1.10 در تاریخ یکشنبه ۷ ژوئیهٔ ۲۰۱۹،‏ ۸:۱۵ Saeed Pooladzadeh نوشت: > Hello > > I try to use wagtail cms and my ide is visual studio with python plugin.

Hi frds...

2019-07-06 Thread ravikumar dingari
How to add dynamic categories with dependent dynamic sub categories in Django Admin? And also Default Admin Dashboard looking not good, so any alternative or can we create own dashboard? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

using forms in APIView to send post request in django

2019-07-06 Thread Arya
i'm making an OTP app using class based views. the bottom is the class for generating and sending OTP to a phone number. the template works good and when i press the submit button in my html form it sends a post request and it returns response: 'phone number is not given in post req' so the

what is the meaning of this error

2019-07-06 Thread Saeed Pooladzadeh
Hello I try to use wagtail cms and my ide is visual studio with python plugin. When I wtite this cmand : $ wagtail start mysite I get this error: ERROR: Could not find a version that satisfies the requirement mysite (from versions: none) ERROR: No matching distribution found for mysite -

Re: Multiple roles Django 2

2019-07-06 Thread Mike Dewhirst
On 7/07/2019 9:07 am, Shazia Nusrat wrote: Hi All, I am having hard time to get multiple roles for users in a project and I am having errors. I've added related_name but still getting error. Can please tell me how to fix this? The error provides a hint. You need an extra argument ...    

Multiple roles Django 2

2019-07-06 Thread Shazia Nusrat
Hi All, I am having hard time to get multiple roles for users in a project and I am having errors. I've added related_name but still getting error. Can please tell me how to fix this? *** from django.db import models from django.contrib.auth.models import

Re: 404 not found

2019-07-06 Thread Marvelous Ikechi
Your URLs.py file is not descriptive enough. On 9:08AM, Mon, Jul 1, 2019 Soumen Khatua wrote: > Hi Folks, > i'm using Django 1.11 and is et up everything properly but at the wrong > url django redirecting to 500 page instead of 404 page.Please help me,How i > can solve this problem? Here is my

Upgrade django-synchro for django 2.2 : OperationalError - no such table: django_content_type"

2019-07-06 Thread Loys Masquelier
Hello, From : https://stackoverflow.com/questions/56875632/upgrade-django-synchro-for-django-2-2-operationalerror-no-such-table-django I am trying to upgrade django-synchro to django 2.2. I have already upgraded the project to django 2.1 but I have now a problem with ContentType object

Full text search in multi language columns

2019-07-06 Thread Héctor Alonso Lozada Echezuría
I am trying to implement a full text search in django 1.11, in my model product_name and foreign_name can have values in English and Spanish, in pastebin I have published my model with a manually created index which works very well with the query, I would like

Re: get_absolute_url() necessary with ModelForm ?

2019-07-06 Thread Daniel Roseman
On Thursday, 4 July 2019 18:45:47 UTC+1, axe...@chaos1.de wrote: > > I’m using a model in 2 apps with different urls. > Subclasing it and overwriting get_absolute_url() did not work, > because it mangled dbtable. > UpdateView does not work with ModelForm w/o get_absolute_url(). > > Does there

Django Channels Redis: MaxClientsError

2019-07-06 Thread Cédric Foellmi
Hello everyone. I am seeking some help with Django Channels and Redis. I have a Django app running on Heroku. This app is rather simple: a Daphne server, a background worker and a scheduling beat worker (the last two, using Celery). I noticed I hit *very often* Redi's MaxClientsError (every

django sessions

2019-07-06 Thread Luka Lelashvili
Hello, how can I access session in my base.html? {% request.session.name %} doesn't work on base.html any clues? -- 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

Re: Searching with respect to gender and BY name

2019-07-06 Thread Surya Adhikari
Thank you so much it worked!! On Friday, 28 June 2019 20:27:23 UTC+5:45, jjmutumi wrote: > > Hello, > > I think it should work if you build the query sequentially. Like: > > def search(request): > if request.method=='POST': > srch = request.POST['srh'] > srchs = request.POST['gender'] > > if

Re: Django 2.2 Media files

2019-07-06 Thread John Bagiliko
You need {{ item.image.url }} on your template since you are iterating through the context you passed in views. I'm sure you did something like this in views def home(request) images = Your_model.objects.all() context = {'images': images} return render(request, 'path_to/your/template',