Anders (izzno / gooood) 🇳🇴
There's a library built by some fresh Italian guys that should do that job
That would be great, I dont feel like writing one my self ;)
Anders (izzno / gooood) 🇳🇴
You would not happen to remember the name ?
Mirco
I'm looking for it , I don't remember the name 😓
Anders (izzno / gooood) 🇳🇴
"Django Image Fit" is it this ? A template plugin ?
Mirco
Nope, it's a python library not related to Django
Anders (izzno / gooood) 🇳🇴
ah ok, Django 1.4 > 2.0. <—- how would you read this? I read that as 1.4 but not 2.0 (bigger than 1.4 smaller than 2.0)
Anders (izzno / gooood) 🇳🇴
"Django Image Fit" does look perfect ...
Mirco
"Django Image Fit" does look perfect ...
you can do it as side project and using PIllow 😃
Anders (izzno / gooood) 🇳🇴
that's strange
Yes, I think its a grammatical mistake...
Mirco
anyway the library was in go 😞
Mirco
https://pypi.org/project/python-resize-image/ this one looks cool and maintained
Anders (izzno / gooood) 🇳🇴
anyway the library was in go 😞
haha, I know the feeling... mixing languages
Mirco
haha, I know the feeling... mixing languages
there's a porting but experimental
Anders (izzno / gooood) 🇳🇴
https://github.com/vinyll/django-imagefit <— I will try this in a new branch.... Maybe i can contribute to the library if something fails... It looks extremely nice... resize in the template ;)
Anders (izzno / gooood) 🇳🇴
Without querystrings...
Mirco
cool , he played with template filters
Mirco
one year ago last commit, you should just check if supports latest django versions
Anders (izzno / gooood) 🇳🇴
Yep, hence the new branch...
Mirco
Yep, hence the new branch...
💪🏻💪🏻
Alibek
Hi. I've deployed 2 django projects with django-tenant-schemas package on remote testing server. They work as docker container and nginx container serves them as microservices, though they share the same db. Well on remote desktop it works fine. On opening test.localhost/v1/ I see routes. But on my PC, when I enter remote desktop on url radar/v1 (radar is alias of ip in my /etc/hosts/ file), it says that there is no such tenant for radar. Typing test.radar/v1/ cause to unreached site error. How to connect to remote desktop multitenant project?
Anders (izzno / gooood) 🇳🇴
I am pretty sure this is a DNS/hostname issue and has nothing to do with Django.
Alibek
I also think that this more network issue, but this is project established locally, e.g. inside our working office
Anders (izzno / gooood) 🇳🇴
I also think that this more network issue, but this is project established locally, e.g. inside our working office
I have to ask, do you have a basic understanding of networking? Liek localhost is not the same on to different computers etc? And radar defined in one computer does not affect the other ? You can also involve your office IT dep... I'm sure they could point you in the right direction.
Alibek
I have to ask, do you have a basic understanding of networking? Liek localhost is not the same on to different computers etc? And radar defined in one computer does not affect the other ? You can also involve your office IT dep... I'm sure they could point you in the right direction.
Basic understanding of networks, yeah, but not much, cause that's not my domain specialization. And I don't think that my colleagues also know much more about networks, so that's why I'm asking on internet.
Anders (izzno / gooood) 🇳🇴
Basic understanding of networks, yeah, but not much, cause that's not my domain specialization. And I don't think that my colleagues also know much more about networks, so that's why I'm asking on internet.
Hm I C... Well you might need external help. My suggestion is you draw a diagram of your network and include as much information as possible, then post a question on stack overflow (or simuler). It's such a wide area (and every network is different) making asking for help without information allmost impossible. Best of luck! PS: You are welcome to throw me the link when (if) you do so.
Alibek
Ok, thanks. At least somebody answered me on telegram. Ha det bra.
Root
Hello everyone, I'm getting SuspiciousFileOperation The joined path <path> is located outside of the base path component I'm using pillow and these in settings MEDIA_ROOT = os.path.join(BASE_DIR, 'media/') MEDIA_URL = '/media/' BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Anders (izzno / gooood) 🇳🇴
Litarally the first google result. https://stackoverflow.com/questions/41350325/django-the-joined-path-is-located-outside-of-the-base-path-component
Bedilbek
is there anyone participating in DSF Internship ?
Bedilbek
https://www.djangoproject.com/weblog/2019/apr/24/internship-opportunity-dsf-app/
godmode
How does it work it's more like a contest?
godmode
Cuz It says that somwbody it's gonna review the pull request and i imagínate
godmode
If it's a contest it's a lot if people to do that
Bedilbek
first you had to apply for it. And after several competitions if you could pass you would get a position of an intern for developing django
godmode
That's kinda but i'm just a student ... I've been learning Django just three months
godmode
I don't think i'll got choices
Bedilbek
Contest was on purpose open for newbies who are new to django environment and who want to contribute to it
godmode
opportunities
Андрей
Hi everyone! Can somebody help me, i want to override all error_messages in my django.model without using django.forms and i do not want to use 'error_message=my_dict' in every model's fields. How can i do this?
Happy
oh, every model's fields?
Happy
emmm, BaseModel inherts django.models.Model, and implement method, like: def charFeild(**kwargs): return models.CharFeild(error_message=my_dict, **kwargs)
Happy
In another Model(core.BaseModel): foobar = this.charFeild(…)
Happy
it's my idea, but i don't think it is a good idea.
Abel
Hello guys I am just working a school system with django and I have a notification app on the project it is used for the teacher send notification for the students and i just want to filter the notification based on the department field on the student user how can I filter it please
Андрей
Write a BaseModel in core/models.py , Other models inherit it.
I'll try it, thanks a lot for you thought
Bhaskar
What I need learn beside django to get a successful job in a good company. Need your help please
cj
What I need learn beside django to get a successful job in a good company. Need your help please
depends on how you define "successful job" and how you define a "good company" 🤷🏻‍♂️
Bhaskar
depends on how you define "successful job" and how you define a "good company" 🤷🏻‍♂️
Nothing much but I wanted to switch in python. So I learned basics of django. But I don't know what I need to learn for industry level development
Erick
Nothing much but I wanted to switch in python. So I learned basics of django. But I don't know what I need to learn for industry level development
Do pet projects. Maybe some idea you already have o cloning some app, a twitter clone by example. Colaborate in OSS projects fixing/adding documentation is a good start
Rock
Brother I am making a project on Dajango I have added all the pages of this page but how to connect the data
Muflone
Brother I am making a project on Dajango I have added all the pages of this page but how to connect the data
Define your models and then use ModelName.objects.filter to access the data. You surely need to read a tutorial
Anonymous
How to insert table datagram error RuntimeError at / admin/booktest/bookinfo/add/ in django background management
JorgeSierra
.
Shreehari
#offtopic Anyone here uses drone.ci?
El
I have a foreign key, how can I automatically send a user's id when they log in
Bhaskar
Any one of you worked with Rasa nlu
Doragonsureiyā
Any one of you worked with Rasa nlu
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 34k+ people the probability that someone will help is pretty high.
Doragonsureiyā
#offtopic Anyone here uses drone.ci?
Looks like you need an offtopic group, please continue this conversation at @PythonOfftopic
El
Show us the code and model
from django.db import models from django.contrib.auth.models import User # Create your models here. class Asistencia(models.Model): usuario_id = models.ForeignKey(User, null=True, blank=True, on_delete=models.CASCADE)
El
What I need is that when a button is pressed, the user's id is automatically sent to the table
Bhaskar
Suggest me a chat bot UI for RASA. Can give intrectected look. And easy to deploy.
Happy
What's RASA?
Bhaskar
What's RASA?
It's a ML framework for development of AI chat bot. It's in python.
Happy
Does anyone know of some groups about React?