Elisa
Form.html
@venelouis
Only the latest
But most still using previous versions so isn't important to know how to make this support?
∴
Good morning everyone. I have studied django and would like to ask you guys: The instructor created the directory called "core". What is it?
Maxim
@sankalpj30 rule #10 violation read only 48 hours
Hildemaro
How could I save just year and month in one model?
clouded
g has been muted for 48 hours: rule #10
Alex
.....
What do you mean by "send unit test"?
simar
Anyone have django Durga sir lectures
Muflone
How could I save just year and month in one model?
Two numeric fields or use a date field and set the day to 1
Maxim
@Ali_H_Ahmad this is not a bulletin board read only 48 hours
ali
Hello, what book is good for learning about databases in django, advanced things like django design patterns, django channels ande etc.
K
Guys anyone has any django project to work on
Anonymous
Which database is more demand in django for job hunting
Anonymous
Why should we use form. Py when we can use forms in our template and make it beautiful.... What the irony of using forms.py and do you guys use forms.py in projects
cj
What abt mongo
it's not used with DJANGO
Anonymous
cj
What about the looks...
that's job for the frontend, not django... don't mix things
Anonymous
that's job for the frontend, not django... don't mix things
I mean as a fullstack developer I feel more comfortable with html forms that's why I asked
Anonymous
Like if we need to beautify it we need to install crispy forms so rather than doing it can we just simply make html forms more beautiful
cj
I mean as a fullstack developer I feel more comfortable with html forms that's why I asked
"fullstack" is bullshit word invented by recruiters to hire mediocre people to pay them mediocre salaries and make them do the work of 2 people by the price of one guy... forms in django are a very useful and powerful tool to validate and clean the data on the backend side, if you want forms widgets to look nice in the frontend, that's another different job, can you do it?, yes you can, you either use DTL to render the form widgets for you and you add some CSS things or you either deal with the widgets by hand and spend 10x the time you can earn by using django DTL, that's up to you
cj
Like if we need to beautify it we need to install crispy forms so rather than doing it can we just simply make html forms more beautiful
that's up to you, it's a frontend thingy... don't confuse it with what you called forms.py, the backend side for django to deal with data that comes from the request. you can do whatever you want on the frontend, Django doesn't care about that
Anonymous
For job hunt
Sahil
Its true validation and cleaning using form is a good practice make code clean and efficient
Ekin
how can i build createpost in views ? I have post model and including user category content and date .
Odomus
how can i build createpost in views ? I have post model and including user category content and date .
You can use generic edit view class by extending from django.views.generic.edit import CreateView and you can extend this class providing the model( in your case it is post) also you need a form_class which you can define in forms.py
Никита
Hello everyone, please tell me, is there a ready-made solution for Ckeditor-5 to change the content of the page without going to the admin panel, as well as without refreshing the page?
Odomus
Hello everyone, please tell me, is there a ready-made solution for Ckeditor-5 to change the content of the page without going to the admin panel, as well as without refreshing the page?
i think you need a create and edit view for the content. and ajax for it to update without refreshing! I could be wrong 😄
Maxim
jj this is neither a job board nor a bulletin board read only 48 hours
Maxim
@diadem2002 totally offtopic read only 48 hours
Human
Hello, if I have a website which shows realtime notification whats the latest technology used for it?
Human
jQuery will make the server always Busy right due to realoading each moments?
Abdul
Would anybody give me Django small pdf book free which is easier to understand Basic Django
Jimmies San
There is inbuilt things in django for that?
You want a websocket. Check Django channels maybe. Or django5 should have something built-in but double check it
TonFutures 💎
Hi again I need help
clouded
Hi again I need help
Impossible to help without details.
Abhi
this is my dockerfile: FROM python:3.10.12-slim-buster WORKDIR /Attendence COPY requirement.txt requirement.txt RUN pip3 install -r requirement.txt COPY . . EXPOSE 8000 ENTRYPOINT [ "gunicorn", "core.wsgi", "-b", "0.0.0.0:8000"] this is my docker-compose.yml : version: '3' services: web: build: . command: bash -c "python3 manage.py makemigrations && python3 manage.py migrate" image: abhishek142/attendence_web:latest container_name: attendenceweb volumes: - .:/attendenceweb env_file: - .env ports: - "8000:8000" so basically i want to host my docker image on render but it doesn't support docker-compose so i have created render.yaml : services: - name: web buildCommand: | pip install -r requirement.txt python3 manage.py makemigrations python3 manage.py migrate startCommand: gunicorn core.wsgi -b 0.0.0.0:8000 image: abhishek142/attendence_web:latest envFiles: - .env ports: - 8000 but getting this error in render logs : ==> No open HTTP ports detected
TonFutures 💎
I have windows server and i want to deploy it python manage.py runserver 0.0.0.0:8000 then i enter ip with port, but my site didin't run my_ip:8000/SignIn/
ali
What settings should I change in production and in overall, what should I do in production
Anonymous
RecursionError: maximum recursion depth exceeded
UnoNumero04
Please help ERROR: Could not install packages due to an OSError: Could not find a suitable TLS CA certificate bundle, invalid path: C:\Program Files\PostgreSQL\16\ssl\certs\ca-bundle.crt WARNING: There was an error checking the latest version of pip.
clouded
RecursionError: maximum recursion depth exceeded
That's not a question and looks more Python related than Django.
Jimmies San
That would halve the questions in this channel
UnoNumero04
Can we start learning how to Google?
I did google it 😏 . But nothing is working for me . So I ask u🙃 . If u don’t know the answer just shhhhh
Jimmies San
Here we go a new banned guy 😍
clouded
I did google it 😏 . But nothing is working for me . So I ask u🙃 . If u don’t know the answer just shhhhh
If you have tried to fix your issue on your own, which should be a prerequisite, then share what you have tried and what didn't work. Explain your understanding or missing understanding of the issue. Don't put the burden on the people you want to help you. And show that you've cared about it yourself.
TonFutures 💎
TonFutures 💎
My other site send request to my main site and didn't have CSRF I want to trusted just this ip
TonFutures 💎
My site doesn't have domain Just i want to accept request without CSRF with IP
TonFutures 💎
How can i do that?
Ilia
How to move from python-script with some classes and methods to Django project? I need it to use DRF in the end: I'd like to make API. What if I don't really need models (because I don't need to store any data in DB)? If don't use models - how to implement main logic? If use - how to store class methods?
Jimmies San
My site doesn't have domain Just i want to accept request without CSRF with IP
CSRF protection is generally based on tokens rather than specific domains, so... just do it
TonFutures 💎
CSRF protection is generally based on tokens rather than specific domains, so... just do it
100.34.56.75 For example this ip I want to allow it to send request(POST) without csrf Manually raise error Forbidden
Maxim
@jabawebdev crossposting read only 24 hours both groups
Maxim
@armanghandilyan don't ask for groups here (rule #6) read only 24 hours
iam
I will try to keep it short and simple query, I am using CKeditor on admin page to post i used form and widgets of ckeditor did settings gave path too, But issue is i am getting error "HTTP error occurred during file upload (error status: 500)." when i click on upload. remember i am using all the default settings i went over many searches. What can i be missing to not get this error?
Maxim
@Baccara237 contextless group link read only 48 hours
Anonymous
After submitting the form. My input aren't disappearing from the form what is the cause. Ps:used forms.py
Maxim
@RabdaSheikh totally offtopic read only 48 hours
Sree
Anyone know how to set click actions in fcm django?
Charly
Anyone know how to set click actions in fcm django?
Click actions are things on the front end not Django
MH
Hi everyone, I have django website hosted on ec2. I have multiple cron jobs. I am running that using Ubuntu default cron tab and django management commands. Well this approach is bad? Should I use celery even I have very less cronjobs or my approach is good enough. Thank you