𝓶𝓸𝓱𝓪𝓶𝓶𝓪𝓭
Mirco
Can you explain more🙏🌹
Documentation is your best friend 🙂 also just take a basic tutorial about Sign in / Sign up and you will see how to show validation errors
Like
https://learndjango.com/tutorials/django-signup-tutorial
𝓶𝓸𝓱𝓪𝓶𝓶𝓪𝓭
𝓶𝓸𝓱𝓪𝓶𝓶𝓪𝓭
Would you recommend a book on advanced Django issues?😅
Bharathwajan
5-1//2
when i try to evaluate this expression python is giving me the results as 5 but how ? can anyone say
Mojo
Has anyone here worked with httpie? How do I send an interger when using a POST method, because sending this:
http POST http://localhost:8000/api/v1 author=1, title='something', body='a detailed body'
provides the following error:
{
"author": [
"Incorrect type. Expected pk value, received str."
]
}
James
Hello, am working on Django project as per requirements I need to manage users, groups and permissions in custom template. So I am not using default admin dashboard. How should i manage this?
Wael
Failed to load resource: the server responded with a status of 404 (NOT FOUND) [http://localhost:5000/favicon.ico]
crbug/1173575, non-JS module files deprecated.
chromewebdata:7272
Wael
hello guys anyone can find a solution of this error
Wael
non-js module files deprecated
Suhaib_0.0
Can I make a field for links inside the model?
Can I also make automatic pages html using Django?
Sea Dragon
how to server nextjs project as a static in django ?
Yog
Anyone knows about Django-filter
Doragonsureiyā
Anyone knows about Django-filter
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
Yog
How to use django-filter for foreign keys.. i have used it but it shows object 1, object 2, in dropdown list. If i mession the fild with double underscore , It shows blank search box and not dropdown list.
Jitendra Kumar
Suhaib_0.0
Bekzat
Hello, everyone. I have created model with this field. technical_reason = models.ForeignKey(
MonthlyReportTechnicalReason, on_delete=models.DO_NOTHING, blank=True, null=True) Now I tried to create it with like this object key "technical_reason": {
"violation_structure": true,
"erosive_wear":true
}, and it throughs eror "technical_reason":[
"Incorrect type. Expected pk value, received dict."
] How can I do that, like django creates itself when i just sending object like that(like not sending id, just send data of new object)
Arslan
Hello, everyone. I have created model with this field. technical_reason = models.ForeignKey(
MonthlyReportTechnicalReason, on_delete=models.DO_NOTHING, blank=True, null=True) Now I tried to create it with like this object key "technical_reason": {
"violation_structure": true,
"erosive_wear":true
}, and it throughs eror "technical_reason":[
"Incorrect type. Expected pk value, received dict."
] How can I do that, like django creates itself when i just sending object like that(like not sending id, just send data of new object)
https://github.com/beda-software/drf-writable-nested
Read this one, it should help
Bekzat
Bahar
hi there
I want to design a personal website with django, and illustrate some other mini projects, which are designed in other programming languages, in that site.
for example a calculator in c or c++.
the calculator should be worked in the site. however, i don't know that the code of calculator should be merged with the code of django? or it can be uploaded through admin panel?
Sloth
Hi
I am handling a production postgres database which currently houses a table with 10 million rows in it , I am planning to make partitions so that queries becomes faster, does django orm have support for this? Is there anyone who has done this before ? What are the changes that might be required in django side of code for this?
Не выходи из комнаты.
Hi. Can help pls?
https://stackoverflow.com/questions/69181590/django-channels-page-not-found
Yog
Bahar
игорь/igor
Bahar
Bahar
Tatiana
Hi All! I'm new in Django and need consultation about default csm .If I need to write my own admin panel,where I can find an example or something ...Can't find in google any admin panel that is not using default Django csm...pleaseeee
Tatiana
It is for web site
Richard
∫ 𝔞𝔪𝔞𝔫
Tatiana
"admin lte" html based
Thank you but I looked and find that proj based on djangos csm,also it is defined as " from django.contrib import admin"...
If rest API can help me here ?
Anonymous
No module name pill error
Anonymous
But pillow is already installed
Tatiana
Guys,need your help .
How can I create an admin panel no using django's csm ? Rest API ?
Anonymous
∫ 𝔞𝔪𝔞𝔫
Hey
Django ORM is telling me that CREATE INDEX CONCURRENTLY cannot run inside a transactional block, whereas I have atomic set to false,
What should I do?
∫ 𝔞𝔪𝔞𝔫
Anonymous
Anonymous
Check it
∫ 𝔞𝔪𝔞𝔫
In migration file I turned atomic off
∫ 𝔞𝔪𝔞𝔫
So it's no longer transactional
Is it?
∫ 𝔞𝔪𝔞𝔫
I learned this way from realpython.com, but there's been a few times it haven't worked
∫ 𝔞𝔪𝔞𝔫
I've used separate database and state btw
Abhinesh
Hi all
I am learning Django channels and done a sample project. But i cant think how to do in django rest can any one suggest any Tutorial links how to do it
albert
cj
cj
they are totally different things...
look at them as roadways
- channels uses its own roadway (websockets)
- django/DRF uses its own roadway (http request/responses)
and they can't be mixed, don't get confused because you can interact with the websockets in the frontend side using the already rendered django template... you can even interact with django channels (its websocket) without using a django template/project but with a totally external HTML page ¯\_(ツ)_/¯
Abhinesh
thanks i understood some what more useful.
Hamed
I have a project that is dockerized and I want to deploy on heroku using ci / cd.
How can I do this?
Anonymous
hi there
I wanted to add my app in django admin panel.
i wrote
admin.site.register(Post )
but it didnot work
#help
The
𝓶𝓸𝓱𝓪𝓶𝓶𝓪𝓭
𝓶𝓸𝓱𝓪𝓶𝓶𝓪𝓭
Models.py and views.py and ...
Anonymous
Explain more
just i connected postgres to django
and gonna make news publishing app
i can't add my app in admin panel
Anonymous
Models.py and views.py and ...
#model
class Post(models.Model):
title = models.CharField(max_length=150)
text = models.TextField()
#views
class ServicesPageView(TemplateView):
template_name = 'services.html'
𝓶𝓸𝓱𝓪𝓶𝓶𝓪𝓭
𝓶𝓸𝓱𝓪𝓶𝓶𝓪𝓭
Usually write this with def
𝓶𝓸𝓱𝓪𝓶𝓶𝓪𝓭
Function
cj
𝓶𝓸𝓱𝓪𝓶𝓶𝓪𝓭
Harshit
Does mysql database not support intersect and difference operation in django project.
Harshit
DISTINCT ON fields is not supported by this database backend
Harshit
Please help me
SpyDie
SpyDie
What are you trying to do?
Harshit
Iam running intersection function on django and using mysql database
Trials
Harshit
But if i have to use mysql then what is the solution
Pravin