Ousmane
Hello I want to put an endpoint for my jpeg files I need help
Ram
Either you are using okta or micro soft authentication
Baba
Hello,pls help. I'm having a problem with sending email with django it keeps throwing me this error👇👇 [Errno 7] No address associated with hostname
Dark T
Pls anyone can help?
https://stackoverflow.com/questions/25613965/django-email-not-sending
Anonymous
#ask excuse me to ask this, why can't I create data in views.py
Doragonsureiyā
#ask excuse me to ask this, why can't I create data in views.py
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Futorio
Hello, who knows how to migrate users auth data from mysql to postgresql?
Eng. FoDy
Hello, who knows how to migrate users auth data from mysql to postgresql?
you can try python manage.py dumpdata python manage.py loaddata
Futorio
you can try python manage.py dumpdata python manage.py loaddata
Unfortunately, data fixtures don’t deserialise correctly after calling loaddata
◄█▓▒░ ♦ᴄʀᴇᴀᴛoʀ♦ ░▒▓█►
Manage Manager – The super admin can add and edit the details of the manager. Fields: Full Name, photo in circular, contact number, email address, username, randomly generated password with minimum 8 characters guys plz help me how can i create class based model for this problem? And also how can generate random password?
Xeon
Good evening community, I am trying to host my web app on heroku I have installed everything used whitenoise but my user uploaded images doesn’t show every static files apart from that works can someone help.
Xeon
if your heroku plan is free i think there is limitation for media files.
I am trying it locally before I upload it and it’s still not working
Kelvin
Hi, I'm looking for a way to send emails to users based on a date they choose to receive such email. How can I achieve this??
Luis
Hi, I'm looking for a way to send emails to users based on a date they choose to receive such email. How can I achieve this??
I'm new to django, but I would sort the emails by date and process each sending based on time.now value, by keeping a process running to check the clock (with a time.sleep value of one day)
Luis
or maybe even simpler, send emails everyday but collect the adresses valid for the current date
Luis
and if you have no emails for a day, simply don't send
Luis
you actually only have to send once a day
Holla
any django sites to learn backend
Doragonsureiyā
any django sites to learn backend
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Holla
ok thanks but i want to go beyond the basic
Charly
ok thanks but i want to go beyond the basic
The offical documentation has anything, you'll learn more advanced topics by doing projects not by tutorials
Holla
doest the documentation have projects to follow along
Holla
i tried one project from codemy were i learned how to make dental website with django i consider that as cheating downloading a template and loading it in the server is not learning i want something
Mirco
Hi, I'm looking for a way to send emails to users based on a date they choose to receive such email. How can I achieve this??
You can just use a scheduled task that will check everyday if the current day matches with the ones you save after users' choices Obvs you have to save also email addresses
Holla
ok
Marco
Can we use subprocess module in django???
Ali
Can we use TokenObtainPairView of rest framework jwt instead of making login view?
Abhi
In django creating project when I was run that project giving me TemplateDoesNotExist
Abhi
I also checked the seeting level
Of course
operator does not exist: bigint = uuid LINE 1: ..."store_cartitem" WHERE "store_cartitem"."cart_id" = 'e80dc13...
Of course
Hi, Who know what is this error?
my database is postgres
Eng_Salah Aldin Alhaj
hello guys i have question? how to make manytomany filed choice realtime by another field
professor
how to solve?
Mirco
how to solve?
u have issues migrations
professor
no
professor
no issue showing when migrating
Mirco
u miss the table so migration issue 😊
nav
Is the built-in webserver in Django scalable enough to handle a website with 100,000 users? Is it better to use a proper webserver like Nginx or Apache?
Anuj
Hi how to convert arrayfield to jsonfield in django query
Chocolate_girl
Hi how to convert arrayfield to jsonfield in django query
First convert it into a dictionary then use json.dumps to convert
Brutus
def index(request): all_testimonials = Testimonial.objects.all() all_story = OurStory.objects.all() print(all_story) print(all_testimonials) context = {"all_testimonials": all_testimonials, "all_story": all_story} return render(request, "index.html", context) def aboutUs(request): all_testimonials = Testimonial.objects.all() all_story = OurStory.objects.all() print(all_story) print(all_testimonials) return render(request, "about-us.html")
Brutus
Index is homepage, I get data in aboutUs func but not in index one
Tohid
How to write filterset_fields in fbv
Stéphane
but if that is why I am writing to you in private, we are angry???
Maxim
but if that is why I am writing to you in private, we are angry???
so now, instead of focusing on our advice, you are continuing this pointless discussion
Maxim
but if that is why I am writing to you in private, we are angry???
PLEASE collect the full description in one message with a link to the code snippet and the full error text
Shubham
I have a problem in django for loop actually when I use for loop in table like this {% for I in products %} {{I.name}} {{I.location}} {% endfor %} But the results is like name,name,name,name location,location,location,location But i want name location name location name location name location Please help me
Ali
guys i have a datetime field in a model when i retrieve the data of this model from an api the datefield isn't show anyone know why?
Anuj
class TeamManagement(models.Model): data = ArrayField(JSONField(null=True, blank=True, default=dict), max_length=200, blank=True, default=list) g = [{'name': 'xyz', 'role': 'admin'}] TeamManagement.objects.create(data=g) TeamManagement.objects.filter(data__contains=[{'role':'admin'}]) hi i m not able to filter data. anyone please me
Jay
Can any one send me change password with custom templates
Jay
I need cbv only
Doragonsureiyā
Can any one send me change password with custom templates
We're not here to do your job for you. This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
Anuj
Can you show your models
class TeamManagement(models.Model): data = ArrayField(JSONField(null=True, blank=True, default=dict), max_length=200, blank=True, default=list)
Anuj
Is there any data in TeamManagement table already or not
g = [{'name': 'xyz', 'role': 'admin'}] TeamManagement.objects.create(data=g)
Anuj
I m try all the possible case
Chocolate_girl
I m try all the possible case
And what you want to filter exactly
Anuj
And what you want to filter exactly
TeamManagement.objects.filter(data__contains=[{'role':'admin'}])
Anuj
This is not correct format of filtering
can u help me to filter the data
Chocolate_girl
can u help me to filter the data
what output you are expecting from that query? can you say that
Anuj
i want data to filter data matching with role is admin