Eudes Gaël
You need to check the documentation.
Is there any link where I can check it?
Charly
Is there any link where I can check it?
You can google whats the django's website. But at this point you SHOULD have read at least some parts of the documentation.
Eudes Gaël
You can google whats the django's website. But at this point you SHOULD have read at least some parts of the documentation.
Okay, thank you so much. I will do it with, and come back to let you know how it goes.
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.
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
Miguel Angel
https://youtu.be/tUqUdu0Sjyc?si=kRM5ZZ2j5GeMTeht
I understand. There is no simple or small way. There is no examples I have to learn all about Django. Thanks, I appreciate. 👍
Mohammad Reza
I understand. There is no simple or small way. There is no examples I have to learn all about Django. Thanks, I appreciate. 👍
Hi there What do u want exactly ? Looking for a good course about Django?! or .. Looking for someone to do your project ? If u are looking for a django course i Introduce Maximilian in Udemy
Miguel Angel
Hi there What do u want exactly ? Looking for a good course about Django?! or .. Looking for someone to do your project ? If u are looking for a django course i Introduce Maximilian in Udemy
A course could be a good option in long-term way, but I'm not looking for a course. Because will never use django again in the next semesters. The important thing for me is understand the basics of a crud on django through an example without bootstrap. And the last thing, the idea of someone doing the project for me, could be the last option if i cant do. But I dont know where to find people can do.
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
Rose
User Chitra has 1/3 warnings; be careful! Reason: Read rule #10 to know where and how to publish job offers
Jibril
I would like to do the Same thing with PostgreSQL. How can I please do it?
install PyMysql: python3 -m pip install PyMysql then in __init__.py add import pymysql pymysql.install_as_MySQLdb()
Virat
The easiest way to validate this is you going to a job board (local so you make sure it applies to you) and see that positions available fro django
Firstly thanks for replying Yeah there are some positions but I want to ask , i know basics of devops so, like i should continue in django which is not that widely used but i am descent in it or try out devops which has higher scope , what's your opinion?
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
Rose
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
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase.
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
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
Rose
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
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
Can i use ckeditor in django Admin. It's safe?
Mirco
Can i use ckeditor in django Admin. It's safe?
yup django-ckeditor is the package
Anonymous
yup django-ckeditor is the package
It's safe .? It's showing errors. Isn't supported anymore
Mirco
It's safe .? It's showing errors. Isn't supported anymore
https://django-ckeditor.readthedocs.io/en/latest/ This one is supported
Anonymous
Ok thanks
Kevin
Any explain how to use api?
Qwerty
Any explain how to use api?
Read about http-protocol, after this about 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
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?
Vishnu
You have to install celery for it
Will try that, thank you.
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
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
Change the template name in all auth urls itself. Or override the default URL of all auth.
Create a new views and then render a different template on that url?
Qwerty
Hello guys, please I have help on how to implement a payment system
https://docs.stripe.com/payments/checkout try this.
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?
Anonymous
A good django and html extension name please, because the django template by baptise darthenay fails to get the html snippets like img
Anonymous
extensio for what?
Like I'm not getting code hint for img which is html feature
Anonymous
what codehint? where?
Like the snippets
Charly
Like the snippets
Are you talking about your editor?
Anonymous
Yes
Charly
Yes
You should have started with that
Charly
we dont know what editor are you using and editors are offtopic here
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?
Sergi
hi, how can I change the default placeholder "Nothing selected" to another one in MultipleChoiceFilter?
I tried like this, but it didn't have any effect: product = MultipleChoiceFilter(choices=Product.PLATFORM_CHOICES, null_label=_("Empty"), widget=Select2Widget( attrs={'placeholder': "Another selector"}))
Bablu
Hi everyone. I am starting to learn Django. Any tips or any suggestions that I should keep in mind and any best resources?
Bablu
The best tip is to use the documentation a lot.
Thanks. I will definitely apply it
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
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?