raven
😇
Anonymous
Help through teletype anyone??
Nitikesh
Hey everybody,I want to know the logic behind a feature of 'pubg' where every player simultaneously redirected to the playing arena and those who lose the game may exit out.
Master
And you asking this in Django channel?
Master
Leave channel and open google, idk...
Anvesh
I am upgrading a codebase from django 1.11 to django 2.2 . So while upgrading to 2.1 from. 2.0 (I am doing it step-by-step from. 1.11 to 2.0..so on) , some extra SystemCheck error are Coming which are not in documentation. Anybody can help?
Anonymous
Hi
Anvesh
And this is coming while running runserver
Anvesh
Hi
Anonymous
How can I edit objects in django if the form has init method and everytime when it is initialized has no data stored
Anonymous
I adk on stackoverflow and none has answer
Anvesh
Yes sure
Anonymous
Link to the question https://stackoverflow.com/questions/59000706/how-to-edit-object-in-forms-if-the-form-has-init-method
Anvesh
It's admin admin.e012 and admin.e130 and model.e012
Anonymous
Hi.. i have implemented a form in a modal in my base.html... which can now be accessed in any page.. how can I handle this form in my view ?
Ismael
Search for CreateView, UpdateView or FormView (depending on what you need) as class based view is easy to manage a form
Anonymous
I know all those views.. what I want is how I can handle the same form on multiple pages
Ismael
You could use {% include 'template'%} then
Ismael
You can even pass some context using with like {% include 'form.html' with form=form %}
Ismael
Hope this is what you were asking for
Anonymous
It asks for favicon.ico
Anonymous
??
Денис
It asks for favicon.ico
what's the question
Anonymous
When i run server it asks for favicon.ico not found
Anonymous
Wat am i supposed to do??
Денис
Wat am i supposed to do??
either provide a favicon in static files or remove favicon from your HTML templates
Anonymous
I dnt know how to do it
Anonymous
I m a beginner
Денис
I dnt know how to do it
Well, you have a ton of options then. But before doing anything ask Google what a favicon is (I presume you don't know this)
Anonymous
It is an icon
Anonymous
File
Денис
It is an icon
Yes. And if your server says it's not found, that probably means that your browser tries to download it, but there's none.
Anonymous
If i generate favicon.ico it gives me 4 files which should i use in that
NaamMainKyaRakhaHai
from django.views.generic import RedirectView url(r'^favicon\.ico$',RedirectView.as_view(url='/static/assets/newFavicon.ico')),
Anonymous
how can I read a csv file for validation before saving it in the db in Django?
Денис
If i generate favicon.ico it gives me 4 files which should i use in that
I assume you have more serious things to do rather than hunting a poor little favicon. Not a big deal. You will dig into that when you'll learn how to serve static files with Django and generally with any webserver
Anonymous
Ok thanks man
Anonymous
Ok
Anonymous
I am trying to learn directly from person anyone helps here??? Live
Anonymous
Anyone guys??
Anonymous
Yeah he's pro
Денис
oh god, quit embarassing me
Anonymous
Omg
Shikhar
Is there technology which works like twilio in india
cj
Add in urls.py file of your project has been created
I hope you don't do that on production
Денис
Anyone??
how's your QR code data represented? String? Picture?
Anonymous
Let's say I have multiple apps in my Django and each app with its url patterns and one of the apps it's name is blog and want to access a specific url in a blog eg. We have url with the name posts and I want to go to that link from the Html page. How can I do that?
Денис
or {{ url 'blog:posts' }}, I don't recall exactly
Mendes
Django allowed hosts problem even with ['*']
Mendes
Idk the reason, but nothing seems to work...
Mendes
Django 2.2.4 and python 3.6
Mendes
Anyone?
Muflone
Django allowed hosts problem even with ['*']
Most probably you're not using the right settings.py file
Mendes
Most probably you're not using the right settings.py file
how can I debug it? is there a way to know which settings.py I'm using?
Muflone
How do you start the server?
Mendes
python manage.py runserver 0.0.0.0:5599
Mendes
it runs on a docker container and is proxied by a nginx server
Mendes
the "disallowed" ip in question comes from the nginx container...
professor
can I ask about python core here?
Muflone
the "disallowed" ip in question comes from the nginx container...
then it isn't a django message? please post the whole message
Mendes
then it isn't a django message? please post the whole message
From where the hell you preassumed It wasn't from Django?
Mendes
Now nginx send messages of disallowed hosts? Since when?
Muflone
From where the hell you preassumed It wasn't from Django?
I don't know, you told it comes from the nginx container
Muflone
try to access directly to the development server, instead of passing through nginx
Mendes
I did, same error...
Mendes
Dude, please stop...
Mendes
Let me send you a print, I'm not that idiot to not know the difference between nginx and Django errors...
Muflone
ok
Mendes
https://prnt.sc/q1zxmj
Mendes
the error, isn't from nginx... still, idk what may be causing it...
Muflone
ok, this is from django, for sure
Muflone
in the error message, scroll down to the META section
Muflone
and you'll find the DJANGO_SETTINGS_MODULE