Charly
and thats the issue there is no name that matches that
Shear
yeah that how i named it on docker-compose.yml file,
Shear
Shear
Ali
Hello, I saved information to the database using the datatime file. and I used that information in views, but I get information that is different from the information stored in the database.
that is, the information stored in the database
{
"start": "06.06.2023 12:00:00",
}
the information i'm getting
{
"start": "06.06.2023 07:00:00",
}
LANGUAGE_CODE = 'en'
TIME_ZONE = 'Asia/Samarkand'
USE_I18N = True
USE_TZ = True
Charly
George
w
Charly
Michael the wolf 🐺
Charly
Charly
Charly
But whatever
Charly
thats offtopic, just cut it
Km
Hi All, here is a question that is the Nginx(reverse proxy) necessary for deploying app which takes Django framework on Ubunto?
Arezoo
Hi
I have drf project and fronted is react js
Do you know how can I send notification into Web app?
Mirco
Cheshtaaaaaaa
Hello can anyone help by telling how to handle upload and download file options
Anonymous
What are the disadvantages of Django-Oscar?
Cheshtaaaaaaa
Km
Сергей
I don't want to save in my folders
I want it be users only
You don't have to save it. You can parse the uploaded file without saving.
E.g. for DRF, in your view
uploaded_file = request.FILES['that_file'].read()
Then for example use pandas
df = pd.read_excel(
io.BytesIO(uploaded_file), header=None, dtype={0: str, 1: int})
Victor
ModuleNotFoundError: No module named 'bootstrap5' , help please 😢
Installed modules (using venv):
asgiref==3.6.0
beautifulsoup4==4.12.2
Django==4.2
django-bootstrap-v5==1.0.11
djangorestframework==3.14.0
numpy==1.24.2
pandas==2.0.0
psycopg2==2.9.6
pyodbc==4.0.39
python-dateutil==2.8.2
python-dotenv==1.0.0
pytz==2023.3
six==1.16.0
soupsieve==2.4.1
sqlparse==0.4.3
tzdata==2023.3
//**************************************
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app.apps.TaracalcConfig',
'bootstrap5',
]
Сергей
ModuleNotFoundError: No module named 'bootstrap5' , help please 😢
Installed modules (using venv):
asgiref==3.6.0
beautifulsoup4==4.12.2
Django==4.2
django-bootstrap-v5==1.0.11
djangorestframework==3.14.0
numpy==1.24.2
pandas==2.0.0
psycopg2==2.9.6
pyodbc==4.0.39
python-dateutil==2.8.2
python-dotenv==1.0.0
pytz==2023.3
six==1.16.0
soupsieve==2.4.1
sqlparse==0.4.3
tzdata==2023.3
//**************************************
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app.apps.TaracalcConfig',
'bootstrap5',
]
Shouldn't bootstrap be linked in your html, just like normal css file? Why would you add it in Django installed apps?
Victor
Сергей
Me
Hi. I created a index function(hello world)in django but after i run it still getting default window(The installation succesfull).
ERMIA
Сергей
It's also possible to return file without saving it at all.
We can do
in_memory_output_file = io.BytesIO()
Then do stuff with it, e.g
df.to_excel(in_memory_output_file, sheet_name='MySheet', index=False)
Then
in_memory_output_file.seek(0)
And
return FileResponse(
in_memory_output_file, as_attachment=True, filename='theFile.xlsx')
Anonymous
Hosein
Reminder
That is a cms powered by django if you want to build a e-commerce website that is a good choice
Try it if you like it so continue to use .....😃
ZeroCool
Hi guys, what library do you recommend to integrate socket with Django?
Сергей
Nitesh
Hi guys, can we customize the django import export library?
Nitesh
And how to mapped user with models?
Hello World!
How to make custom django migration files in django? I want to create a custom migration file for flags that are present in project. if there are not we have to create custom migration files for that
Hello World!
if there aren't flags we have to create it**
Hello World!
can anyone help me with documentation for this..or any knowledge of it
Hello World!
okay, but how to create conditional migration file in django, that when flag is present it would not create but if not present will create a flag
cj
Prasanth
Mysql or MongoDB which one is better for django ?... And what would you prefer to learn..... can anyone tell me about that ??
ERMIA
Prasanth
Prasanth
Charly
No it doesn't. It is offtopic but please don't give bad advice on thing you don't know
Prasanth
And i have 1 more doubt....
mysql and sql are they same or different?🙂🙂
Prasanth
bro I'm Beginner to this filed... I don't know about that much of django concept or database... I'm learning about those from online
Muflone
Prasanth
Prasanth
Muflone
Prasanth
glmzhn
hey there.I've just started learning django and got a problem.I started my app and runned server,there's gotta be 'Welcome!' on the page but there's only
<The install worked successfully! Congratulations!
You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.>
May i send my folder with the project?
Maybe somebody can help me solve this issue
Charly
glmzhn
hmm..
I'm watching guide from 'freecodcamp' that was posted 2 yers ago
Charly
glmzhn
Сергей
Any course they have out there?
Try the official guide. It is rather comfortable to read.
You can google for basic how-to tutorials , but the official guide has such tutorial as well.
Кamran
Hello . The site was created by django but there are errors in the meta tags. For example, this link does not display photos on Twitter and WhatsApp. But on facebook, when we share, everything is displayed correctly. Who can tell where is the error here?
Кamran
Anonymous
What is django