Binamra
It doesn't seem a Django error Check the error line
I again install Django latest version then it did not show the errror
ᴹᵃᵏˢᵃᵗ
I changed from sqlite to mysql
so the lines in your code doesn't match with table fields?
Binamra
Try django==2.1.7
again that incorrect padding error
Muflone
again that incorrect padding error
Do you use base64 in your code?
Binamra
but there is in error Exception Location: C:\Users\binam\AppData\Local\Programs\Python\Python38-32\lib\base64.py in b64decode, line 87 Python Executable: C:\Users\binam\AppData\Local\Programs\Python\Python38-32\python.exe
Muflone
means
import base64
Anonymous
so the lines in your code doesn't match with table fields?
Can I dm you to send the picture of the error?
Anonymous
Yeah
Okay thanks
Muflone
no
https://groups.google.com/forum/m/#!topic/django-users/PExKciSIqeU Maybe a new bug?
Muflone
Try with Google chrome browser
Muflone
https://www.reddit.com/r/django/comments/i6qyz7/incorrect_padding_error/ Weird issue
Random
I want to create a block tag for template have space in name
Random
Lik
Random
{% block "common post" %}
Random
So how can i do it ?
Random
Block only takes one argument
Random
Anyone ?
Daniele
Greetings.
Random
Ok sry for noob question i can just use _
Random
Thakyou for ignorance
Muflone
Thakyou for ignorance
You're welcome
Anonymous
How do we manage subscription in Django in best way, for example, there is a renewal every 30 days so how do we do that? Cron or something else.
Anonymous
Hi guys I have four answer quiz. How can i make its answers. Django doesn't return a button in form. :(
Anonymous
Celery Task Celery Beat
So do I run it once a day or how it should be if it a monthly subscription? also, I found this https://pypi.org/project/django-subscriptions/ , will this be helpful?
SiddiqNx™
I have a question in Django Rest Framework. I need to calculate a field value using a function. I'm using serializers.SerializerMethodField and a 'get' function for that field to calculate its value. I'm getting a NameError. The error disappears if I remove the field and the get_field function Is there anything I can do to solve this? Or can you suggest other methods to achieve the result?
WhiteDevil
Mohit
https://stackoverflow.com/questions/63427461/django-polymorphic-add-as-onetoonefield
SiddiqNx™
Andrej
Have you integrated that new field in fields?
SiddiqNx™
Yes. I have. I solved the name error it was in the function. But I'm getting a FieldError now.
SiddiqNx™
FieldError at <endpoint> Cannot resolve keyword 'unique_id' into field. I have no field called 'unique_id'
SiddiqNx™
Got it solved. Don't be bothered.Thank you.
The
i have a mysql db in django. Can I integrate the same db with some other python applications likr tkinter? Does Django provides any feature? please let me know
The
so cant we fetch data from mysql db to login section of tkinter?
Anonymous
Check the chapter Trigger. You can trigger it manually or with a cronjob.
In the django documentation I cannot find the chapter, where to look for it
Muflone
so cant we fetch data from mysql db to login section of tkinter?
You can write a new application which uses the DB but Django is unrelated
The
ok
The
so do i need to set api for the application?
Muflone
Or you could use the Django back end to answer to your app requests
Mohit
How do you do that? Any example?
https://stackoverflow.com/questions/31920853/aggregate-and-other-annotated-fields-in-django-rest-framework-serializers
Mehmet
i have a mysql db in django. Can I integrate the same db with some other python applications likr tkinter? Does Django provides any feature? please let me know
You may use same Django orm layer on your tkinter project. For django it is convenient to integrate project by setting up DJANGO_SETTINGS_MODULE env variable and developing on another stack by importing modules from django project
Mehmet
But this is not the best case for most of situations. The best approach is developing api and loose coupling the web project with desktop client.
The
thanku very much
Mehmet
Or providing same desktop functionality via django admin maybe?
Mehmet
Web apps are much more managable.
The
ooh...how can that be done?
Andrej
In the django documentation I cannot find the chapter, where to look for it
In your link https://pypi.org/project/django-subscriptions/
Mehmet
ooh...how can that be done?
If you want to develop tkinter client for some management tasks, django supports great admin tools out of the box, and you can customize by overriding class and html templates.
The
How much time would it take to learn django so I could get knowledge to crack interviews. I see most of the job description needs either backend or front end jobs with django. What does that mean. What need to be prepared for backend And what need to be studied for frontend.
The
Note- I'm new to django or python and just know all basic Python.
The
Oh.. thats lot i guess. I mean all it depends on how quick i understand things. Could u pls Answer other doubts
Muflone
or maybe you could stop to believe in future seekers and try hard yourself to study in a serious way
Muflone
backend = what happens on the server frontend = what happens on the client
Christian 🤠
Hello everyone, I'm having trouble at the time to generate a model from an existing mysql database. I was following the steps of this, I even get to run the command python manage.py dbshell and everything seems to work perfect, but when I try to run python manage.py inspectdb > models.py I get errors. Please, if someone would tell me what's happening I wold really appreciate it
Nayan
Hi does anyone know how to create django forms but i need to use 3 different table
#elvin
https://morioh.com/p/71bf7795a878?f=5c21fb01c16e2556b555ab32