Mohamed
Can anyone know how to use run a opencv project using django which involves webcam live webcam feed
Mohamed
Paid challenge
Mohamed
i can provide u the code pieces to connect
Mohamed
just have to do a rework of two python files
Mohamed
please dm me incase interested
Breeze
pls am getting some issues with my django form. i customized the django user model to add some custom fields but if i try to register, the form won't submit rather it takes me to the email field (as if i typed a wrong email). And if i try to register from the admin panel, it tells me "First, enter a username and password. Then, you’ll be able to edit more user options."
Hey It's
Hi there! I'm trying to download images from url and save it in media. Script works, but always every time it saves a new one images and rewritten in memory Can anyone help me? Here is the code on str 29 - 37 https://paste.ofcode.org/6vnx54YKtu4yZ8XbxpNqE2
William
Hi there! I'm trying to download images from url and save it in media. Script works, but always every time it saves a new one images and rewritten in memory Can anyone help me? Here is the code on str 29 - 37 https://paste.ofcode.org/6vnx54YKtu4yZ8XbxpNqE2
Why are you passing id in the book, create a query. Remove that the primary key is a unique value. The better way of using get or create is by not passing the primary key or unique values.
Hey It's
Why are you checking the status code for a file variable?
because I have two databases and they are in sync. Warehouse -> Shop
Hey It's
Why are you checking the status code for a file variable?
I need to know status it's available or not
Cynthia
Little help I need to get an index of an object. Models.objects.all Returns all objects. So how do I get the index
Mirco
Index of what ?
Cynthia
example like a =[1,2,3,4]
Cynthia
index =a.index('2')
Cynthia
then I get one
Mirco
index =a.index('2')
Just return the values_list with flat equals to True and then you can do the same
Cynthia
ok let me try
Fidèle
Hello everyone Please what's the most suitable frontend framework for Django?
Mirco
so how do i get the index
You will retrieve a list, so can use the index method
Cynthia
ok
cj
Hello everyone Please what's the most suitable frontend framework for Django?
the one that you feel comfortable with ¯\_(ツ)_/¯ it doesn't depends on Django at all, you can try all the ones you want and decide which one to use for your project
Durgesh
How to save generated number in database
Fidèle
I've heard about Elm language for frontend. Is someone using it here?
Anonymous
Hey guys, if I have a table in HTML5, only has table header but not table body, the table body data is rendered by RestfulAPI, how to make some column editable but some not?
Doragonsureiyā
I've heard about Elm language for frontend. Is someone using it here?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
shubham
why my authenticate function returns NONE . https://dpaste.org/Q17P
cj
why my authenticate function returns NONE . https://dpaste.org/Q17P
because maybe you don't have a user with email "email" and password "password" literally 🤷🏻‍♂
cj
oh well... you're setting "password" as password to all your users... weird but meh...
cj
So what can I do now, I am beginner in django
maybe start learning python first?
William
Hey guys, if I have a table in HTML5, only has table header but not table body, the table body data is rendered by RestfulAPI, how to make some column editable but some not?
We can achieve this by adding flag in Django models. Add is_editable flag with default value as True. Based on this flag you can hide the edit button and also not allowing user to edit this data by URL id also.
William
can my case achieved by adding is_editable flag in model?
Yes. The default value will be True which means editable and you have to update It to is_editable=False If you don't want to allow edit option.
Abin
I 've got a freelancer work .som is it safe which token I should use.
Anonymous
Hello guys Is this ture that django is slow? I'm deciding to learn a backend framework and don't know what to do
dmitriy
hello everyone, I'm trying to create a django command to add permissions to groups, but got an error: RuntimeError: Model class AdminCalculator.apps.calcadmin.models.Output doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
dmitriy
you don't have the app in INSTALLED_APPS
I have: INSTALLED_APPS = [ "CalcAdmin.apps.CalcadminConfig",
Mirco
I have: INSTALLED_APPS = [ "CalcAdmin.apps.CalcadminConfig",
it's better if you show with pastebin your project tree and that app config
Anonymous
Mirco
What's fast api? Use for backend?
It's a framework to build APIs
Anonymous
It's a framework to build APIs
What's different between api and back end I want something really fast and powerful for my flutter backend Can you help me with this
Mirco
What's different between api and back end I want something really fast and powerful for my flutter backend Can you help me with this
backend is "generic" You can choose whatever you want to power your Flutter app Either Django Rest Framework or FastAPI
Mirco
Anonymous
The one you prefer.
I don't know 😂😂
Anonymous
Fastapi is cool but the community isnt as big as django so.
Mirco
I don't know 😂😂
It's up to u Both are good
Anonymous
Fastapi is cool but the community isnt as big as django so.
Neither flutter Community in not important for me
Anonymous
Oh it will be don't worry
Anonymous
It's up to u Both are good
Okay I do some researchs to find out Thank you 🙏🏻
Anonymous
Oh it will be don't worry
You prefer django or fast api?
Anonymous
Django
🙏🏻👍🏻
Proton
Please can anybody help me on how to use django with shopify?
Proton
I really stuck here
Vitaliy
how to send PDF object with context (generates in memory) and render it on the page? <embed type="application/pdf" src="data:application/pdf; {{ pdf }}" width="100%"> right now it "works" like: <embed type="application/pdf" src="data:application/pdf; <_io.BufferedReader name='test_pdf.pdf'>" width="100%">
Kishor
What's fast api? Use for backend?
like django,flask it is an package
Stark
use golang
Doragonsureiyā
use golang
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
dmitriy
it's better if you show with pastebin your project tree and that app config
├── wsgi.py ├── asgi.py ├── templates │ └── admin │ └── custom_template │ └── features.html ├── __init__.py └── CalcAdmin ├── settings.py ├── pycache │ ├── models.cpython-38.pyc │ ├── admin.cpython-38.pyc │ ├── apps.cpython-38.pyc │ └── settings.cpython-38.pyc ├── admin.py ├── models.py ├── Config.py ├── apps.py ├── __init__.py ├── management │ ├── pycache │ │ └── init.cpython-38.pyc │ ├── commands │ │ ├── addusers.py │ │ ├── pycache │ │ │ ├── addusers.cpython-38.pyc │ │ │ └── init.cpython-38.pyc │ │ └── __init__.py │ └── __init__.py └── views.py config: class CalcadminConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'CalcAdmin'
Mirco
seconded, you need to share also your INSTALLED_APPS setting
dmitriy
first of all, the main suggestion is not to use file names like CalcAdmin but calc_admin and also config.py and Config.py
INSTALLED_APPS = [ "calc_admin", 'grappelli', "django.contrib.admin", "django.contrib.auth", "django.contrib.sites", "django.contrib.contenttypes", 'background_task', "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", ]