highnes
document.getElementById not working in my code
highnes
Someone help me with this js
highnes
please..
Doug
please..
We'll need to see the HTML also
highnes
https://www.uphub.io/bin/yReiQf
Сергей
I receive blob file on beckend it`s like <_io.BytesIO object at 0x7f3a85c68bf8> how can I save it to image field?
sravan
https://www.uphub.io/bin/yReiQf
Where is your js file ?
Oleg
Hey, here's a survey about @django and @python administration. If you could answer it, it would be great. https://docs.google.com/forms/d/e/1FAIpQLScqMA2AXGf50aOu-vC4J2hzMa0JpzRw9Z-GU7jy8EATv_cppg/viewform
Loki
why does PointField store coordinates like (longtitude, latitude) insteand of (latitude, longtitude)? Is there any way to configure it?
Anonymous
Hey guys, i want to get volume in decibels from an audio file using python in time intervals is there any resource which i can follow???
Loki
why does it matter for you btw?
As I see google maps and opestreet (and I guess every other map) uses (lat, lng) so I wonder why PointField uses (lng, lat). Doesn't make sense for me
inchidi
As I see google maps and opestreet (and I guess every other map) uses (lat, lng) so I wonder why PointField uses (lng, lat). Doesn't make sense for me
i dont know the correct answer but i think because it represented as Point and x is the first parameter, while latitude is like x of our earth, maybe?
inchidi
Hey, here's a survey about @python administration. If you can spend your time to fill this survey, it would be great. New member? then you've been muted for 5 minutes to read the rules properly before doing anything, please don't PM anyone asking why you were muted! By joining this group, you agree with the Django Code of Conduct Here are some resources to start with django
Anonymous
hello fellow members.... I'm not a django developer but I'm confused what to learn... nodejs or Django?
Anonymous
anyone?
Anonymous
please help.
Doug
hello fellow members.... I'm not a django developer but I'm confused what to learn... nodejs or Django?
Are you trying to figure out what direction you want to go with development? Your question is kind of vague.
GNU/Matt
well
GNU/Matt
nodejs is slightly different from django
GNU/Matt
django is a python-based web framework, Nodejs is a javascript-based web framework
⟨ Simon |
that's wrong
GNU/Matt
Their specifications and caracteristics are completely different
⟨ Simon |
nodejs is not a web framework
GNU/Matt
⟨ Simon |
you're confusing it with express
GNU/Matt
nodejs is not a web framework
Sorry, I'm not a Js expert
⟨ Simon |
hello fellow members.... I'm not a django developer but I'm confused what to learn... nodejs or Django?
You should either ask "Nodejs or Python" or "express or Django"
⟨ Simon |
should I go with express or django?
depends on which language you prefer
⟨ Simon |
in a Django group people will say django
Anonymous
depends on which language you prefer
which is better as per industry scenario.?
Anonymous
irrespective of learning curve.
Oleg
which is better as per industry scenario.?
If you're worried about job, look up how many positions are there for nodejs and python developers. Technology-wise, I don't think any of those stacks is objectively better than the other.
Anonymous
and but being a python based framework... django is better because of craze in ML n AI
Mirco
okay! nodejs fanatics told me asynchronousity makes nodejs better.
Django is going async 😊 there's a DEP opened by Andrew Godwin about it
Anonymous
Django is going async 😊 there's a DEP opened by Andrew Godwin about it
best resources to learn Django? any online course or website, book?
Mirco
best resources to learn Django? any online course or website, book?
Official docs 😊 Practical Django and Django Channels is so good book wrote some months ago
Mirco
okay thanks.
Yw 😁
José
hello, i am using function based views, i have one form from which i am obtaining data. The form is validated in the first function but fails to be validated in the second function, what could be wrong?
José
Can u show your code?
'''def send(request): if request== 'POST': form = BookingForm(request.POST) if form.is_valid(): email = form.cleaned_data.get("email") send_mail('GREETINGS', 'Thank you for choosing to stay with us, you will receive a confirmation e-mail soon!', 'infor@user.com', [email], fail_silently=False ) return HttpResponse("<h1>Valid</h1>") else: return HttpResponse("<h1>Invalid</h1>") return HttpResponse("<h1>Crazy</h1>") '''
Сергей
I model I`ve got two field image = ProcessedImageField(upload_to=upload_auto, blank=True, null=True, verbose_name='Фото (несколько)', spec=OriginalSpec, autoconvert=None, max_length=250) image_small = ImageSpecField(source='image', spec=ThumbnailSpec) and receive image data from ajax, image created, but image_small not found, what is problem?
Code9
And also multimedia type
Сергей
I soleved problem, to create cache I need to call generate method photo.image = file photo.save() photo.image_small.generate()
Muflone
Static files will be served directly from Apache, it's not a Django issue. Just point the directory where the files are stored
Muflone
Then you have two choices: 1) your directory doesn't contain your images 2) you setup the wrong path in apache
Muflone
Is your http server allowed to read your home folder? Files should be where httpd can access
Muflone
/srv or /var/www
Muflone
A directory with access from the httpd/apache user
Muflone
Read the apache log
Muflone
What urls are not found?
Muflone
Scroll right to see the status of those lines
Muflone
So what's your issue?
Anonymous
Can we embed the Jupyter Notebook to Django Blog Posts? So the user can compile the code from those articles... Is it possible?
Himanshu
I have packages some Django applications. Looking forward to get some reviews on same. Can I share them here?
Leo
Share the link
Himanshu
https://github.com/101Loop/drf-user This is a custom User package. Details are in the readme.
Himanshu
And second one is drfaddons https://github.com/101Loop/drf-addons This is a collection of various functions and customizations that one may need frequently.
nasim
Anyone have
nasim
Django project on online examination system??
Anders (izzno / gooood) 🇳🇴
Any tips on getting django to log on stdout or stderr running on gninicorn in docker with debug=false. I just had emails generating "500" erros (server crash) and I could not see anything in the docker logs. Luckilly gnunicorn restarts...
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
But theres no other options for more verbose ouput in stderr, stdout? As of now its nothing... Postgres is more verbose in production... :/
Mirco
But theres no other options for more verbose ouput in stderr, stdout? As of now its nothing... Postgres is more verbose in production... :/
Django uses python logging module , so you can follow its documentation for better fitting your Django logging configurations
Mirco
All I need is a name ;) Sentry it is 👍
Sentry emails you when 500 error appears with a detailed traceback