Eng. A'ula 🇺🇬
Mirco
for example if u need something that Django already does like the creation of a model instance by submitting a form, then use a CreateView ( CBV )
Mirco
if u need to return a simple template with a context, maybe a FBV is enough
Eng. A'ula 🇺🇬
Mirco
Mirco
Sanjarbek
#help
Hello, everyone! Please, who can help me?
I have 10 sites made with Django
Is it possible to make it so that from one time to add news to all 10
Shukurillo
Hello, who would like me to accept me like an apprentice, I am happy to help and at the same time to gather some experience as python dev.
Mirco
Doragonsureiyā
Almaz
IN AFRICA
https://pypi.org/project/django-shopping-cart/ the solution with simplicity
NoBody
Hi guys
Anyone knows how to convert :
** Salam **
In the django TextField model form
To:
<b>Salam</b>
In the template, Like telegram
?
Anonymous
How to learn Django? Some resources to learn Python and Django.
https://github.com/abbasymot/How-to-learn-Django
Luq
Is there uvicorn worker apart from gunicorn? As gunicorn basee on unix only
Almaz
Eng. A'ula 🇺🇬
Raghav
Is it possible to make share bazar broker api frontend development in django
Sh.Xudoynazarov Shov.t.
RecursionError at /
maximum recursion depth exceeded while calling a Python object
Dexter
How to edit form with multiple filefield in class based views
Sh.Xudoynazarov Shov.t.
Charly
Vivek
Anyone here who has knowledge using web scraping in django rest api? I need some guidance regarding something I want to build
Karlygach
Please, help me please with template
Dot enum
I wanted to learn the core of django. I have been working on django for 3 months. But now I need to learn the core part of it. Can anyone tell me where to begin?
Вин Король Саксов
Dot enum
What is core part
Like I know the implementation or you can say functionality of django,but I don't know what's happening in core part of django
Dot enum
Like when I use migrate for models to store in database what exactly migrate command do
Dot enum
Dot enum
So I know how it's architecture and everything works
Dot enum
Dot enum
What is the difference between one-to-one field and foreign key field
Dot enum
Dot enum
Dot enum
Dot enum
Ok I get it
Вин Король Саксов
Dot enum
One to many
Вин Король Саксов
Django has models.ManyToMany also
Вин Король Саксов
One to many
Many to one, and one to many is the same
Dot enum
Вин Король Саксов
How we use that?
https://docs.djangoproject.com/en/3.2/topics/db/examples/many_to_many/
G
I had manually added tables in DB which I connected to django later on.
Can I get all those tables as models in django?
How can I use them directly in dango, without having a model?
Any article/link?
Nazrul Islam
it might be a great help
can anyone tell me how to create django groups with permissions after migrating the database ?
project , docs or videos references would be awesome. ✊
Вин Король Саксов
IN AFRICA
Nazrul Islam
Nazrul Islam
check please
IN AFRICA
okay
Azlu
'Matching query does not exists ' how to slove?
Anonymous
Anonymous
Nazrul Islam
Nazrul Islam
Anonymous
can u explain more
#in Meta class
permissions = [(permission_code, permission_name)]
permission_code must be a string and a valid python identifier
You can set as many permissions as you want but it should be in that format
Nazrul Islam
Nazrul Islam
Muhammed
Hi there, I have a problem to create a table in HTML with Django so I share my views code and templates as follows :
Please help me
Muhammed
[31/08, 11:16] Mohammad Rajabloo: all_data = {
'a' :[1,2,3,4],
'b' :[5,2,8,4],
'c' :[3,9,3,4],
'd' :[1,7,5,4]
}
return render(request, 'Warranty_report.html', {'all_data':all_data})
[31/08, 11:17] Mohammad Rajabloo: <table border="1">
<tr>
<th>a</th>
<th>b</th>
<th>c</th>
<th>d</th>
</tr>
{% for i in all_data %}
<tr>
<td>{{i.a}}</td>
<td>{{i.b}}</td>
<td>{{i.c}}</td>
<td>{{i.d}}</td>
</tr>
{% endfor %}
</table>
Muhammed
But I got empty table
Anonymous
[31/08, 11:16] Mohammad Rajabloo: all_data = {
'a' :[1,2,3,4],
'b' :[5,2,8,4],
'c' :[3,9,3,4],
'd' :[1,7,5,4]
}
return render(request, 'Warranty_report.html', {'all_data':all_data})
[31/08, 11:17] Mohammad Rajabloo: <table border="1">
<tr>
<th>a</th>
<th>b</th>
<th>c</th>
<th>d</th>
</tr>
{% for i in all_data %}
<tr>
<td>{{i.a}}</td>
<td>{{i.b}}</td>
<td>{{i.c}}</td>
<td>{{i.d}}</td>
</tr>
{% endfor %}
</table>
{{i}} not {{i.a}}
Muhammed
{{i}} not {{i.a}}
I've got header of table in loop. Header is repeated in table not values of my lists
sai
Everyone make use of it guys
Muhammed
Sanji
Hey Guys... Can I send Verification mail in Class based Views or I have to use function based views
Sanji
?
William