Macurrent
Definitely with restframework you can
so i cant use react with django?
Sebuhi
so i cant use react with django?
Why you can there is no problem using it, you need return json data for react, api for front end developer
S.
Hi friends I have a inlineformset_factory I wanna save items like "add new item" when extras=1 and I post 3 item only 1 item save to model. when extras=3 and I post 3 item 3 item save to model but on my form teplate render 3 form for this. But I wanna 1 form and when I click "add new item" template add 1 form. How can I solve this. My english level is low. I hope you understant me clearly. Please help me.
S.
{% for field in form.visible_fields %} <td> {# Include the hidden fields in the form #} {% if forloop.first %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} {% endif %} {{ field.errors.as_ul }} {{ field }} </td> {% endfor %}
Macurrent
Why you can there is no problem using it, you need return json data for react, api for front end developer
So which one is better to use?? react with django or with restframework
Sebuhi
So which one is better to use?? react with django or with restframework
No you got wrong django restframework provides api for react app
Macurrent
No you got wrong django restframework provides api for react app
So its better if someone first learns django then to Django REST framework
Macurrent
What are some of the advantages of using react..could someone explain to me in a clear way...
Mirco
What are some of the advantages of using react..could someone explain to me in a clear way...
Code reuse by writing components, code more maintainable 'cause you can keep them totally separated , so for example if u work in teams , frontend team does not have the need of knowing about backend code , they can just focus on their stuff and call endpoints And many others advantages
Macurrent
Obviously it's the same with Vue or Angular
But its better than all of them like django is better than other python frameworks like flask
Mirco
But its better than all of them like django is better than other python frameworks like flask
Django is not better than Flask ( imho ) It depends on what are your needs
Macurrent
Yep
Do you need alot of knowledge in css grid, flask and html when using react
Mirco
css/html even the basics
Macurrent
It's more useful to know javascript
Do you use css grid and flex box with react too?
Macurrent
css/html even the basics
I thought knowing them is a waste when using react.. Thanks alot
Mirco
It's not a waste if u need them for your layout
Mirco
Thanks
Yw 😁
Héctor
what is engine ??
https://www.google.com/url?sa=t&source=web&rct=j&url=https://django-mongodb-engine.readthedocs.io/&ved=2ahUKEwjdxdyKhqbiAhUH01kKHcPLCckQFjABegQIAhAB&usg=AOvVaw2vwaYhg5vFIxrDRoXlZdcy&cshid=1558215775015 https://www.google.com/url?sa=t&source=web&rct=j&url=https://github.com/nesdis/djongo&ved=2ahUKEwi-t9KahqbiAhVNo1kKHbwUBa0QFjAKegQIAhAB&usg=AOvVaw2bfe-OhhH6LJs37AaYiEx7
Héctor
Which is better?
Le Createur
Which is better?
don' know. but you can check the number of fork/likes in github. do have an idea. no ??
Héctor
👍🏾
Anonymous
Hi to all, I have a fuctions that calculte an index of somthing inside a class, If any chance to call this methode from a tempate with javascript?
Adzmely
Hi to all, I have a fuctions that calculte an index of somthing inside a class, If any chance to call this methode from a tempate with javascript?
Ur django function just need to return json data format, from ur js just make an ajax call. However during rendering of template u can pass the value to template...
Anonymous
Ur django function just need to return json data format, from ur js just make an ajax call. However during rendering of template u can pass the value to template...
Its a module.py inside a django app, his mainly job is to apply every time an index to an satellite image, and give a us a new image as a result.
Adzmely
Whatever it do, if you make it to work properly, it should work...if you want us to help u, u should show us your code paste bin etc...the thing that you want , should work and can be done ...
Macurrent
Yep
Are you in any english group in react you add me?
Mirco
Are you in any english group in react you add me?
Nope , don't know if there are any
highnes
def addquizmark(request): if request.method == 'POST': request.user.user_marks.mark=request.POST.get('fresult') user.user_marks.save()
highnes
This gives me error RelatedObjectDoesNotExist
highnes
please help
highnes
class mark(models.Model): user = models.OneToOneField(User,on_delete=models.CASCADE,related_name='user_marks') grade = models.IntegerField(default=7) mark = models.IntegerField(default=0)
highnes
its the models.py
Mirco
Use pastebin/hastebin with your code pls Read the rules : @PythonRules
Anonymous
Try codebin https://www.uphub.io/codebin
Anonymous
Hi everyone! I wanna share my project, and choose GPLv3 license. Is this license compartable with Django?
Mirco
Frontend tutorial ( ? )
Navruzbek
Hey folks, are there any tutorials for developing machining learning with Django framework
Mirco
Render the form in a template
Mirco
Still cannot understand what you wanna know , explain better pls
Mirco
Make a choice, use Django form or make your entire form into template and handle post data into the view
Mirco
Yw 😊
Anonymous
I am confused from where should I start django I am literally craving to get knowledge
Anonymous
Can u provide me with some udemy courses or any other it will be helpful thanks in advance
SatyendraN
You can start from djangogirl website
Anonymous
Someone here has worked w8th data-importer library
Anonymous
?
Anonymous
I need help with this
Anonymous
Help, please
Arulmurugan
I am confused from where should I start django I am literally craving to get knowledge
You should start with the official documentation. That is definitely the great place to start with.
José
hello, i have a project whereby i send a html email. the email includes a button that i want it to call a url in one of my apps in the project, what exactly am i supposed to do?
Anonymous
Hello, guys! I'm making admin page on Django. I have 3 models - Role, User, Question. Any user has role. I want users with role A may be able to change questions and users with role B may not be able to change. How can I do that?
JOSHUWA
Guys how to make a login form that execute a python script in server and show results in login form? With django
George
Guys how to make a login form that execute a python script in server and show results in login form? With django
you maybe have to create a custom login endpoint and make a custom __init__ for the callback that you intend to execute on the server. And for the other stuff, in the custom form you can add a custom error message or a tip to be displayed in that case. Check the django tutorials and docs for that.
George
:)
Omia
simple is better than complex series is a great place to start
Sebuhi
Hello Python Community! I would like to to create a connection between the device(Arduino) and web server by using the MQTT protocol. As tools, we will use RabbitMQ, Django, and Django-channels for web socket. The device should communicate to the server by means of message broker in order to pass data to interface and should be possible to get back subscription by in case of any change on the interface. I know them theoretically and cannot apply practically to Django.
George
I am confused from where should I start django I am literally craving to get knowledge
Just get the official django tutorial linked in @pythonres
Mukesh khandelwal
can we access OUTLOOK messages from web application using DJANGO