Doragonsureiyā
Anyone into djangorestframework? I'm trying to render my rest_framework viewsets detail-view in an HTML Template... I'm stuck , how do I go about it?
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
Ranken
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
Okay I created a readonlyviewset for posts using a Hyperlinkedmodelserializer which I think automatically generates a detail-view link for each post -what I'm doing: building a Backend news api to be called from javascript -what I'm expecting: I want that when a user clicks the hyperlink from the frontend it automatically renders the data to a template I prepared which can be loaded using javascript -what I'm using: Django rest framework, javascript, css and html -where I'm running the script: On a windows command line
Charanpreet Singh
Hey, I am working with MongoDB database and connecting it using djongo. However it gives me certain errors and warnings which seem that MongoDB is not presently not Compatible with django models Or ORM structure. I am using python version 3.8.5 Django version of 3.2.3 And djongo version 1.3.6 Is there any way I can connect Django with mongoDB keeping the ORM structure intact!?
Ranken
somewhere lost the part where you say that you are not satisfied with what you have
I'm not satisfied because each time the detail link is clicked it returns a django restframework default page for detail view in json format.... instead of my custom template
Anonymous
We need experienced Python developer for Back end application development. Should have experienced in creating APIs. It is a Indian startup and work from home full time job. Anyone interested dm me.
Doragonsureiyā
We need experienced Python developer for Back end application development. Should have experienced in creating APIs. It is a Indian startup and work from home full time job. Anyone interested dm me.
Rule 🔟: Job-related offers are only allowed in the offtopic group. To not be considered spam, Job offers must include: • Skillset/techstack • Contact information • Brief job description • Pay figure • And can only be posted in @PythonOfftopic.
Arunkumar
Can We create two models inside generic listview class
Cacio Lucas
People, how can I write a single generic createview two render a template with a form for two models. I have a User model and a Profile model, I want to create Users and Profiles in a single view, but I need to use a generic view or do it the cleanest way, any suggestion?
Anonymous
Hello everyone, Is there anyone who knows that how to integrate WEBRTC with #django . I want to take video from client webcam and send it to server in real time. Please help me.
Igor
Hi folks, how can i deserialize a json with nested, i have two tables, location and temperatures, i receive a json in endpoint with { 'state': 'example', temperatures [1, 2, 3, 45, 6] } but when i use my serializer.is_valid() DRF cut off my temperatures, i think is because don't have keys, any tips to validate only receiving the values, whitout a key, like in this example?
Werner
One time trial yes
Anonymous
My custom user have two fields dob, photo fields other than email password and name. Problem is the user returned after logging in does not contain the fields, dob and photo. I have fields = '__all__' in serializers. And have assigned user model to auth user model
Anonymous
How can I fix it?
Hello
How can I add 15 mins to a timefield in a model
Hello
Pls can anybody help me in this
Hello
How can I add 15 mins time to a stored time which is of timefield
Anonymous
hey everyone i need a book abot django it's name Django for professionals anyone can help me?
LEX
For every virtual environment project !! For each we need to create the admin id ?
LEX
Or
LEX
Once superuser created it is applicable for all projects ?
Swati
No connection could be made because the target machine actively refused it m getting this error while connecting my python file to database... m using sqlite
kuzmich
Once superuser created it is applicable for all projects ?
If you have the same database... you have the same users
Doragonsureiyā
hey everyone i need a book abot django it's name Django for professionals anyone can help me?
8️⃣ No piracy or illegal activity; no asking for/offering hacking, pirated software, pirated PDF, courses or other products.
Maxim
How can I add 15 mins time to a stored time which is of timefield
read the documentation on the datetime module
Anshu
For every virtual environment project !! For each we need to create the admin id ?
Until you using the same database, that is database from other projects
Manish
How to use redis cache in Flask restful API??
shashikant
Hello everyone, I am using simple jwt for authentication,and I am getting the token in response,but I want also the user object in response.how can I do this.
Arunkumar
How many days will require to complete whole Django documentation? Anybody here have finished before?
Anshu
How many days will require to complete whole Django documentation? Anybody here have finished before?
Focus on projects, and read the documentation where you get stuck, rather then completing whole documentation at once
shashikant
Parse it
Can you plz explain little bit more of it.i am using this token in login api ,I want user object to be in that response
kuzmich
JSON Web Tokens - jwt.io https://jwt.io/
kuzmich
Encoded*
kuzmich
Just pass your jwt there
kuzmich
And you'll see
kuzmich
That's why you want to decode it
shashikant
yeah ,that giving me the user id ,and from user id i can query the User model.Thanks @kuzmich
 ‌‌‌‌Hamed
Hi i have text that i must find question in it but text i think encrype how i solve it???
 ‌‌‌‌Hamed
The file is word
 ‌‌‌‌Hamed
Please help
Doragonsureiyā
Hi i have text that i must find question in it but text i think encrype how i solve it???
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
JX
Does anyone know how to configure eclipse to run a Python project that requires pygame?
B120034_Mohammad Asim Khan
Can anyone help me with activating python django evn on PowerShell?
B120034_Mohammad Asim Khan
It's something Scripts/activate ps.1 But its says script module not loaded....
Gaurav
Does anyone know vuejs i am stuck with some error
Doragonsureiyā
Does anyone know vuejs i am stuck with some error
Please read the pinned message of the group to know more about this group, the rules and also you'll find resources and learning materials there: https://t.me/Python/1162861
Maxim
Does anyone know vuejs i am stuck with some error
you need VueJS, JS or frontend group
Doragonsureiyā
Yes
Anonymous
how can i go with django serverless
Elmir
Hi, when I deploy django project to heroku, I get 'can't open file manage.py' error. Who can help?
Gaurav
How can i use django rest API in django template
Gaurav
I have made blog api want to use in django templates
Elmir
(.venv) elmir@elmir:~/Desktop/portfolio/MySiteProject$ heroku run python manage.py migrate Running python manage.py migrate on ⬢ safaraliyevelmirpy... up, run.3284 (Free) python: can't open file 'manage.py': [Errno 2] No such file or directory
Rohan
how can i go with django serverless
Depends on platform you’re trying to deploy it on
Rohan
Most platforms can work with a task definition and a container image
Maxim
I have made blog api want to use in django templates
use the model API in the template REST API is for external processes like frontend or other API client.
Elmir
Raj
how can i go with django serverless
Utilize GAE serverless facility
Maxim
but manage.py is in this folder
don't think the command passed to heroku is executed in the current folder
Rohan
Utilize GAE serverless facility
Or you can use https://www.serverless.com/
Rohan
And be protected against vendor lockin
Rohan
It provides a wrapper around most serverless platforms including lambda and app engine
Maxim
i should try which folder?
find the answer in heroku documentation
Rohan
i should try which folder?
Then your directory structure is messed up
Rohan
manage.py should be available in root of application