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
highnes
Сергей
I receive blob file on beckend it`s like <_io.BytesIO object at 0x7f3a85c68bf8> how can I save it to image field?
sravan
highnes
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?
inchidi
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
cj
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
GNU/Matt
well
GNU/Matt
nodejs is slightly different from django
GNU/Matt
GNU/Matt
django is a python-based web framework, Nodejs is a javascript-based web framework
⟨ Simon |
⟨ 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
⟨ Simon |
GNU/Matt
Anonymous
Anonymous
⟨ Simon |
in a Django group people will say django
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
Anonymous
and but being a python based framework... django is better because of craze in ML n AI
Anonymous
Anonymous
Anonymous
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?
dhelbegor
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>") '''
inchidi
Сергей
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
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?
Did you include request.FILES
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...
Mirco
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