Akshay
I want import CSV file in django datatables.net..please help me
.
I want import CSV file in django datatables.net..please help me
https://django-import-export.readthedocs.io/en/latest/
Akshay
Can you please suggest me YouTube source??
Akshay
I didn't use panda that's why I don't know
IM~Exynos
https://codeshare.io/EBlmBK
❤️❤️❤️❤️
IM~Exynos
https://codeshare.io/EBlmBK
This is for one query? Since you mentioned user[0] or it will fetch all with the required data?
.
This is for one query? Since you mentioned user[0] or it will fetch all with the required data?
User[0] is the first first row. Yes I this query all will be fetched. You can do all this things in one line and then only required results will come
Jonny
what is better use in Django, pytest or unittest
Maxim
Jonny
what does the documentation say?
The preferred way to write tests in Django is using the unittest module built-in to the Python standard library. This is covered in detail in the Writing and running tests document. You can also use any other Python test framework; Django provides an API and tools for that kind of integration. They are described in the Using different testing frameworks section of Advanced testing topics.
dimmmmmma
Can someone help with django-channels (how to pass information from js to consumers.py)?https://stackoverflow.com/questions/73761450/django-channels-why-cant-i-receive-data-from-js-in-websocket-disconnect-metho
Neetanshu
Hey i need a help in django
Neetanshu
If i give year ,month,week,day
Neetanshu
How to get the date
Hossein
Hey I want to have an attribute on some of my views (FBV or CBV) and check that if the called view has that attribute in a middleware (so I can run some logic). What's the best approach to this? Can I use a decorator? If so, what's the best way to do it?
Ali
How to get the date
try to ask your question clearly /:
Ali
what that means by giving y m w d, u wanna get the date?
Hossein
do u know anything about hasattr? Maybe it can help
I know about that, but it doesn't help my case.
Ali
I know about that, but it doesn't help my case.
send middleware and view and other necessary things so that people can fully check the conditions of your project
Neetanshu
A simple form in which if i give a year a month a week in text box automatically it prints the date
Ali
A simple form in which if i give a year a month a week in text box automatically it prints the date
i think it is python u can just get all the fields and stick them together
Neetanshu
I need to build a form
😅乛 𝐃𝐚𝐫𝐤𝐊𝐧𝐢𝐠𝐡𝐭 🚩™
Jwt..?
Дзюдо 💠
is there a video tutorial from python
Doragonsureiyā
is there a video tutorial from python
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
Anonymous
Hi everyone, I'm a beginner. I confused to choose in between modern js framework, django and spring frameworks, any recommendations ?
Baba
I deployed my project for texting on pythonanywhere it worked fine for dome days,then later it gave me error 500 internal error, when I checked the error log on pythonanywhere the error says "user_id not defined". But in my local host it's defined and working well. Pls why is it showing me that error?
Baba
Why nobody answering?
Mirco
Why nobody answering?
because it's not mandatory when someone has time, he / she will answer
Baba
Mirco
But I did the migration
but u r not sure it went well on PA
Baba
but u r not sure it went well on PA
I don't understand what you mean "went well on PA"
Mirco
I don't understand what you mean "went well on PA"
migration on Python Anywhere, you have to be sure they have ran successfully
Vikas
'ForeignKey' object has no attribute 'limit_choices_to' When we add user in admin pannel Can any one resolve
Maxim
'ForeignKey' object has no attribute 'limit_choices_to' When we add user in admin pannel Can any one resolve
as long as no one knows the details except you, the answer to your question is you i can assume that it's about migrations
Vikas
Already migration all
Maxim
Already migration all
what does it mean?
Vikas
I have run all migrations in
Rahat
Please tell me url encryption bro
Doragonsureiyā
Please tell me url encryption bro
What are you talking about?
Rahat
Url encryption
Rahat
Os example/api/2278tttuweihbhyyuiih
Tanner
Os example/api/2278tttuweihbhyyuiih
Like https://docs.python.org/3/library/base64.html?
Jafar
Tried using SMTP Gmail to send email in Django but it's not working, any alternative
Doragonsureiyā
Tried using SMTP Gmail to send email in Django but it's not working, any alternative
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so move to @PythonOfftopic group and ask there.
h
how to solve type error
Charly
how to solve type error
Impossible to say whithout any details
h
Impossible to say whithout any details
TypeError : Invalid path type : tuple this is in setting.py when i Entered TEMPLATE_DIRS = os python.path.join(BASE_DIR, 'templates') DIR = [TEMPLATE_DIRS ]
Charly
Whats on the BASE_DIR?
Charly
yeah
"yeah" is not a valid value for BASE_DIR
h
haha sorry
h
wait i,ll tell you
h
"yeah" is not a valid value for BASE_DIR
from pathlib import Path import os BASE_DIR = Path(file).resolve().parent.parent TEMPLATE_DIRS = os python.path.join(BASE_DIR, 'templates') DIR = [TEMPLATE_DIRS]
Charly
Then show the full error please
Doragonsureiyā
h
TypeError("Invalid path type: %s" %type(value).name) TypeError : Invalid path type : tuple
Charly
this is the full ever which i can see on my computer screen
No, the terminal should show you a big error
h
No, the terminal should show you a big error
but how i can write this dear this is too much 🙄
Charly
done
If you don't share the link we can't see it
h
4hFmMlUIAdzsFJ0u0K1kN
h
i don,t know how to share link 😔
h
😔
Charly
h
https://dpaste.org/R4DHp
h
😁😁😁😁
Charly
https://dpaste.org/R4DHp
No share the full settings.py in the same way
h
just a sec