(-:
Can twilio really work offline in a desktop app?
Milan
Won't work offline, but as a desktop app yes.
(-:
Okay
(-:
Any language that has libraries that can allow phone calling offline
Amaro
Offline phone?
Anonymous
i have this code in my django template where i have 2 if blocks. My problem is that it is printing the code inside first if block but not the code in the second if block however it should because i am assigning 1 in the isBreak2 variable {% with isBreak2=0 %} {% endwith %} {% for form in form|slice:":1" %} {% if form.get_sem == 2 %} {% with isBreak2=1 %} <h1>if 1</h1> {% endwith %} {% endif %} {% endfor %} {% if isBreak2 == 1 %} <h1>if 2</h1> <h3>Semester: 2nd</h3> {% endif %}
The
Friends
The
I have passed a list to Django templates I want to display its values seperating by ,
The
We do in Python by using ",".join(my_list)
The
How can i use this in Django templates
Aneesh
Any one know about _dynamic_fields in the serializer
Jahongirmirzo
anyone used Pydantic with DRF?
sagar
Hello is there anyone who help me in my django project stock market project really need help
Aneesh
Do you know about this
Mostafa
I have passed a list to Django templates I want to display its values seperating by ,
{{ list|join:", " }} https://docs.djangoproject.com/en/dev/ref/templates/builtins/#join
The
{{ list|join:", " }} https://docs.djangoproject.com/en/dev/ref/templates/builtins/#join
Hey, Thanks but this wS giving error that join accepts 2 parameters one is given So i put plain python code in view function and passed that comma seperated string instead of list
Anonymous
Hi
Anonymous
Any idea about django audit model
Anonymous
Can anyone share proper documentation of django audit
I am in-charge of building the registration form for my project. My team suggested I implement email verification when users sign up. However I think that would disrupt the user experience. Hence, I'm thinking of validating the email address first before registering the user. (I'm using DRF)
https://pypi.org/project/py3-validate-email/ https://pypi.org/project/validate_email/ How reliable are these packages when they are integrated into my project?
or maybe anyone else have any better idea of improving my registration?
Yogesh
Hi friends I want to go into third party websites from Django.. Like google.com But I got error like this 127.0.0.1:1111/google.com Page not found So please help
Enes
Hello friends how are you
Enes
I want to make like system with django. How can i create this system
Enes
Instagram bulit with django and its have Like button. I think create that is possible
Anonymous
after you create new flags with an abstract user..how can i use said flags to restrict users without that flag from viewing certain pages?
Mikhail
If user authenticated or in group
Anonymous
You can yoused html
can you please explain..i created is_epmloyee,is_hod and is_hr boolean field flags and the is_epmloyee=True
Mikhail
you want used or not yoused you flag. for views you page
ozxx
can anyone confirm this for running cron job at every 2 minute [ */2 * * * * ] /path to job is this right ?
Mikhail
can you please explain..i created is_epmloyee,is_hod and is_hr boolean field flags and the is_epmloyee=True
def my_view(request): if not request.user.is_authenticated(): return render_to_response('myapp/login_error.html')
Anonymous
Use code sharing tools
code sharing tools? please explain
ozxx
anybody can explain where django's cronjob will send output like.... i had request to api which collect json data i am printing in cron function and i sat cron job for each minute so why there is no output on console.....
Mirco
code sharing tools? please explain
Type pastebin on Google or whatever you use as search engine It will help other ones to read better your code
Anonymous
ok..lemmi paste it then send the link..are you familiar with how i can solve my blocker?
Mikhail
doesnt this only check if a user is registered?
use user flag instead of authentication. User have is_staff you can yoused this
Mikhail
def my_view(request): if user.flag: return render_to_response('myapp/login_error.html')
Anonymous
[13/08, 4:14 pm] Samael: can i do like this. myip:8080 to open one app myip:9999 to open second app myip:9998 to open 3rd app? can anyone help me to setup this please urgently
Mikhail
open new terminal
Anonymous
nope by using nginx
M
brother how to take request.user in modelform to modelformset_factory ? because I will filter with parameters in the User model
M
I've tried it
M
encountered an error like this
M
'DetailBdlForm' object has no attribute '__name__'
M
https://pastebin.com/bntEBkWb views.py
M
https://pastebin.com/jaaKNV17 form.py
M
please help 🙏
techie
Hii everyone Can anyone please help me I want to use Razorpay, Cc avenue payment gateway in my Django projects. I did not find any tutorials, blog.
Anonymous
Hey guys
Anonymous
How to access the file that i uploaded in html in django
Aneesh
Any one know about attr.asdict(data) In django or python
Aneesh
??
S
Any can give me a complete E-commence project in python Django....plz I have need
Anonymous
How to resolve 1062 duplicate entry 1 for user_creation_id
Roman
I have 3M rows and it takes 6 second to do count() on it , is there way to optimize it or cache at some point ?
Andrej
Do you have a join in that statement? I would analyze the sql statement with the django debug toolbar
Roman
No
Roman
Just
Roman
Model.objects.count()
Roman
So I have 6 queries like that in the view and it take about 20 second to all what is super long
Roman
Postgres
Mehmet
Do you need to use custom filters while counting?
Roman
No, just like that total_ads = NewAdvertisement.objects.count()
Roman
This takes about 5 seconds
Roman
3M records
Roman
Could this be a reason ?
Mehmet
Is this table inserted externally or by your system?