Orack
Share your views
no custom views
Orack
url(r'', include('rest_auth.urls')), url(r'^registration/', include('rest_auth.registration.urls')),
Mirco
no custom views
You should inherit from base serializer , because the base one raises the 400 exception by default
Quang
Hi all
Quang
In Django ORM
Quang
Any function to help query unicode character ?
Quang
For example: - input: tai, output: tài, tai , tại, tái
Jimmies San
Any function to help query unicode character ?
https://docs.djangoproject.com/en/2.2/ref/unicode/
Orack
djangorestframework has that builtin my serializers.py is empty
Mirco
djangorestframework has that builtin my serializers.py is empty
That's why you should inherit from the base one
Mirco
do u have a sample code
It's just subclassing
Orack
It's just subclassing
like class MyCustomSerializer(rest_auth.LoginSerializer):
Dani
Don't use sqlite Delete all migrations and run them again
yeah I deleted and run migrate but not fixed....can I change database?
Orack
Exactly
https://github.com/Tivix/django-rest-auth/blob/master/rest_auth/serializers.py
Orack
no function here has "username already exists" error
Mirco
no function here has "username already exists" error
Into views def post(self, request, *args, **kwargs): self.request = request self.serializer = self.get_serializer(data=self.request.data, context={'request': request}) self.serializer.is_valid(raise_exception=True)
Mirco
serializer.is_valid has raise_exception set to True, so 400 Bad Request is being raised
Dani
No probs if u are on dev stage
I am thinking to try mysql...what is your recommendation
Mirco
Luis
what's the best django hosting?
Luis
quality/price
Jimmies San
a vps on hetzner cloud for 3 euro at month. 1core 2gb ram 20gb ssd
Jimmies San
or gandi simplehosting
Jimmies San
I don't remember the price. check it
Paul
Hi. I'm using django-postman and i need to extend Message model with fk field. Any suggestions on how to make it?
Anonymous
Hey how to add simple two numbers through django API using postman
Muflone
no such table: main.auth_user_old...how can I fix this in django
There was a bug in Django 2.1 which corrupted references during sqlite migrations. It's strongly recommended that you update your Django version to 2.2 or 2.3. The database must be fixed manually or backupped, dropped and recreated from scratch using the migrations
Muflone
https://code.djangoproject.com/ticket/29182
Nichita
Hi! When I using Django, Celery, and Mongo DB appears this "UserWarning: MongoClient opened before fork. Create MongoClient only after forking." error, how can I solve this?
Paul
U can use python faker library
will check now, thanks
Gio
hi guys, how can I check if a JWT token is valid manually? I am using django-rest-framework-simplejwt
Gio
do I have to implement a custom authentication backend?
Mirco
Prashant
Hey.. In my filters project the webpage is returning blank. What should I do to solve this error?
Prashant
Ok wait
Anonymous
In form...of sign-up....method is post..... It has 4 things.. Username,email, password, confirm-password, And sign-up button... But it only return the email .. I didn't know why.......
Mirco
Use pastebin
Raam Goulikar
Any sample code for exporting html data to excel in django?
Mihail
Hi! Help me please. I want to make mass change of ForeignKey from page with list of objects in Django admin panel of model. I think the best way to do it — through Django actions. I must choose the value of ForeignKey dynamicaly (not constant in script) after I choose some objects and click run command button.
Wanjohi
Hello All. Have an issue disturbing me. There is a logic that i'm missing out. I want to get all siblings of a specific animal. e.g An animal can have many servings and a serving can only have one birth record. How can I get all siblings of the specific animal. Here's the code https://pastebin.com/Gm4miiDh
Anonymous
Hi guys,I want the best full course for learn django very well,please
Dany
Hello
Dany
Me too
Dany
Any course
Dany
Of django 2.2.4
cj
did you —both— read the pinned message?
Dany
No I dident
Anonymous
👍🏻
Dany
Something of django with graphql
Raad
Hello guys, I’m trying to build a Hotel Management System and my question is how can I deal with the options and functionalities such as check-in and check-out? Are they going to be classes in the model? What about the housekeeping, hotel setting, room types? Are they going to be classes too in the model? Please advise me
Jimmies San
search engines are your best friends :)
Raad
search engines are your best friends :)
All the ones that I found online are simple with poor documentation.
Raad
That’s why I asked here for advices 😁
Mihail
Design an intermediate page where you choose the new FK
yes, I tried to do it through rewriting of changelist_view() method. But I don't understand, how I can get in it chosen by me objects from objects list page. If do without changing of objects on objects list, it will not be enough conveniently to choose objects through ModelMultipleChoiceField without filters and search.
Mihail
Design an intermediate page where you choose the new FK
def changelist_view(self, request, extra_context=None): if request.POST.get('action') == 'change_personal_manager': return TemplateResponse(request, 'partners_mass_change.html', {'form': MassChangePartnersManager()}) else: return super().changelist_view(request, extra_context)
Alok
For index,rows in testvar.tabledata.iterrows
Alok
In this there are four columns
Alok
Among which one has number values and other has string values
Alok
Number values are getting displayed on django template but string values are not
Alok
Can anyone help on it please
Alok
It's bit urgent
Михаил
Use custom templatetag