Dwiky
hi. i.want to ask.how to create models and can render data to matrik and how to save it to database.? tq. use numpy or django-matrix-field
Tobi
Hi, hope you guys are doing well, I have a small issue, nothing too serious, I'm building a SaaS application based on a subscription model, I have 3 plan, free, basic, premium, when a user signup without selecting a specific tier, a free tier is assigned to his account, I can achieve this easily in the save method of the user model, but If the user selected for example a standard plan by clicking on the corresponding link on the home page, how can I assign a standard tier to his account in the signup process, by the way I'm using allauth. I'm thinking of maybe adding hidden inputs on the signup form and use them to set the user subscription tier, but how can I populate the form hidden fields from the links on the home page with the right values, I don't want to put the value in the path, a part from the CharField for the tier, there is also some Integer fields I need, and that would probably look really ugly in a path, does anyone have an idea on how I can do this ?
Misha
I am doing a Udemy Course on Full Stack Web Development. Since, working together is always more efficient, so... if anybody would like to join, please send in a DM.
Sai Kumar
Hi
Sai Kumar
Can anyone solve for me
Sai Kumar
Template name error
VarunTheLord
Sai Kumar
I did not understand
Tobi
Template name error
Look at your view name or the HTML template name
Sai Kumar
I was given correct only
goku
Can anyone suggest a good tutorial on how can I send a 6 digit token to user's mail?
Ghorz
From the action point, generate random 6digit, save it in the user database record, use sendmail function to push to user email
Mohd
how to send dynamic status in ajax ?
Mohd
may anyone tell me the syntax of status in ajax
Bais
Good morning, I found a little problem with a queryset filter, if I have istartwith on a subfield like model1__filed1_istartwith="VALUE_M" it's translated in LIKE UPPER(VALUE\_M%) and it give me empty response everytime, if I useonly "VALUE_" it sends me 2 response, how is possible? I need to unescape value before sending to filter ?
Bais
field is a charfield
Bais
anybody had same problem?
sunny
Scheduling API: This involves a single endpoint, which accepts Date-Time and a URL as a parameter. When the API is called, a task will be scheduled. A GET request (no parameters needed) should be sent on the URL specified (second parameter), when the current Date-Time matches the one specified in the Date-Time parameter (first parameter). The GETrequest on the URL parameter will only return a status code, and no response body have you any idea what they want
Ak
I have hotel table with field hemail, hname, hno. hemai is primary key. How I to make foreign key in hotel room table of hemail field?
Ak
Thank you 😊
sunny
Thank you 😊
https://github.com/sandeepagrawal8875/deluxe_social_media_resume/blob/master/src/deluxe/models.py check this to know more
sunny
database Postgres 12, query return empty when _ + other character present on value.
This is my task... But I'm not understanding what i have to make
Future
hi there #question #related_manager #count i have two models A and B. B is connected to A with ManyToMany relation. i’ve created a custom manager to exclude some of the results in queryset. # definition of custom manager class NotCoolOnly(models.Manager): # since i want to use it for related fields too use_for_related_fields = True def get_queryset(self): return super(NotCoolOnly, self).get_queryset().filter(cool=False) class A(models.Model): objects = NotCoolOnly() default_manager = NotCoolOnly() name = models.CharField(max_length=15) cool = models.BooleanField(default=False) class B(models.Model): things = models.ManyToManyField(A, related_name='things') this works fine: models.B.things.count() but this doesn’t work (maybe the reason is the counting is done on database level) models.B.annotate(things_count=Count('things’)).order_by('-things_count') it counts all 'things', including the 'cool' ones. is there any workaround to make this work with Count annotation?
j&a
How can I input n lists?
Anonymous
try this request.POST.getlist('value[]')
Anonymous
hey people, can anybody help. How can i use multiple order_by() but not in django-admin but in views.py
Anonymous
in other words just order multiple fields
Mehran
Hey, How can I automate a function that runs on a specific time in django?
Vimal
Any best tutorial for django
Vimal
Suggestions please
Ghorz
Any best tutorial for django
You people always looking for the best in everything.
sunny
Any best tutorial for django
https://www.youtube.com/user/CodingEntrepreneurs
Ghorz
Rather than pick up something,
Vimal
So i asking for suggestions
sunny
Rather than pick up something,
may be he is start learning
Ghorz
Learn a little, code a little, research a little, create a project, recycle
Ghorz
Then recycle
Vimal
Sure sure
Ghorz
Use official doc
Ghorz
What ever you want is there, except writting the code for you
sunny
What ever you want is there, except writting the code for you
i'm just trying to know what question want for me
Ghorz
i'm just trying to know what question want for me
https://django-q.readthedocs.io/en/latest/
Ghorz
Read the docs, very simple to use
Faxmodem
How is it possible to access the tag property with the if ? ex: <li class="active" data-filter="*">All</li> im need use if in access <data-filter> property? {% if data-filter == all %} command—— . . {% endif %}
Sai Kumar
Can anyone help me
Sai Kumar
Template name error
Sai Kumar
I was given correct only
Sai Kumar
It was not allowing to send pics
Gowtham
The template name errors is mainly check all templates name you are giving correctly or not check in setting twice and the folders names and url names and views rendering names..
Anonymous
I create in my django project a forms.py as a Python file but created as a simple file plz solve my problem
Anonymous
help me write the delete function
Doragonsureiyā
It was not allowing to send pics
To share code or error tracebacks, be considerate and use an online pasting service - here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you post a wall of text message (many lines), delete it quick or you may get a warn strike.
Doragonsureiyā
It was not allowing to send pics
Read the rules before any activity: @PythonRules
At
Hi, can u help why i get an empty json response, instead of the questions and answers for this quiz https://del.dog/serialising.txt
Sheshadri
Hi, can u help why i get an empty json response, instead of the questions and answers for this quiz https://del.dog/serialising.txt
You are sending Quizzer object queryset to AnswerSerializer(which should have Answer object queryset)
Anonymous
can someone guide me step by step how to add background image in django template.
Anonymous
Yeah i changed it to the QuizzSerializer, still getting the same
Anonymous
that's an HTML thing, not DJANGO
but I am not able to do that
Anonymous
can you please help me
cj
but I am not able to do that
then learn HTML first
Abdulwahab
------ I have a django project that stores static files in S3 in AWS My question is .. What is the best way to compress images before uploading to s3 ? Should I do it inside django itself or using AWS Lambda function or something else ?
Богдан
I have an Exam model, I want to store the last 10 records of the user recording in it, and the older ones to be deleted, what is the best way to implement this?
Antuane
Im trying to do an authentication with LDAP, how can i debug what it is wrong because nothing happen when loggin
Meysam
Im trying to do an authentication with LDAP, how can i debug what it is wrong because nothing happen when loggin
Just checking line by line of your code. Use print() function to show the results