pollo
How can i relate angular with Django
Mirco
How can i relate angular with Django
Witte APIs with Django, consume them with Angular
Mirco
Doragonsureiyā
Thanks
You're welcome! 😊
Anonymous
hello everyone. How do I write the data to the database that came from the post?
Sajjad
do you know why when we set DEBUG = False the app can't read static file and medias?
Sajjad
can you help me?
Mirco
can you help me?
Read and study the topic into Django doc https://docs.djangoproject.com/en/3.2/howto/static-files/
Sajjad
Read and study the topic into Django doc https://docs.djangoproject.com/en/3.2/howto/static-files/
Do you think I would have joined this group if I had not done so? I probably need help somewhere because the documents could not help me
Alireza
how?
Your django project is deploying? Or in your pc?
Mirco
Do you think I would have joined this group if I had not done so? I probably need help somewhere because the documents could not help me
did u try following and spend time on what the doc says ? did u spend time by researching on internet ? it's one of the most common topic in Django and u can find thousands of posts about it! Before asking here, spend time by yourself
Vasilii
how to run api test in DRF?
Hey It's
I am stuck with more challenge, just missing this one to complete the course and get a shiny new badge. Thanks for the help! my model http://linkode.org/#mKJfev57AB7C3L7LqvvpG4 my view http://linkode.org/#iB5d106FtlRPcH2akw9K83 i want t get avarage rating from blog
Abhinesh
how to run api test in DRF?
for all apps coverage run manage.py test if specific to app coverage run manage.py test appname use coverage html for info
Abhinesh
how I should name this file?
create a folder of tests and write seperate files test_views.py, test_models.py, like that
Vasilii
thank you
Nadeem
Hi, am trying to stream video from client (html and Javascript) to backend (python and fastapi) real time using websockets and does some process and return the results to real time back to client while the video is still streaming, I managed to make it work when initially ran it but all of a sudden it became slow and am not getti g the desired results
Nadeem
Any idea how I can proceed??
Nadeem
It should be real time and video stream should be from client side
Anonymous
hey i am making react + django app
Anonymous
using rest_framework
Anonymous
but im getting 403 errors and not able to do post request to backend
Anonymous
i dont know why all things are coorect . i also cross checked urls and all things are ok
Optimus
but im getting 403 errors and not able to do post request to backend
403 is forbidden , may be due to permission or allowed method type
Javlonbek Torajonov
how to use ChoiceField in django
Optimus
Javlonbek Torajonov
on selecting table
Optimus
you can use custom form
Optimus
or django form with widgeto
Optimus
or django model form with widget
Optimus
this
model form by default give select if fk field , if u want choice in char field use widget
Ben
Hey guys, I want a complete guide for what shoud I do before deploying a django project. Would you give me a source with a full list of tips and tricks
Ben
https://docs.djangoproject.com/en/3.2/howto/deployment/
Beside the documentation Surely, it’s rich, but I need something more like a roadmap - what to be aware and check
Optimus
Beside the documentation Surely, it’s rich, but I need something more like a roadmap - what to be aware and check
for django with postgres follow this https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04
Ben
Thanks a lot
Ben
I have problem to set a price on my project, any idea where I can compare prices?
CY
Udemy
Ben
Isn’t it just for tutorial?
CY
Oh .. sorry I thought u created a video tutorial for your project
CY
My bad
Ben
That’s ok
Mohammed
Hello, I want to send notifications to my flutter app using Firebase Cloud Messaging I want a complete guide To help me do it ,I tried to use fcm-django But I don't know how to use it thanks in advance 🙏
Ben
I have problem to set a price on my project, any idea where I can compare prices?
I tried to estimate it by freelance websites, but the prices make no sense
CY
Check website that sells websites to people ... Just use Google search
Ben
Always the best option, but no luck this time
Doragonsureiyā
I have problem to set a price on my project, any idea where I can compare prices?
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Farzin
HI, I have form with multiple fields some fields have multiple values because these fields are dynamic, like: email = ['email1', 'email2', 'email3'], question is how can I use Django Forms to validate these kind of fields
Mani
Hello, i have problem with heroku My app name is : orderchampion Here's my procfile : web: gunicorn orderchampion.wsgi but it keep saying that it couldn't connect to my wsgi :( I also added allowed host,idk what else to do
Anonymous
Deploy your project to pythonanywhere
It's easy than heroku
jūdê
web: gunicorn orderchampion.wsgi --log-file -
Dk
How to generate dynamic qr code with Django template
Anonymous
How to generate dynamic qr code with Django template
There's probably a package out there that generates an image for you and you can just display that in the template using <img> tags i bet
Jerome
Hello, i have problem with heroku My app name is : orderchampion Here's my procfile : web: gunicorn orderchampion.wsgi but it keep saying that it couldn't connect to my wsgi :( I also added allowed host,idk what else to do
It's a tiny issue, you may have some dispelling or some sort because apart your wsgi.py and your app mentioned in your settings there's nothing more to do basically. Also if you have new issues, happens, install django-heroku package from pip.
Ɽ₳₲₦₳Ɽ ⱠØ₮Ⱨ฿ⱤØ₭
Can we do pagination of python lists in DRF, I'm scraping data and creating list of JSON objects I want to split my 50 results into 5 pages Is this possible
Hernan
I ask them a question. I am using Crispy Forms, I have some fields that I set as readonly = True. Although I see that the form field is disabled, the issue is that if I inspect the code and change the value forcibly when I submit the change it impacts anyway. Does anyone think of how I can avoid that?
Ben
I want to add a py file to my django project which calculate the requested data before saving it to DB. Should I worry about conflicting as many users send requests at the same time?
Sergio
Hi people, Could anyone help me with that: TypeError: Expected a 'coreapi.Document'. I'm trying to use swagger, but I got this error. Thanks in advance
Leandro
Hello Guys, I need help with django pagination. I have a page witch return my list of results, but in next page dont return data. My endpoint is in a subpage, and the parameter of ?page=1 return error. The pagination that I created has a filter for search keywords.
Willian
Hello friends people, can you help me with django Channels?
Chikal
how to import choices outside of class in another models ? example : I have users.models.py ------------------------------------------------------------ from django.db import models STATUS_ACTIVE = ( ("1", "1"), ("0", "0"), ) class Something(models.Model): name = models.CharField(max_length=10, default='john') ... ------------------------------------------------------------ then I want to import the STATUS_ACTIVE to another models, in this example I want to import the choices in inventory.models.py ------------------------------------------------------------ from django.db import models from users.models import STATUS_ACTIVE ... ----------------------------------------------------------- but it display an error ImportError: cannot import name 'STATUS_ACTIVE' from 'users.models' (C:\Users\xxxxx\yyyyy\zzzzz\users\models.py) how to do it correctly ?
Sergio
Hello Guys, I need help with django pagination. I have a page witch return my list of results, but in next page dont return data. My endpoint is in a subpage, and the parameter of ?page=1 return error. The pagination that I created has a filter for search keywords.
Add this in a new .py file, (e.g paginations.py): from rest_framework import pagination from rest_framework.response import Response from collections import OrderedDict class CustomPagination(pagination.PageNumberPagination): page_size = 2 page_size_query_param = 'page_size' max_page_size = 50 page_query_param = 'p' def get_paginated_response(self, data): response = Response(data) response['count'] = self.page.paginator.count response['next'] = self.get_next_link() response['previous'] = self.get_previous_link() return response
Sergio
It's nothing bro