I
@kake87 {{bb.published|date:"d.m.y h:i:s"}}
Anyway i have error: Exception Type: TypeError Exception Value: The format for date objects may not contain time-related format specifiers (found 'h'). and this error creating after delete whitespaces <p>{{bb.published|date:"d.m.y,h:i:s"}}</p>
Luis
Published is date or datetime field?
Luis
If is datefield you should remove h:i:s from your template because the field does not have these values
monaou🦍
May be your project have DateField, but not DateTimeField
Luis
A date object hasn't got time related data
Luis
I run with python get normal, but i run in django i got this
Do you run they in the same environment? Same "computer"?
monaou🦍
DateTimeField, yes
Try a comma place a space. This is stupid, but it can help😅
monaou🦍
but me it can help
Luis
DateTimeField, yes
Ok try using 2 tags
Luis
{{bb.published|date:"d.m.y"}} {{bb.published|time:"h:i:s"}}
monaou🦍
this is a stupid decision
Luis
this is a stupid decision
I think you are using "stupid" more than necessary
monaou🦍
yeah)
monaou🦍
but write 2 tag for date it stupid decision
Anonymous
but write 2 tag for date it stupid decision
Anyhow Its ok he will correct that, can you plz stop saying STUPID
monaou🦍
no)
Luis
but write 2 tag for date it stupid decision
From django official documentation You can combine date with the time filter to render a full representation of a datetime value. E.g.: {{ value|date:"D d M Y" }} {{ value|time:"H:i" }}
Anonymous
djongo.sql2mongo.query DEBUG params: () djongo.sql2mongo.query DEBUG sql_command: SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations" djongo.sql2mongo.query DEBUG Find query: {'projection': ['app', 'name']} I have this problem when using djOngo for connect mongoDB Does anyone know what the problem is?
Денис
but write 2 tag for date it stupid decision
unless you provide a smart one, you just prove yourself to be stupid. Dixi.
I
It's H (uppercase) not h @kake87
ok, thanks. I fix this problem
Anonymous
https://pastebin.com/6xQX7n5L Can help my ?
Solved before i use http.client for request api and i try use request it work normally
Doragonsureiyā
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 45k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Raad
Hello guys, I want to interview Django developers for a project which will be in production environment once it’s ready. In your opinion, regarding to the coding skills, what are the skills that needed for developers to build this project? The project is Saas product like Hotel Management System
Raad
The project is Saas product like Hotel Management System
Raad
Be developers, know how django works, for example: migrations, midleware, apps, etc...
Regardless of these skills , what are skills needed for production environment?
Doragonsureiyā
Regardless of these skills , what are skills needed for production environment?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
cj
Regardless of these skills , what are skills needed for production environment?
read the chapters where they talk about deployments ☝️🏻
Anonymous
Hello everyone I want to use mysql with django What I should do for that
Go over the documentation you will find how to use SQL and NoSql database
Anonymous
No we can’t.
https://docs.djangoproject.com/en/2.2/topics/db/multi-db/
Navneet
Hello sir Please help me how can we import csv file into django models
Anonymous
Hello guys, What error management that you use in django? I can't answer this interview question, do you know what it is? or just like testing tools or something?
Anonymous
I have a model content_type in my model It is a foreign key of ContentType class that provided by Django Now I get the value of content_type field in my model
Anonymous
I want the ContentType.Model according to the contentype values
Anonymous
Hello anyone have any idea about this
Ani
How to use websockets for django rest framework
Ani
??
Rohan
Django "REST" framework
Rajat
What is the use of init.py file in django??
Muflone
What is the use of init.py file in django??
In python! Makes a dir as a module
Rajat
I am asking the use of init.py file
Jimmies San
I am asking the use of init.py file
Google it if is not enough for you
Rajat
Ok
FS
Hi anyone having ideas how to upload image to s3 via django
FS
I am getting endpoint connection error
inchidi
I am getting endpoint connection error
share the full traceback and your code
FS
Okay
FS
Pm
inchidi
I want the ContentType.Model according to the contentype values
content_type = ContentType.objects.first() # your content type object content_type.model_class() # your model class
inchidi
Hello sir Please help me how can we import csv file into django models
upload file and store to model like usual, then you can create signal triggered on save to trigger celery task that parse the csv file
FS
This error I am getting
inchidi
use code sharing service
x
Does anyone know good blog or video about Django with react as a front end
Maksim
JustDjango
Mihail
I lost a lot of time to write it. And only sent in chat with wrong language
Mihail
can anyone help me how to resolve problem like this? https://stackoverflow.com/questions/55814592/djangos-notimplementederror-aggregate-distinctfields-not-implemented/55815334
Mihail
on queryset like this place.feedback_set.values('profile').annotate(rating_sum=Sum(rating)) methods like .annotate, aggregate, values work on all elements from a group. And I need to take only last element after it's getting with Max() func
Mihail
and after this take sum of this max values of each group
Mihail
@python_meta
ohhh, thank you very much!