Eudes Gaël
Charly
Eudes Gaël
Haleem
can you check one more pls.
i have a "weekly" field in my model. Which has stored values as " tue,wed,fri,sat" in a string. Its the days selected by user seperated by comma. I have used CheckboxSelectMultiple in my form, where user check multiple days. Everything is good in saving to db but when I click edit, the day checkbox has not been check for all the days. Its working for the last day seleted like here its sat. I am using below for as my change_view event
def change_view(self, request, object_id, form_url='', extra_context=None):
obj = self.get_object(request, object_id)
days = obj.weekly.split(',')
for day in days:
setattr(obj, 'weekly', day.strip())
obj.save()
return super().change_view(request, object_id, form_url, extra_context)
Miguel Angel
Hi friends, I from of Southamerica, I was reading how strong is Python on investigation. But in this semester the teacher sent as a final project develop a small Django crud with login session. They never taught us about Python and Django. My question is if there any template or tutorial to do it.
Because I am really bad with frameworks, I'm junior developer on c++, c#, php, html, and css... this is a new world. But I think I can learn through the examples.
Hope you will help. Thanks.
Ibn
Miguel Angel
Yes there are YouTube tutorials about it
I have few days watching videos, I tried with a few, but the teachers told me the first time i had to use "forms.py" because on many videos didnt use, the next time the teacher told me, about to use "admin.py" and many other videos never used... he told me about use "best practices"... and I cant find.. that was i came here. I have not enough time. But I think someone could helpme
Ibn
https://youtu.be/tUqUdu0Sjyc?si=kRM5ZZ2j5GeMTeht
Virat
Hey guys, I am from India , I did an internship in Django,postgress for nearly 5 months,Now i am confident to build applications in django, But i am not sure is there any big scope in market for django or not
can you all please guide me because i am still a student , So i am not that aware of market demand and situation
Thanks
Charly
pranav
sk
Rose
User Chitra has 1/3 warnings; be careful!
Reason:
Read rule #10 to know where and how to publish job offers
Rose
User Creep has 1/3 warnings; be careful!
Reason:
crossposting
Mr.
Greetings @all I am trying to implement django cms in my working project and I follow the django cms doc accordingly. And also created an apphook to swallow all my apps url but when I use apphook in my pages from admin panel and hit the localhost I get error
NotImplementedError
None type should implement get_template
Also I'm getting the same error when I try to publish my page from the admin panel. Any idea how to overcome this problem.
Any help would be appreciated thanks in advance
Mr.
What I'm trying to do is to integrate django-cms into my already running project which are already in python and django
I'm using the python version 3.9.12
Django 4.1.13 and django-cms 4.1.0
Here is my full trackback
https://dpaste.org/837ir
Maxim
nyctophile
hi guys,
i created a basic group chat application, users can create groups and text them in these groups.
now i wanna add some functions like user need to join before texting or reading messages, and to join group_owner should approve user's request, but i do not how to do it, so i am asking for your help, can you give some ideas, examples please! here is my models.py file https://hastebin.com/share/ciyicicudi.css
Thanks in advance!
san
hello
am working on a resume builder project
here i want to use NLP for the content enhancement, is there any free chatGpt api ? if yes please let me know
Anonymous
Can i use ckeditor in django Admin.
It's safe?
Mirco
Anonymous
Ok thanks
Kevin
Any explain how to use api?
ㅤ
I'm trying to use Google 0auth in my website which run on local server (I don't purchase domain name and hosting yet)
I implemented, But it's not work, all things are set-up properly but problem in Google login,
I think for Google login/signup I need to purchase a domain name
ERROR:
Assess blocked: This app's request is invalid
Error 404: redirect_uri_mismatch
Vishnu
Am trying to schedule a query in every 1 hour. Tried using apscheduler but it's not working sometimes in production. Can someone suggest a better solution for this?
pranav
How to override templates in django allauth?
I tried creating a template in my project>templates>account>login.html but then this is not overriding the already one , can anyone help?
Vishnu
Anonymous
Vishnu
Tried celery beat?
No am not that much familiar with that. Found lot of articles about that but still confused. Is that a different version of django or a package?
Anonymous
Vishnu
Anonymous
And redis or rabitmq
Anonymous
Where the task will run automatically every hour
Anonymous
https://docs.celeryq.dev/en/stable/getting-started/next-steps.html
Vishnu
Where the task will run automatically every hour
I have to keep the task inside the application itself. I don't want to run a separate command for that. Whenever the application is started, the scheduler should also start along with it. That's the requirement
Anonymous
Haleem
i have a "weekly" field in my model. Which has stored values as " tue,wed,fri,sat" in a string. Its the days selected by user seperated by comma. I have used CheckboxSelectMultiple in my form, where user check multiple days. Everything is good in saving to db but when I click edit, the day checkbox has not been check for all the days. Its working for the last day seleted like here its sat. I am using below for as my change_view event
def change_view(self, request, object_id, form_url='', extra_context=None):
obj = self.get_object(request, object_id)
days = obj.weekly.split(',')
for day in days:
setattr(obj, 'weekly', day.strip())
obj.save()
return super().change_view(request, object_id, form_url, extra_context)
Emmanuel
Hello guys, please I have help on how to implement a payment system
pranav
Qwerty
Emmanuel
Okay thank you brother
Rose
User Vishal kumar has 1/3 warnings; be careful!
Reason:
requesting for DMs for no clear reason
ShadowOfDead(Rorshok)
I'm using Win server 2016, hMailServer, Django 4.2.7
Domain: test.domain.com
Email Address: info@test.domain.com
How to recieve emails?
Qwerty
Charly
Anonymous
A good django and html extension name please, because the django template by baptise darthenay fails to get the html snippets like img
Charly
Anonymous
extensio for what?
Like I'm not getting code hint for img which is html feature
Charly
Anonymous
Anonymous
Yes
Charly
Yes
You should have started with that
Charly
we dont know what editor are you using and editors are offtopic here
Anonymous
Rose
Ok, I'm using vs code
Your question is not related to Django.
If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Anonymous
Thank you
Sergi
hi, how can I change the default placeholder "Nothing selected" to another one in MultipleChoiceFilter?
Bablu
Hi everyone. I am starting to learn Django. Any tips or any suggestions that I should keep in mind and any best resources?
Charly
Bablu
Rose
User None has 1/3 warnings; be careful!
Reason:
offtopic
Pouya
Hello, I want to send a link to the user in Django to forget the password with the help of Celery, and I want this link to be one-time use. Can you help me how to make a one time link?!
(₤ام͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـیر͠
Hello friends
I am developing the backend of an advertisement site
Each ad contains one or more images
On the home page of the site, we have many advertisements, each of which is accompanied by a photo
I want to reduce the size of photos before posting these ads. Do you recommend this? Or is it not reasonable and involves the backend a lot?
I want to do this so that the page loading speed will increase on the front side
Mahesh
Anonymous
Use OAuth 2
He's not using it for creating apis so allauth is fine
Arash
How can i have a progress bar for file upload?
Does django has anything built in?