AFOLABI
I created a login and registration page, if users sign up on the registration page, the login page don't allow login, but I can login in with super user, please where did I get this wrong
Not Your Dad
John
AFOLABI
Martín
I achieved to accomplish i18n in my django webapp using a language selector
but now I'm concerned about the html attribute
<html lang="en">
I wonder if I should put the current selected language there, in the lang atribute
Martín
I read this is used for internet robots collecting info about the page
Mirco
Gaurav
In custom middleware, while defining process_view(request, view_func, view_args, view_kwargs)
What are view_args and view_kwargs ??
Gaurav
Documentation says, view_args is a list of positional arguments that will be passed to the view...but I didn't get it
Anonymous
Who has got web sayt
Anonymous
Jinu
hi..
Anonymous
Jinu
how to provid authentication in django JWT token
Mirco
Ghorz
Ghorz
Anonymous
where i can find best socialmedia templet for my project
Anonymous
thnk you in advance
Tommaso
Hi, what does it mean when python returns
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet
?
Martín
Full trace needed
Martín
But maybe this one is about not including some Django app somewhere
Martín
Or not doing it in the required order
Anonymous
where i can find best socialmedia templet for my project
thnk you in advance
Pablo
I have a quick question. I upload a video in django and I want to create a modified version with cv2 of the original file, so the model has an entry called original_video and another one called filtered_video. I cannot save the entry in the db though. I have tried creating an instance of tempfile that comes from the stdlib but apparently it needs to set a _commited attribute that django sets for InMemoryUploadedFiles
Pablo
I am kinda lost and I am new to django; I've tried looking online a couple of hours, but it looks like I am not hitting the correct search terms
Денис
Pablo
oh I see, it looks like I didn't explain myself correctly
Pablo
I'll try to explain basically the idea:
The model Video has two entries: original_video and filtered_video
1. From a form user uploads original_video
2. We save a new entry in Video with original_video:
v = Video(original_video=request.FILES['file'])
v.save()
This works correctly. However, then I want to get the original_video and process it. The function process_video gets a filename and processes the video and returns a tempfile.NamedTemporaryFile instance. However, when I do
filtered_video = process_video(v.original_video.path)
v.filtered_video = filtered_video
v.save()
last line throws: '_io.BufferedRandom' object has no attribute '_committed'
Pablo
This makes absolute sense to me, since it looks like I am missing some key thing in the file management used in django and in tempfile
Pablo
but I have no idea on how to solve it
Pablo
maybe I should take a look at that, django files
Денис
maybe I should take a look at that, django files
https://stackoverflow.com/questions/35732150/django-shell-image-upload-io-bufferedreader-no-attribute-size
how about this? You really shouldn't pass unsupported file objects to model.
Денис
from django.core.files import File
and create a File object from what you get in process_video()
Pablo
awesome, it looks like that's the idea
Pablo
I'll try it in a couple of minutes and let you know
Rainur
Hi! I want to upload my project to VDS. I have misunderstandings with uswgi. I do standard check of work of usgwi: I create creaks test.py and write team uwsgi-http: 8000 —wsgi-file test.py. I Check the page in the browser, does not respond to 8000 port, although the nginx stub at the main address is displayed. What could be the problem?
Anonymous
Rest API user creation getting trouble
Jason
maximum recursion depth exceed
Jason
Giving this error after rest auth registration please help
Day
So about the image field and the filefield,, I noticed that it ain't saving,,,
Day
What is the issue,,
Денис
Денис
or static ones. Depends on how screwed up your project is
Ghorz
I have something to share, it may benefit a few though, no offence.
A while ago, I complained about Javascript then some introduced me to Transcrypt, (I can't remember who but thanks and God bless).
Conveerts python to pure JS code.
The documentation wasn't friendly so I abandoned it, this yesterday I encountered some Jquery issues, as I tried to search online, Transcript was still open in a tab in my browser, I had a quick look at it, in no time, I began to write python, transpire to pure JS, ran it on the browser, Awesome.
This could even be integrated into Django.
Whoever referred me to Transcrypt in this group, God Bless You. Thanks again. 🙏
cj
I have something to share, it may benefit a few though, no offence.
A while ago, I complained about Javascript then some introduced me to Transcrypt, (I can't remember who but thanks and God bless).
Conveerts python to pure JS code.
The documentation wasn't friendly so I abandoned it, this yesterday I encountered some Jquery issues, as I tried to search online, Transcript was still open in a tab in my browser, I had a quick look at it, in no time, I began to write python, transpire to pure JS, ran it on the browser, Awesome.
This could even be integrated into Django.
Whoever referred me to Transcrypt in this group, God Bless You. Thanks again. 🙏
have you heard about brython?
Ghorz
cj
No p
take a look to it, you won't need to transpile anything 🤷🏻♂
Ghorz
Ghorz
Shot*
🤔
Ghorz
Pablo
wow some people here need moderation
Ghorz
Why?
Ghorz
Everything if you don't like something doesn't mean others do, I love what he introduced me to. I appreciate it. The more one explores, the more experienced you get. 👍 @c0x6A
🤔
Why?
Because nobody will use it in production
Pablo
hello, another newbie question here
Pablo
i'm _extremely_ lost
Pablo
is there any standard way to use a bootstrap dashboard in django?
Mirco
Pablo
haha i know that can be an answer, and probably my question is for another forum, but i don't know the usual way either :/
Mirco
Pablo
Mirco
nope 😅
So start studying its docs
Mirco
And how to integrate it into a static website
Pablo
ok, i'll look in that direction
Mirco
Pablo
if anyone has a reliable link, much appreciated. i'll start browsing now anyways he
Pablo
thanks!
Mirco
Mirco
Then you don't need anything else, when you study how static and template work in Django you will have everything u need