Maxim Cheremisov
How can i change a size of the textField which i created with the help of forms.Modelform?
Jemal
hello !! how can i create carousel (like slider boxes) using django...i am kind new to django..thanks in advance
Maxim Cheremisov
Jemal
Anonymous
Hey guys I'm a Student.
I'm starting to work on a car rental system project
Anonymous
Any suggestions
Anonymous
?
Anonymous
What is better
Anonymous
Visual studio
Anonymous
Or sublime text
Anonymous
?
arrebcer
vstudio
Anonymous
Okay
Anonymous
Thanks
El
Anonymous
😃👍
El
Has many plugins
Welis
PyCharm is better )
Anonymous
emacs elpy is the best😄
Anonymous
PyCharm or VS Code
Alexander
PyCharm Pro EAP is free or try to get educational license
Anonymous
Shreehari
Anonymous
Orack
i have a collection of pdfs
Orack
is there any good opensource django ebook server to host them on a raspberry pi
👍
Murshid
my product details in one model and stock details in other model how i display using detail generic view
Orack
Orack
i want good UI
Orack
like plex media server for books
fcs
whats the advantages and disadvantages of flask and django
fcs
which one is better
Игнат
Good afternoon, I can not figure out how to make a CRUD, for the form in which 3 related models are at once, please help with this problem
Mirco
Игнат
https://gist.github.com/695938db0655328e2467387a969d6ef1
Master
1. Use formView or genetic.edit.views like Create/UpdateView
2. Use ModelForm
Игнат
I have a table in which information is stored per person, you need to add a form where information about the place of work is added, the place of work is a separate table that refers to the places of work, and the places of work are simply places (address, longitude, latitude)
Google translate
Master
3. Don't invent the wheel
Игнат
How to create a form of several ?
Master
formsets
Master
https://docs.djangoproject.com/en/2.2/topics/forms/formsets/
Игнат
How to organize CRUD ?
Master
https://docs.djangoproject.com/en/2.2/topics/forms/modelforms/
Master
https://docs.djangoproject.com/en/2.2/ref/class-based-views/generic-editing/
Maxim Cheremisov
Guys, how can i create basic message error or success in my view? Is this way proper?
messages.add_message(request, settings.ERROR, '...')
Then I'm trying to show it in my template, but it's doesn't work...
{% for mess in messages %}
<p style="color: red">{{ mess }}</p>
{% endfor %}
Maxim Cheremisov
Where might be the problem?
cj
Lucian
Maxim Cheremisov
Maxim Cheremisov
One more question...
If i have several messages in my views, how templates can understand, which message level it need to use?
So, in different templates we have {% for message in messages %}
but we have a lot of those different messages.
How our template know, which it need to use in this one?
Javi
I just learnt about the f-strings and I'm <3
cj
Maxim Cheremisov
cj
also, messages are used once by each call to a view, so they won't appear in the next call to, rather to the same view or another one
أمجد☄
ow, so it nacessary if I use more than one message?
Well you have to do the forloop, but if you ask why i think its because that it's a list since its (message[s]) and you cant just print the whole list you will have to loop at each object in that list so that it'll appear as a single message each, if you didnt it'll appear as a list not as an object.
Anonymous
Procedure to get pycharm professional version
Anonymous
Is it free for students?
Pranay
You would need @edu email
Anonymous
Okay
Anonymous
My College email id will work?
Anonymous
cj
Anonymous
cj
Okay
you only can use it to do homeworks, if they catch you using it for work, you can go to jail 10 years /s
El
Anonymous
Okay
Anonymous
Thanks
Jemal
أمجد☄