Snk
Hi friends. I need a requirement I need to mask a hand written aardhar card number in a form.
ZeroCool
did they ever implement facial recognition in Django? I am using OpenCV and face_recognition, but I execute it as a .py file, I would like to pass that to Django, can you guide me or give me some ideas please
Mohammed
And ; https://docs.djangoproject.com/en/4.1/ref/contrib/messages/
Yeah. I have used this built in message functionality. For the html side i am using bootstrap alert component. Now whats happend even if the user submit the form without enter data it shows form submit successfully. What i need is if sender leave the form empty it should display an eror alert instead of succes. I don't know how to check in views with if condition whether the form fields are empty. I am not using builtin form functionality so i cant use is_valid.
Eng_Salah Aldin Alhaj
hey guys anyone have idea about why this random shown
Eng_Salah Aldin Alhaj
with image
Eng_Salah Aldin Alhaj
when iam using django i can't send photos
vsn
hey can anyone help me with the error i'm facing while deploying django app in heroku collectstatic " $ heroku config:set DISABLE_COLLECTSTATIC=1 "
Eng_Salah Aldin Alhaj
use storegae same aws
Eng_Salah Aldin Alhaj
this rendered code https://linkode.org/#go7huZhe48d3qOb7PRZl45 this code original code https://linkode.org/#XpvfkxJbvj8nsDIL3nCdH7
vsn
use storegae same aws
is that free i'm trying host in heroku
Eng_Salah Aldin Alhaj
use storegae same aws
or search about whitenoise i think is helpful
Eng_Salah Aldin Alhaj
is that free i'm trying host in heroku
i know try to use external storage
Eng_Salah Aldin Alhaj
or try install whitenoise
vsn
i'm using white noise
vsn
but at last i'm gets the error can you recommend any youtube channel or resources
Eng_Salah Aldin Alhaj
Eng_Salah Aldin Alhaj
and its prices not hight
Christof
yeah it came from an event
Charly
i can't still get my issue solved can anyone please
You haven't show the error, that's just a command
vsn
https://linkode.org/#SYKr3k9EOol3xokLNxNB51
Charly
https://linkode.org/#SYKr3k9EOol3xokLNxNB51
Disable the static collection as the erro says
vsn
got stuck badly now the app is build successfully fut got error like: heroku[router]: at=error code=H14 desc="No web processes running"
Valentin
Is there any possibility to order_by FileField column by filename?
AℤℐℤℬℰᏦ ☝️
lib/zoneinfo_module.c:1:10: fatal error: 'Python.h' file not found #include "Python.h" ^~~~~~~~~~ 1 error generated. error: command '/usr/bin/clang' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for backports.zoneinfo Failed to build backports.zoneinfo ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects WHILE INSTALLING DJANGO
Sinan
How to give user authorisation to access specific fields/objects of the Model
Dave
Do I need to use AbstractBaseUser?
I think it won't be necessary.
User
Can I get content_type of media from the file stored in fileStorageSyst ?
Krunal
I think it won't be necessary.
Could you please share the example if you have?
Macaw
Is it possible to have multiple auth login pages in django
Macaw
Separate registration & login for each app?
Anonymous
what does the message queue store
Dave
Could you please share the example if you have?
In your settings.py ... AUTH_USER_MODEL = "your.UserModel"
Krunal
In your settings.py ... AUTH_USER_MODEL = "your.UserModel"
I did that but getting an error saying User has no attribute 'REQUIRED_FIELDS'
Miqo
Hello. One question how to combine multiple querisets into one listapiview in djangorestframework?
Dave
Hello. One question how to combine multiple querisets into one listapiview in djangorestframework?
Create a custom serializer. Or just return it by httpresponse ir jsonresponse
Krunal
Create a custom serializer. Or just return it by httpresponse ir jsonresponse
Now getting an error saying User Object has no atty ' is_anonymous'
Krunal
*attribute
Dave
Now getting an error saying User Object has no atty ' is_anonymous'
May I see what you are trying to implement. So I can have a full visualization of what you trying to do.
Krunal
May I see what you are trying to implement. So I can have a full visualization of what you trying to do.
I want to use jwt token for authentication in django rest framework. I am using database first aproach.
Ali
https://github.com/ro6ley/django-redis/blob/master/django_redis_demo/api/views.py Is this a good way to connect to redis db?
Husniddin
hello guys. is it possible to use filter with keys in redis?
Pradeep
How pratice django
Elhem
hello what is permission mixin
Ali
If you are using django-redis then you can use get_redis_connection
Is it only for cache or we can use it as main db?
IDK
Is it only for cache or we can use it as main db?
It just to get connection through django
IDK
Is it only for cache or we can use it as main db?
But I have question why you are storing it on redis
Ali
But I have question why you are storing it on redis
For it's ttl I need it to be expired after 24h
Tchondo
hello who has already experimented with a telgram bot with django, I would like if he has experimented with a stable module for the django telegram connection thk
Maxim
reverse order have you read the documentation ?
Tchondo
Aren't Telegram bot and Django two different fields?
yes but you can develop a bot using the generated data from django that's what i want to do
Andrew
Hey everyone, I want to start learn django, it's perspective way now?
Doragonsureiyā
Hey everyone, I want to start learn django, it's perspective way now?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Hello everyone My django project don't need database and database engine, how can I delete completely database section from my django project?
Anonymous
Hello everyone My django project don't need database and database engine, how can I delete completely database section from my django project?
(I deleted database section from my settings but when I want to run tests in my project I get .ImproperlyConfigured exception)
Anonymous
then you don't need Django ¯\_(ツ)_/¯
logic 😐😂 but seriously i don't need database engine, I think project don't need that because i work on micro service project and this service just a gateway to get API request and send it with grpc to another service
cj
I'd recommend you FastAPI, as the description you said, it's gonna suit better... and again, you don't need Django
Anonymous
then, again, you don't need Django ¯\_(ツ)_/¯ you'd better use FastAPI or Flask
I know that, but our company wants me to develop services with Django 🤷🏻‍♂️
cj
I know that, but our company wants me to develop services with Django 🤷🏻‍♂️
then configure it to use a dumb SQLite DB ¯\_(ツ)_/¯
Anonymous
then configure it to use a dumb SQLite DB ¯\_(ツ)_/¯
So the better way is I add database section to settings but never use that
cj
So the better way is I add database section to settings but never use that
Django will use that, surely, because a DB is part of the heart core of any Django project, you can't not use it ¯\_(ツ)_/¯ having that you don't use models, it doesn't mean Django doesn't use a DB under the hood for its own processes
cj
I see, thanks for your help 🙏🏼
that's why there are other libraries/frameworks for web development if you don't want to use a DB, like FastAPI or Flask ¯\_(ツ)_/¯ but you can't escape from using a DB if you use Django
cj
RULES FOR THIS GROUP Groups like @Django are help groups for learners and developers. For all other talk, go to @PythonOfftopic, where no topic is enforced. You can read all the rules following this link: https://t.me/rules_for_python