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
Harsh
can some tell me how to integrate opencv in django to open camera in web page
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)
Alex
Mehrdad
Caching?
Where to find and disable it to check if thats the problem?
Mehrdad
Enabling dummy cache?
Alex
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? 🤔
Alex
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
Mehrdad
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
Shivam
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?
Alex
Alex
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
Parsa
Can we connect MySQL to django?
Parsa
Parsa
彡ɾεʓɑ彡
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
Pythongames
Sourabh
Alex
Юрий
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?
Mirco
cj
cj
彡ɾεʓɑ彡
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?
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
Alex
@Doragonsureiya_bot I think my messages are getting restricted and slow downed.
Alex
Then It might be group cool down?
Nishanth Siraj
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?
Юрий
Maleficent
How to connect MySQL in my project
Alex
彡ɾεʓɑ彡
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?