shiitakePL🇵🇱
Anonymous
The front end is build on reactjs
Anonymous
Image is cropped while being uploaded
Anonymous
And for cropping, it needs to be rendered on canvas
Mirco
Yup, but your final one is always a jpg/png , isn't ?
Anonymous
No, when you render an image on canvas, you only get base64 or blob from it
Anonymous
AFAIK
Mirco
amit
What is the most efficient tech to build chat with Django with time it is going to take considering an intermediate developer.
Mirco
amit
How much Time it is going to take considering an intermediate developer to build it ?
Mirco
Anonymous
Michael
I am trying to create a form from a peewee model.
The modelclass inherits a Metadata Object that can be referenced via model._meta.
This Metadata Object has an attribute private_fields, which I checked by accessing it via console.
Yet, when I try to import my NewRoleForm(forms.ModelForm), it throws an exception, saying AttributeError: 'Metadata' object has no attribute 'private_fields'.
Michael
Does someone have any leads as to what I am doing wrong?
Rajjix
some pastebin of your relevant would encourage people to help you more.
Michael
Ok..
This is where I declare the NewRoleForm Class: https://hastebin.com/avayugaxuz.py
And this is where I declare the peewee model : https://hastebin.com/ixacanexun.py
Michael
Is it even possible to use another orm with Django?
Rajjix
it is, but not advised.
Michael
Oh, why not?
George
is there something you cant do with django?
Michael
Nah, it's mostly that I am using peewee for other projects that address the same DB and have thus already modelled them in peewee.
Michael
So I'd have to remodel, but that's not too bad, I guess.
Pruthvirajsinh
Any one plz guide me for flask framework
Pruthvirajsinh
Give me a link for PDF of flask
Rajjix
http://flask.pocoo.org/docs/1.0/
Mohamed
How can I use django channels with https on development
Ronald
Mohamed
Thanks
Harry
Hi guys any boiler plate code reference on django microservices
Rajjix
django-admin startproject srvce1
django-admin startproject srvce2
Harry
Rajjix any repo for reference
Rajjix
have you ever used any external service before, google-maps, unsplash, email-hunter, clearbit, ....
Rajjix
ur basically asking how to make a rest-api with django, the idea is one u set up a project with a specific task(service) with an endpoint for example an api endpoint like so
https://localhost:9000/firstname/a
retrieves a whole list of names that start with letter a in a json format, all you do in ur project that requires such list is throw a get request to that api to get that list, u can do some extra work to allow only certain users with an api-key to access that service by providing a certain identification method(usually an apikey), that you provide certain users.
Rajjix
u can then start another project with another service to deliver all names starting with letter b, and so on, by the end of the project you should have 26 micro-services each with a separate database and independent of the other services
AnasKhaled
Hey guys ,, I wanna ask you about the animation in python, do you recomend any animation library that easy to use, and provide manualy animation movment (like move any object from point A to point B) i want to build a website for explaining some algorithms by animation and visualization, I have just four months to learn and build everything, and I'm just learned the basics in python please help me from where i should start .
Mirco
Build your animations with css not py
Anonymous
Hi - In my view, Django cookie default validity is 15days. For some reason, I want to extend cookie validity. Could someone please guide how cookie validity can be extended, given the fact that my website authentication is handled by middleware ldap module. Any relevant document on it would be helpful.
Maz
Ghorz
Hey guys am stuck with my code permissionmixin.
How can only the creator of a data view it alone
Ghorz
Check this out
www.mysite.com/keys/12
If a user tries changing the Id, bang he can see peoples key
Rajjix
id? for all i know you can edit the get_context method in your view and raise a permissionDenied if the user making the request is not the owner. it works like a charm and depends on the token provided wether it be random generated token or a jwt token.
Xyz
Xyz
Or you can simply use a uuid field as primary key
Ghorz
I worked a way around it
Ghorz
In template, I compared the request.user to object.user
.
How to create a dynamic api based data driven watchlist for a particular user in Django !
Like wise stock market wishlist
.
Need a help with code from scratch
Ghorz
No one will code for you from scratch
Ghorz
You should do something first, when you hit the rock, you can ask for help like I did above
Isaías
Django rest = react or vuljs or angular?
Mirco
Mmm it's really up to u imho
Mirco
Vue has lots of built-ins
Ghorz
Hi room
Ghorz
https://dpaste.de/Qm6u#L11
Xyz
Might need to see the full stack trace to see what's wrong
George
i don't really know
Ghorz
Xyz
I mean this full page
Ghorz
okay
Ghorz
here is a link to my development server
https://0348ea93.ngrok.io
username: tester
password: tryharder1
Xyz
At what point of using the app does the error occur?
Ghorz
when i click on add websites
Ghorz
it works in admin but not on user end
Ghorz
use
https://0348ea93.ngrok.io
username: tester
password: tryharder1
Xyz
I guess it works now 👍
Ghorz
Yes
Ghorz
👍
⎊ GNU/Aryan ⎊
Mirco
Merry Christmas! 😀
青年闰土
Merry me
Isaías
Merry Christmas 😉
Anonymous
Merry Christmas everyone
Anonymous
Merry Christmas!