Wolfred
Hi guys, do u know how to make the @apply tailwind directive to work in django static css files?
Raj
Can anyone help me to db connection how to do
Raj
Do guys know how to manage db connection
Charly
Do guys know how to manage db connection
Have you checked the documentation?
Harsh
can some tell me how to integrate opencv in django to open camera in web page
Charly
can some tell me how to integrate opencv in django to open camera in web page
Django can't have access to user webcam. You need to get a solution on the front end then send it to backend.
Mehrdad
Hi friends I have a django rest framework backend with react frontend. Just in create records, when I click submit, the form does its job and puts data in sqlite database table, but I see the results with delay in list preview of that table. After about 1 minute or more, when I refresh the form, the record shows up. Whats the problem? (Both front and back are still in my local computer)
Mehrdad
Caching?
Where to find and disable it to check if thats the problem?
Mehrdad
Enabling dummy cache?
Alex
Where to find and disable it to check if thats the problem?
It depend on your setup, you need to share your codebase
Mehrdad
If i disable caching in dev, then in production i should enable it for performance, so by enabling it in production, does it delay again? 🤔
Mehrdad
So why it doesn't use caching when updating?? 🤔 In update i get quick reaponse
Alex
It depends on your setup/frontend and we can't possibly pinpoint the function just by descriptions.
Mehrdad
It depends on your setup/frontend and we can't possibly pinpoint the function just by descriptions.
Thank you I understood I should invalidate that special cached items by its key
Raj
I created static website page but my college asking me to change Dynamic page using django I don't know how to do it can anyone please help me to do
Doragonsureiyā
I created static website page but my college asking me to change Dynamic page using django I don't know how to do it can anyone please help me to do
We're not here to do your job for you. This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
Raj
It's providing college materials and syllabus source etc
Achmad
brb making a pr
DisboardTetta
Hi, I have a class A that has a class B via a foreign key. I am creating a form via html and am trying to create a "select" element with options. For the select, I set the name corresponding to the field in class A. How can I teach Django to handle "select" correctly?
彡ɾεʓɑ彡
Why is the css file not recognized in opensuse in Django? It means that in PayCharm or VS Code terminal, it is shown that the css file is found, but it is not executed in the content browser, what is the problem?
彡ɾεʓɑ彡
Static file configuration
Sending photos is prohibted
Doragonsureiyā
Sending photos is prohibted
To share code or error tracebacks, use a pasting service, like: - https://dpaste.org - https://hastebin.com - https://nekobin.com - https://bin.kv2.dev
Alex
Sending photos is prohibted
I meant there is error in static files configuration.
Parsa
Can we connect MySQL to django?
Mirco
Can we connect MySQL to django?
yes but if you choose Postgres, is better
Mirco
MySQL.connector python?
https://docs.djangoproject.com/en/4.2/ref/databases/#mysql-notes
彡ɾεʓɑ彡
I meant there is error in static files configuration.
I am running the same project that is in the training video, it doesn't work for me, but it works for my friends. It seems like there is a problem with my system, but I don't know where the problem is.
Sourabh
I want to create website where people can book their flights ticket in django drf and react Can u suggest me something where I can read an find how to do in proper way
Юрий
Django source code has double quotes, django documentations also has double quotes. Why does django generate code with single quotes when we run django-admin or manage.py? Is there a flag to use double quotes in generated code?
cj
Django source code has double quotes, django documentations also has double quotes. Why does django generate code with single quotes when we run django-admin or manage.py? Is there a flag to use double quotes in generated code?
or maybe what you can do is, after creating the project, run black on it ¯\_(ツ)_/¯ that's what I do... maybe that's why I've always seen it with double quotes
彡ɾεʓɑ彡
Share codebase
https://bin.kv2.dev/~6560bb5c5de7ed6bfdba77a7
Alex
https://bin.kv2.dev/~6560bb5c5de7ed6bfdba77a7
Settings file too, by the way codebase mens entire project code.
彡ɾεʓɑ彡
https://bin.kv2.dev/~6560bbdd5de7ed6bfdba77ae
Alex
Settings.py
彡ɾεʓɑ彡
https://bin.kv2.dev/~6560bc0e5de7ed6bfdba77b1
彡ɾεʓɑ彡
https://bin.kv2.dev/~6560bc535de7ed6bfdba77b7 css file
Alex
No static root and dirs defined
Alex
Are you new to Django?
彡ɾεʓɑ彡
I have given you the same files that he gave us in the training. I have not written these files
彡ɾεʓɑ彡
When I sent these files to my friends, they said it works for us
Alex
yes
Yeah this files are not configured properly and seems like intentional.
彡ɾεʓɑ彡
Now you guide How do I configure?
Юрий
does it? I always saw it with double quotes
Yes, it does. Setting, migrations and etc.
Alex
Now you guide How do I configure?
In settings.py STATICFILES_DIRS = [ os.path.join(BASE_DIR,'static'), ] STATIC_ROOT = os.path.join(BASE_DIR,'staticfiles')
Alex
Create dir 'static' and 'staticfiles' in root folder
彡ɾεʓɑ彡
"os" is not definedPylancereportUndefinedVariable
Alex
https://github.com/alexdeathway/k9archiver You can use my project configuration and dir structure as reference.
Alex
@Doragonsureiya_bot I think my messages are getting restricted and slow downed.
Maxim
@Doragonsureiya_bot I think my messages are getting restricted and slow downed.
in telegram groups, there is no way to customize the slowdown for an individual user
Alex
Then It might be group cool down?
Maxim
Then It might be group cool down?
yeah, it's 10 seconds in all of our groups and it's always been that way, or at least for the last three years
Nishanth Siraj
And learn forms.py too , good luck
NARASIMHA
Django Unit test case I have a multi tenant config. Every config will be stored in default database. The database is set based on the request from url. How to write test cases in this case
Raj
Does anyone know how to connect my static files
Abdulkhaliq
Do you know how to search on Google?
Юрий
or maybe what you can do is, after creating the project, run black on it ¯\_(ツ)_/¯ that's what I do... maybe that's why I've always seen it with double quotes
Thanks for the tip. 🤝 I looked at the django source code. Django-admin and manage.py run black automatically if it is installed.
Maleficent
How to connect MySQL in my project
彡ɾεʓɑ彡
Why is the css file not recognized in opensuse in Django? It means that in PayCharm or VS Code terminal, it is shown that the css file is found, but it is not executed in the content browser, what is the problem?
Saydullo
Hello Guys I have question How To find open source Projects Django or If you have a project Im ready to help.
Believe
Hellos guys can someone help me in deployment i got stucked at a point. My nginx is working fine but my website is not showing. The welcome page is showing
Serghey
hi, when I type py manage.py runserver in pycharm I get an error, as soon as I type the same command in cmd everything works. what can this be related to?
Dambek
hi guys, i working with modelformset and i want update information from db but when i check formset valid i get error like:<ul class="errorlist nonfield"><li>(Hidden id field) Required field.</li></ul>. How i can fix that?