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
S
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
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
Charly
Tohid
Charly
the thing is without the logs is impossible to help you
Tohid
Tohid
how to read?
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.
Dauletiyar
() { :;}; 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
Mirco
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."
Mirco
....
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
Bhaghi
this version is not possible for the crud operations
Bhaghi
ok
Bhaghi
Ok
Yatin
I am getting issue in installing django
Doragonsureiyā
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)
Anmol
AttributeError: 'str' object has no attribute 'tag'
Anmol
I am facing this error.
Anmol
please give me the 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
Eng. FoDy
Vladyslav
Hello.
How I can get only body of form?
I tried to do like this:
{% for body in form.instance.all %}
Anonymous
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
Sasha
Hi! are there any sources of test assignments for django juniors? thanks!
Charly
Fahil
How to create Django common login page??
Vladyslav
Anonymous
Yes, on template
Try this {{form.modalclassfoeldname}}
And in form.py create model form with class Meta
Anonymous
Anonymous
Label tag or input tag
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