thenils
Official docs isn't clear enough ?
Its good but i created templatetag folder in base director of project. In official docs folder is inside the app
âshîsh
Guys anyone can help how to register templatetag directory in settings.py file
For Django 3.1.1 Goto 'DIRS'=[BASE_DIR/'_name_of_your_folder']
Mirco
Its good but i created templatetag folder in base director of project. In official docs folder is inside the app
it does not matter, you need to specify the path inside context processors inside TEMPLATES settings
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
cj
Hello guys How can i relating django with the framework react.js
1. react.js is not a framework, it's just a library 2. use a REST API or a GraphQL API on Django and consume it in your front-end
saviollah
show your code here and what in your variable
I can't upload media to this channel, how should I do it? Should I upload the error code or all the project's code?
Doragonsureiyā
I can't upload media to this channel, how should I do it? Should I upload the error code or all the project's code?
To share code or error tracebacks, be considerate and use an online pasting service - here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you post a wall of text message (many lines), delete it quick or you may get a warn strike.
Андрей
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 🙄
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.']
saviollah
look here https://docs.djangoproject.com/en/3.1/topics/i18n/timezones/
Hi again, timezone support is enabled (USE_TZ = True) so I used "from django.utils import timezone" but I got another bigger error code here » https://del.dog/modinymexi
Андрей
i think you still don't have matching data in your database store.models.Order.DoesNotExist: Order matching query does not exist.
Mirco
Unless you change the expected input format
Андрей
yep
Irrfan
What you are sending is not following that format
Actually post data converted to date properly but when I try to run queries like filter the upper error raise.
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
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
For the most part id say its pretty simple, just need to do some reading and yes that framework is pretty handy.
Anonymous
Start by reading on what a rest api is
I know little bit of what an api is. But how to implement it,I am finding the documentation seems hard for me😤
Anonymous
Start by reading on what a rest api is
Ohh...sorry. i got it. Thanks for the advice.
Bunty chhatri wala..
After adding social login using Oauth..is it possible to save that data to database? Anyone
Klaus
Anybody know how to connect to cosmos graph db in django
Klaus
really helpful
Doragonsureiyā
Anybody know how to connect to cosmos graph db in django
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
Klaus
No good source on Web
Doragonsureiyā
No good source on Web
Try harder until you get what you want! don't give up! 🦾
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
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?
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
Anonymous
I want to integrate payment method with user limit to search on script how can i do that
Sai Krupa Reddy
django permissions
Can u eloborate?
Anonymous
Can u eloborate?
what do u mean by eloborate?
Mirco
Can u eloborate?
you have to elaborate
Mirco
I want to integrate payment method with user limit to search on script how can i do that
you packages like django-payments and then it's a matter of permissions for limiting
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