Anonymous
use {% url ... %} tag
Not in template
Anonymous
In the views.py file
Anonymous
Inhave to write dynamic url
cj
In the views.py file
use reverse(...)
Anonymous
How?
Anonymous
It gives noreversematch erro
Xavier
It gives noreversematch erro
then check url.py if there is a url like that
Anonymous
Hello all , need help
Anonymous
Can we connect oracle DB with Django
Anonymous
Actually I want to do testing from pycharm
Anonymous
Pleas help
Anonymous
I installed connector I.e
Doragonsureiyā
Pleas help
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 firsts results
Anonymous
Okay
Sweetie
Guys I need help, how to decrease balance from account, balance will be virtual money
I am trying to make use of django inlineformset I have following models: class Task(models.Model): title = CharField(max_length=20) class Person(models.Model): name = CharField(max_length=20) class Assigner(models.Model): person = ForeignKey(Person, related_name="delegated_tasks") task = ForeignKey(Task) class Assignee(models.Model): person = ForeignKey(Person, related_name="assigned_tasks") task = ForeignKey(Task) I am trying to make inlineform for Task so a task can be created and in same form multiple Assignor and Assignee can be assigned. The form works fine until the Task creation form. But when I add inlineformset it does not work. I followed this tutorial https://dev.to/zxenia/django-inline-formsets-with-class-based-views-and-crispy-forms-14o6 Anyone has a working example with inlineformset?
Anonymous
!res
What?
Xavier
https://docs.djangoproject.com/en/3.0/topics/forms/formsets/
Sweetie
https://docs.djangoproject.com/en/3.0/topics/forms/formsets/
What I am trying to do it: CreateView will create new task and let me select multiple Assignee from a drop down all in same page. Will this work for above purpose?
Xavier
https://docs.djangoproject.com/en/3.0/topics/forms/formsets/
once u read the docs (will take maximum 10min) u will know whether it can help u
Xavier
maybe i got your question wrong but u can try this https://docs.djangoproject.com/en/3.0/topics/auth/default/
Anonymous
I can't related all
Muslim
I can't related all
Learn English 👌
Anonymous
ok
Xavier
have u used <video> tag?
Xavier
can u share the html code using pastebin.com
Xavier
can u check if the {{ media }}/test.mp4 exist? to see that u can do base_address/{media_name}/test.mp4 in the address bar of the browser also can u show whats the media name u are using
Xavier
ok that's weird
Xavier
u sure its mp4 format and not other
Xavier
yep
Romila
Agnes T: Where list=["[{'id':'1352','name':'1342'},{'id':'145','name':'145367'}]"] How do I get value of name
Romila
It is nested list
Muslim
It is nested list
It’s not, u should learn python and check this list through python shell
Romila
Yes
Xavier
Yes
are u using Jsonresponse or httpresponse to get this?
ps
Zoom video call use in website, can anyone tell me how?
Govind
Hi Everyone, please anyone help me to solve below error? raise ImproperlyConfigured("Cannot import ASGI_APPLICATION module %r" % path) django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'chat.wsgi'
Xavier
Yes http response
can u just paste the return statement which u are using to get the json using pastebin.com
Oybek
how to get filename from binary data
Dakshesh
I need some help guys I've created a blog similar to Corey Shafer's Django tutorial, but instead of a Login option on the page, I would like to create a Tkinter program that asks for Login details and transfers to the website
Amen
Can anyone help if this is understandable to you ? ( I know its very confusing)
If you’re trying to authenticate through tkinter maybe use restauth
Amen
import ast name = ast.literal_eval(list([0]))[0][1][“name”]
Levy
Hi who can give me a tkinter link?
Doragonsureiyā
Hi who can give me a tkinter link?
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Roman
Hi guys , can someone explain me what is number of workers in gunicorn ?
Roman
Is it like the amount of requests that can be executed in parallel ?
Kifaru F
Hello Everyone I am working on a project to manage a care home. I am looking for someone to work it. If you are interested and free contact me . You will be paid for your time and input
Pankaj
I need help in channels How to send data in the channel layer from outside the consumer
Pankaj
Which is the best library for organization related models
utkarsh
Can anyone help me out... If user enters some details on the website how can i get the details stored directly to the database
utkarsh
🙏
Xavier
Logic behind this
https://docs.djangoproject.com/en/3.0/topics/forms/
Xavier
reading this will clear it up
Xavier
Which is the best library for organization related models
many to many field is a great relational field for relating models
Sweetie
once u read the docs (will take maximum 10min) u will know whether it can help u
I read all formset, inlineformset and modelformset After the read I came to a conclusion that inlineformset is suitable for my usecase as my models are linked with a ForeignKey. Now everything is working my form is able to have inline form but I am unable to dynamically add remove inline items. Which approach you used for this? I found a library django-dynamic-formset for this but not able to make it work. It does adds a delete checkbox but I am unable to make add row button to work.
Sweetie
u can actually delete a inline item and it will actually remove itself from the key set of the parent model and also that on_delete=model.CASCADE (by default) that is responsoble for that
I am more concerned about letting user add more inlines. For now it renders 1 if I set extras to in in formset and 2 if I set to 2. But I want to let users add 1 to unlimited inline items. This part is not working
Xavier
it works too u gotta just change the max limit via js
there is an element with id=form_TOTAL_FORM u can change that value dynamically with js
Xavier
and the max formset can be increased
Roman
Hi guys , I need to have 30 concarent request at the time , how can I set up gunicorn to work fine with it ?
Roman
Will 6 workers and 5 threads work fine for each ?