Charly
Asad
Recommend me best and cheap hosting for Django?
Charly
The Inspired
Raleway!
The Inspired
Raleway is good option for hosting
Charly
Asad
Plesk VPS hosting works for Django ?
The Inspired
oh, right 😅
𝕾𝖍𝖔𝖛𝖆𝖓
Asad
Asad
Wow thank you 😊
D.
Vadim
Hi,
how to open this request in the console "POST / HTTP/1.1"?
Charly
Charly
Vadim
Vadim
pruthvee
Does anyone have Django interview questions????
Mirco
Doragonsureiyā
Does anyone have Django interview questions????
These single steps will help you a lot:
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
Sagar
Anybody suggest me,How to populate saved data in django admin form?
Sourabh
Anybody help me to create custom user form.....
! ermurat
guys , how to create adding comments under articles?
i did a model, form and view, i can add comments correctly in admin panel, but can't add from site interface
im getting error after i sent comment
view:
if request.method == 'POST':
form = CommentForm(request.POST)
if form.is_valid():
comment = form.save(commit=True)
form.save_m2m()
else:
form = CommentForm()
error:
Exception Type: IntegrityError
Exception Value:
NOT NULL constraint failed: blog_comment.comics_id
λ reo
MrOdin
Can anyone help me in designing a dashboard using django and mongodb
MrOdin
If anyone have made already pls share link
Felix
Hello guys
I have a question
When using bootstrap5
After its installation
Must I add it as an installed app in my settings.py
Alisher shamuratov
Yug
Hi
Yug
Need help for an assignment
Yug
Django related
HOOMAN
AttributeError : 'NoneType' object has no attribute '_meta'
How can i fix this ?
Doragonsureiyā
Need help for an assignment
We're not here to do your job for you.
This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻♂️
Always
Django migrations is not updating the "not null" constraint for the db column. I not able to find root cause. Need help.
Doragonsureiyā
Kumaran
Where i can learn django from beginning?
Doragonsureiyā
Where i can learn django from beginning?
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Always
When created django model, a coulmn had not null constraint disabled means "null=True" was not added. Application worked fine. After sometime, got error that column violates non-null constraint. So added the "null=True" on model. Then started the application. But this change is not done in database by the migtations. So, I have to change column parameter "not null = True" manually in database.
Need help.
Soumalya
I have deployed my django project on render. I want to buy disks. I am trying to add card but It is declining every time, I have tried with my 3 cards. Can any one help me by figuring out the issue here?
Soumalya
Always
Thanks Soumalya, I tried it but not helped. In my case, when changing column parameters in models, the created migrations are AlterField. But it is not updating the database columns.
Salahuddin
cj
Felipe
Hello guy, i need to force my django app to refresh every cashed files everytime I deploy it. Could anyone help me?
Charly
Felipe
They are stored there
Felipe
Felipe
So when I deploy a new feature all users need to manually refresh cache
Charly
Exactly
You can't mess with users computers
Charly
You need to do something called caché busting, which is basically adding hashes to the file names do if they change in content they change in names this they don't get cached
Felipe
Hovhannes
Hi there!
How i can implement chat in django rest framework ?
Hovhannes
.
How to allow user to enter admin site even though the user.is_staff=False?
I want to implement a custom condition that allows certain users to access admin site.
ZeroCool
Hi, I am creating an intermediate table for a ManyToMany relationship, my question is the following, can I create that table with the Django ORM without a primary key? only with those 2 fields?
Charly
ZeroCool
Because both fields will be unique, that is, if I have stored 1-1, 1-2, 1-3, 2-1, 2-3 but I cannot enter those same values again, that is, it no longer allows me to enter 1-1 or 1-2, it is as if the two fields make a single value, since it would be unnecessary to have a primary key(id)
Charly
Because both fields will be unique, that is, if I have stored 1-1, 1-2, 1-3, 2-1, 2-3 but I cannot enter those same values again, that is, it no longer allows me to enter 1-1 or 1-2, it is as if the two fields make a single value, since it would be unnecessary to have a primary key(id)
Django does not support composite primary keys, many things will break
Charly
Look: https://www.crunchydata.com/blog/composite-primary-keys-postgresql-and-django
ZeroCool
It's a bit complex to understand if you haven't seen many database relationships, my specific question is, is there a way to create a table from the ORM without a primary key? Any attributes I should add? something like, id = None?
Charly
Charly
https://docs.djangoproject.com/en/4.2/topics/db/models/#automatic-primary-key-fields
Charly
> Each model requires exactly one field to have primary_key=True (either explicitly declared or automatically added).
Firdaus
What kind of problem you're facing or you assume you would be facing with the Django auto generated ID?
You can just ignore it like it never exist.
ZeroCool
I thought there was a way to remove it, precisely because it will be unnecessary but I see that there is no way
Vikas
!djangotut
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Sagar
How to get instance value of select2modelwidget field in django admin
Sagar
Please help
Masoud
erorr: ModuleNotFoundError: No module named 'home.settings'
Masoud
Алексей
{{ form.id.as_hidden }} empty, what?