âshîsh
Mirco
Mirco
and then you can load inside the templates
saviollah
How do I solve this error?
TypeError: expected string or bytes-like object
Андрей
Андрей
Anonymous
Hello guys
How can i relating django with the framework react.js
Doragonsureiyā
Андрей
Just code snippet where you get that error or publish it on pestebin
cj
I wonder why is it too hard for people to read those single rules 🙄
Mirco
saviollah
saviollah
Андрей
i think the main problem here
store.models.Order.DoesNotExist: Order matching query does not exist.
Андрей
you don't have data in your database
Андрей
order, created = Order.objects.get_or_create(customer=customer, complete=False)
Андрей
or you have required field in your model
Андрей
DateField or DateTimeField
saviollah
Андрей
👍
saviollah
DateField or DateTimeField
I got a NameError with 'datetime'. Check the error code here » https://del.dog/fulekirevo
Андрей
you need to import datetime library in top of your views.py file
Андрей
but
Андрей
look here https://docs.djangoproject.com/en/3.1/topics/i18n/timezones/
Irrfan
Hi guys
I hope you be great.
Im newbie in Django and face challenge but after searching...a lot....I did'nt find anything so here I am...
Anyone knows why this error is raised?!
django.core.exceptions.ValidationError: ['Enter a valid date/time in YYYY-MM-DD HH:MM[:ss[.uuuuuu]] format.']
Mirco
Андрей
i think you still don't have matching data in your database
store.models.Order.DoesNotExist: Order matching query does not exist.
Андрей
Mirco
Mirco
Unless you change the expected input format
Андрей
Mirco
Андрей
yep
Hola!
I made a function which returns json response from a rest api ... But that doesn't approves image coming from android studio (java)
Hola!
Does anyone know the exact procedure to combine both
Mirco
Anonymous
Guys, someone asked me to make a ecommercr website. Now that's pretty simple but he said to use rest api to return products and prices. How to do that?
Do I need to learn django-rest-framework? How is it different from django?
Anonymous
Anonymous
For the most part id say its pretty simple, just need to do some reading and yes that framework is pretty handy.
Bunty chhatri wala..
After adding social login using Oauth..is it possible to save that data to database?
Anyone
Doragonsureiyā
Klaus
Anybody know how to connect to cosmos graph db in django
Klaus
really helpful
Klaus
No good source on Web
Doragonsureiyā
🚫 Ayush [1461615276] is already banned.
Edwin
Hello, I have an api and using django-restframework-simple-jwt for authentication. The account superuser account is the only one that logs in others don’t.
Akash
I want to update my class variable at regular intervals using Celery,
In my views.py I have defined as class as
class test:
name = "Jon"
def newname():
print(test.name)
and I am using a task as follow
tasks.py
from .views import test
@shared_task
def update():
test.name='Doe'
But name still remains 'Jon'
Maltapopoulos 🇲🇹
When do you save that ?
Maltapopoulos 🇲🇹
You have to write test.save()
Deleted
Hey guys, how to align ?
Deleted
input text
Deleted
in form
Doragonsureiyā
input text
Your question is not related to Django.
Please move to @PythonOfftopic group and ask there.
Georgev:
Hello everyone. I am creating a satisfaction survey in django, but I don't know how to save the answers to the questions in the model, does anyone know or have any ideas?, thanks a lot
Mirco
Maz
Guys, I have some data from an API in json format.
How do I save this json data to a Postgres database table in the jsonb field?
Mirco
Anonymous
Assalamu alaikum, I am writing asynchronous websocket. I have AsyncWebsocketConsumer class, how should I call this class in routing? ClassName.as_asgi() or without as_asgi() which correct one?
Sai Krupa Reddy
different data for different users in django
Sai Krupa Reddy
Anonymous
I want to integrate payment method with user limit to search on script how can i do that
Anonymous
Sai Krupa Reddy
Anonymous
Can u eloborate?
https://docs.djangoproject.com/en/3.1/topics/auth/customizing/#custom-permissions
here is example how to write your own permissions
thenils
how can i perform in django that without sing in user can read only 5 to 10 post
Anonymous