Charly
Pip install Xhtml2pdf package is not supported on shared hosting, I want to generate and print pdf reports. Any alternative solution?
reportlab? but you'll have tonsof other problems if you keep using that sared hostingprovider
Asad
Recommend me best and cheap hosting for Django?
The Inspired
Raleway!
The Inspired
Raleway is good option for hosting
Charly
Raleway!
Railway*
Asad
Plesk VPS hosting works for Django ?
The Inspired
oh, right 😅
𝕾𝖍𝖔𝖛𝖆𝖓
Asad
yes
Ok let me check
Asad
Wow thank you 😊
Vadim
Hi, how to open this request in the console "POST / HTTP/1.1"?
Charly
Hi, how to open this request in the console "POST / HTTP/1.1"?
What do you mean by open a request in the console?
Vadim
What do you mean by open a request in the console?
Launched the Django server on the local network, data is being sent to this server. This data is returned by the POST request. I need to read the data that is written there.
Vadim
This format [19/Apr/2023 10:05:40] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:05:41] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:05:51] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:06:01] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:06:11] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:06:13] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:06:14] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:06:21] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:06:31] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:06:41] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:06:51] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:06:55] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:07:05] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:07:15] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:07:25] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:07:35] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:07:46] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:07:56] "POST / HTTP/1.1" 200 4 [19/Apr/2023 10:08:06] "POST / HTTP/1.1" 200 4
Charly
How can I do that? Example article please.
If you don't know what's a print() then you need to learn the basics of python first before attempting to do what you are trying to do
pruthvee
Does anyone have Django interview questions????
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.....
Doragonsureiyā
Anybody help me to create custom user form.....
No one can help you until you explain your difficulties.
! 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
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
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.
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?
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.
Felipe
Hello guy, i need to force my django app to refresh every cashed files everytime I deploy it. Could anyone help me?
Felipe
where are those files cached?
I have an app on the root of the project called front_assets
Felipe
They are stored there
Charly
They are stored there
So cached on the users' computers?
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
Hovhannes
Hi there! How i can implement chat in django rest framework ?
Charly
Hi there! How i can implement chat in django rest framework ?
Rest framework is for REST only for chats you may use something like channels there are many tutorials on google
.
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?
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
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
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
Yug
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. 🤷🏻‍♂️
I want to filter queries from drop-down. And the names in Drop-down must be populated from database whenever I select a name from drop-down it must populate data related to that name. But I am unable to find a solution for this. Search everywhere.
Masoud
erorr: ModuleNotFoundError: No module named 'home.settings'
Алексей
{{ form.id.as_hidden }} empty, what?