Anonymous
How can we view pdf in mobile view ...any one please help me with this
Anonymous
I have built a website ...that has embedded pdf ..... It is possible to view it in desktop...but not viewable to view in pdf....as chrome doesn't support pdf viewer...so what is the other solution for it...if anyone has built suchthing...please help
Anonymous
Now viewable.to view in mobile
Javohir
Hi every one. I'm using django model translation. How can I disable not translated data when language choosen. I disabled MODELTRANSLATION_ENABLE_FALLBACKS= False but, it returns data with empty string.
Banjo
Hi guys, please i need some tips I want to build web projects as a web developer but i need some designs for frontend that i can use for such projects but i don't know where to find them Thanks
Anonymous
Yes ... actually I have developed an epaper website ...using django ...i.e coded in python ...for frontend I am using html and css...now problem I a facing is this...that epaper pdf is viewable in desktop...but not viewable in moblie phone
Anonymous
Because android chrome doesn't support pdf viewer...
Ajay
Which Pdf viewer library using in frontend side js? Is pdf link send in api or by django context path variable
Tuart
Does anybody know how to change value of object field when using bulk_create()? (it's not call save() method of objects) #django_orm
Anonymous
Which Pdf viewer library using in frontend side js? Is pdf link send in api or by django context path variable
No as such library I am just passing pdf URL from the django view file.. and displaying it using embed tag in html
Ajay
Did you try it with FileResponse type and set content type pdf?
omkar
total i have 10 object in model2 4object of abc(model1) and 6 object of cba(model1). Used Foreign key(model1, on_delete=CASCADE I want to access only those data which is associated abc. Or cba
A
can anyone help please: https://stackoverflow.com/questions/66257246/multiply-every-form-value-in-django-template
ivan ulchich
I configured to use Django-private-storage for my media files. But all my APIs work through DRF simplejwt. And eventually it seems that private-storage totally ignores jwt tokens. It works only over session id. QUESTION: Is there a way to integrate Django-private-storage and DRF so that private-storage can understand simplejwt tokens?
𝑀𝒶𝓉𝒾𝓃
I use the Django authentication system, and for this I created a template, named this file login.html and in the registration directory. I already had a file with this name (login.html), and then I created this file and deleted the previous file, now pycharm does not accept the new file as html, and because of this I can not put Django template in this file and Leave a link. And you know you can't rename the file, because then the Django template authentication system can't find it. And now I do not know what to do. What can I do to make pycharm accept this as html?
Kaushal
Hello everyone. I would like to upgrade my Django skills. For this I want to work on some real world projects. So if you are working on any project and need a partner then please do let me know.
Anonymous
I use the Django authentication system, and for this I created a template, named this file login.html and in the registration directory. I already had a file with this name (login.html), and then I created this file and deleted the previous file, now pycharm does not accept the new file as html, and because of this I can not put Django template in this file and Leave a link. And you know you can't rename the file, because then the Django template authentication system can't find it. And now I do not know what to do. What can I do to make pycharm accept this as html?
This may sound silly ...but whenever I face such problem what I do is that...create another project..similar to it...and copy paste the files in which I had written code manually....and run it in server...then the issue get resolves... because such issue are because of the files in which we have not code manually...so we change the other files...but dnt know how and where to make changes in the bydefault code
Anonymous
Hi! What is the recommended structure for a Django project? Do you have some references? Thanks!
Павел
Hi! What is the recommended structure for a Django project? Do you have some references? Thanks!
https://www.askpython.com/django/django-app-structure-project-structure
Anonymous
Hi How can I use validators in ModelForm?
Charly
Hi How can I use validators in ModelForm?
it already has some validations from model, what do you want to use?
Anonymous
Thanks! I'll see it!
Anonymous
it already has some validations from model, what do you want to use?
I wanna use cleaned_data and regex for a field in ModelForm
Anonymous
Resources to learn web architecture ?
𝑀𝒶𝓉𝒾𝓃
𝑀𝒶𝓉𝒾𝓃
I did it, but to no avail, my problem was not solved, In another project, I created and ran a file with the same name, but in that project, it did not recognize this file as html. Does anyone know how to change pycharm settings to recognize the file as html?
I use the Django authentication system, and for this I created a template, named this file login.html and in the registration directory. I already had a file with this name (login.html), and then I created this file and deleted the previous file, now pycharm does not accept the new file as html, and because of this I can not put Django template in this file and Leave a link. And you know you can't rename the file, because then the Django template authentication system can't find it. And now I do not know what to do. What can I do to make pycharm accept this as html?
Tarun
Hi everyone .
Tarun
I created one app named rango . In that index page I have some categories like Python , Django .Whenever I click on Any category ,it should be redirected to that category pages list . So when I click on Python it should be /rango/category/Python but In case it is redirecting to /rango/category/ only.
Tarun
Please help me
احمد الغامدي
i am using graphene and getting 'name' is an invalid keyword argument for GuestMutation error what is it related to?
احمد الغامدي
https://stackoverflow.com/questions/66254923/getting-name-is-an-invalid-keyword-argument-using-graphene-django More details
Anonymous
How to append an array of objects at my django database
Anonymous
I have this api that contains Object1 instances, now I want to add an array of Object1. I mean, I can do it one by one but I thought if it was a way to make them all together
Anonymous
Because I want only one response if it failed or not at the frond end
𒂵𒐊𒍝𒊏
'<frozen importlib._bootstrap>'
𒂵𒐊𒍝𒊏
what that erorr pleace
Rajni
How to revert back migration?
Mirco
How to revert back migration?
Just migrate the number before specify the app
Ray of Hope
I have deployed my django app in Linux server using nginx and gunicorn, but the static files are not loading Can someone please help me fixing this
Ray of Hope
I have clearly provided that static path in nginx configuration
Ray of Hope
Can't understand what is happening
Maz
I have deployed my django app in Linux server using nginx and gunicorn, but the static files are not loading Can someone please help me fixing this
Share your config files(hide your sensitive info)...and your stack trace. Otherwise we also dont know what is happening. Use dpaste.com
Yoni
Hi, I am using Django. I have an attribute in a model that uses a tuple of options, that reaches the template as a select and everything is ok, the problem is when the form is sent by POST to the view, and I try to access form.cleaned_data ['attribute'], it tells me that this array doesn't have that attribute, and it's true, but my question is how can I access that attribute
𒂵𒐊𒍝𒊏
Sumerian?
Yes, my name is written in Sumerian, they are from here from Iraq
𒂵𒐊𒍝𒊏
Shaxboz
who is know how can sort order by datetime comed in api(dict) < rest_framework
Harish
How to set session
Doragonsureiyā
How to set session
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Evgeniy
Please, help me. I should use MySQL with Django (Virtual hosting, without Postgresql, only MySQL 5.6). I made migrate and load data from dump.json successfully. I use configuration in settings.py without my.cnf file (because VH doesn't give access for edit this file). However my site gets errors. If I use sqlite - the site working. Where should I find a mistake?
Rohan
Hey guys is there any hiring portal which only has django related hiring post?
Rohan
Like only dedicated to django and pytho related
Pratik
how to redirecting to new django url after successful ajax function execution
Rohan
// similar behavior as an HTTP redirect window.location.replace("/url-name/");
Rohan
this should be in ajax success callback
Pratik
but i also wants to pass data
Rohan
you are passing the data in url?
Pratik
no i need to pass data from the new url
Rohan
can you provide some use cases so we can understand more about the approach? or someone can suggest a better one.☺ cheers
Pratik
after ajax function execution i want to redirecting to new django url and in this url i also wants to pass some so i render that data into template
Rohan
then use the post method n......look.....anyhow you wanted to redirect the user right, so why to make more complicated. just use post form, put the data in hidden input tag, if don't want show the people and then get the data in request.method check...and simply use redirect and related data to pass to new url.
Rohan
if this is what can solve your problem.
Rohan
https://stackoverflow.com/questions/3513971/page-redirect-with-successful-ajax-request
Rohan
Try o get values from data, might be helpfull.
Rohan
that all from my end
Rohan
thanks
De
Hello guys I'm learning django, I created a video download web app , and it works normal in my local pc but after i upload it download a video within the app , So i need help how to set a path so that it will download the video to the local storage of device.