Deep
Hi folks, django celery with redis is executing same task thousand of times. What could be issue?
https://stackoverflow.com/questions/73127161/django-celery-with-redis-is-executing-same-task-multiple-times
Anonymous
Hi, my model involves a FILE field. Thus, I have to send data with form -data, also I have fields that they are list. How I should send the list?
Anonymous
"receiverID": [ "Expected a list of items but got type \"str\"." ]
S
mongodb
Charly
mongodb
You asked about mysql in your fist question, django is not designed to use non-relational databases
Charly
yes i have connect both
then whats the question?
S
how to connect the mongodb on django
Tohid
What is this error in cPanel?
Tohid
We're sorry, but something went wrong.
S
can tell mi the process
Charly
how to connect the mongodb on django
You said you already conected
Charly
What is this error in cPanel?
You can't share photos here, write the error message
Tohid
You can't share photos here, write the error message
Web application could not be started by the Phusion Passenger(R) application server. Please read the Passenger log file (search for the Error ID) to find the details of the error. You can also get a detailed report to appear directly on this page, but for security reasons it is only provided if Phusion Passenger(R) is run with environment set to development and/or with the friendly error pages option set to on. For more information about configuring environment and friendly error pages, see: Nginx integration mode Apache integration mode Standalone mode
Tohid
And what does the log says?
how to read log file?
Charly
how to read log file?
I don't knowm probably a section in your cpanel
Charly
the thing is without the logs is impossible to help you
Charly
Its files are with gz extension
yeah these are compressed files
Tohid
how to read?
Charly
how to read?
Dare to google it?
Dauletiyar
Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/POST?csrfmiddlewaretoken=PLyeuk73vodDgAbxbQBWOjcW83dQ3cEInVsmNzKQQMtMyXs0UPfl0Tg8Te9QRp9n&name=Dawletyar&email=auesbaevdauletyar%40gmail.com&country=canada&subject=Youre+write+sms Using the URLconf defined in Django_email.urls, Django tried these URL patterns, in this order: admin/ [name='mail'] The current path, POST, didn’t match any of these. You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
() { :;}; echo Nickolas
Using DRF, can I remove properties of an object depending on the HTTP_METHOD / authentication? e.g. on an HTTP_GET by an unauthenticated user I want to remove some properties from the JSON object I return.
() { :;}; echo Nickolas
In case the user is authenticated, he "may" receive the entire object
Mirco
you need to change the serializer based on permission
Mirco
you have the get_serializer_class for this purpose
() { :;}; echo Nickolas
makes sense, thanks Micro
() { :;}; echo Nickolas
Bhanu Prakash
I am using Amazon S3 for storing user uploaded media files with boto3 and django-storages but while accessing the files i get a xml document with error message "The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256."
....
When post the data through postman of foreign key , it showing error like binding parameter 1 , unsupported type
....
Django version is 1.9
Mirco
Bhaghi
i find the one error please give solutions
Bhaghi
Using the URLconf defined in p1.urls, Django tried these URL patterns, in this order: ^admin/ ^display [name='display'] ^add [name='add_data'] ^edit/<int:id> [name='edit'] ^update/<int:id> [name='update'] ^delete/<int:id> [name='delete']
Bhaghi
url(r'^admin/', admin.site.urls), url(r'^display',views.display,name="display"), url(r'^add',views.add_data,name="add_data"), url(r'^edit/<int:id>',views.edit,name="edit"), url(r'^update/<int:id>',views.update,name="update"), url(r'^delete/<int:id>',views.delete,name="delete"),
Bhaghi
this is my urls.py
Salim
Please can anyone share a roadmap for Django framework beginners
Bhaghi
what is that
Salim
this is my urls.py
OMG why can't you use latest version of DF
Bhaghi
OMG why can't you use latest version of DF
Iam practice 1.11.17 django version Python is 3.7.0
Bhaghi
this version is not possible for the crud operations
Salim
this version is not possible for the crud operations
It's possible but more strict and difficult than newest versions.
Bhaghi
ok
Mirco
Iam practice 1.11.17 django version Python is 3.7.0
old old old for practice especially use the latest one!
Bhaghi
Ok
Yatin
I am getting issue in installing django
Yatin
i am not able to send image here
Doragonsureiyā
i am not able to send image here
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Bhanu Prakash
Without seeing your configuration is impossible to help you
i forgot to set AWS_S3_SIGNATURE_VERSION to s3v4 it's working properly now
Anmol
AttributeError: 'str' object has no attribute 'tag'
Anmol
I am facing this error.
Anmol
please give me the solution
Unknown
please give me the solution
without looking at the code....how can someone give solution?
Baljinder
Hi everyone can anyone help me with managing static files in django project i m a newbie currently learning by my own i tried more than 32 hours for making my css and js files to work but it didn't anyone willing to help pls let me know then i can send him code for the correction and for learning
Vladyslav
Hello. How I can get only body of form? I tried to do like this: {% for body in form.instance.all %}
Mahesh
Can anyone help me find any tutorial video on django bakery management system
Mahesh
I am not getting anything in youtube i just made navbar and redirected every page to its location but what to do next i cant understand
Maxim
Can anyone help me find any tutorial video on django bakery management system
stop looking for a non-existent manual and start developing if you don't know where to start, go back to learning or take a consultation P.S. this group is not for that kind of counseling
Sasha
Hi! are there any sources of test assignments for django juniors? thanks!
Charly
Fahil
How to create Django common login page??
Charly
How to create Django common login page??
https://docs.djangoproject.com/en/4.0/topics/auth/
Vladyslav
In html page ??????
Yes, on template
Anonymous
Yes, on template
Try this {{form.modalclassfoeldname}} And in form.py create model form with class Meta
Vladyslav
Try this {{form.modalclassfoeldname}} And in form.py create model form with class Meta
And its help output only body of form? Because I have custom header, so I don't need output header again
Vladyslav
Explain more so that I can help you
I have formset, but it's doesn't matter {{ form }} output header and body of table, but I need only body
Anonymous
Label tag or input tag
「‘𝒁𝒆𝒏𝒐𝒃𝒂⸸」
I have formset, but it's doesn't matter {{ form }} output header and body of table, but I need only body
You can run this {% for i in form %} <p> {{i.name}}<\p> {% endfor %} and know about names objects in the form So now use the object you need it
Vinayaka
Hii I want to merge two projects which are made in django database
Vinayaka
How I can do it I want to merge them in one
Vinayaka
Such that their database will be one