Alex
Can you explain a bit?
I mean you can define directly whatever field you want in a form.
Vitaliy
https://skr.sh/sCHOMsgg6tA Hello everyone, I made an index on a numeric field, it looks like this: models.Index(fields=["-price_opponent",], name="p_price_opponent_nomenclature"), how to make the query indicators of the first and second queries the same, or at least close to each other, so the difference is 200 times
Vitaliy
Provide \d+ on that table (not create statement)
What is this? is there an example?
mirodil
How to deploy django + Vuejs app ? Any source?
Alex
What is this? is there an example?
https://www.postgresql.org/docs/13/app-psql.html > For each relation (table, view, materialized view, index, sequence, or foreign table) or composite type matching the pattern, show all columns, their types, the tablespace (if not the default) and any special attributes such as NOT NULL or defaults
₩
F:\Django>git push -u origin main error: src refspec main does not match any error: failed to push some refs to 'https://github.com/zeroOne81/my-first-blog.git'
Shafquet
What does request.POST.get() do
Vasileq
request.POST is just a dict
Sebastian
Unsupported lookup 'slug' for CharField or join on the field not permitted.
Sebastian
Hello, does anyone know what is causing this error? I've searched everywhere and can't find any solution. Thanks
Fan / Ac
problem solved thank you
you are welcome :D
Alex
Unsupported lookup 'slug' for CharField or join on the field not permitted.
It means that there is no slug lookup https://docs.djangoproject.com/en/4.0/ref/models/querysets/#field-lookups
Sebastian
Affects uppercase and lowercase words in the slug?
Alex
Affects uppercase and lowercase words in the slug?
Have no idea what you are talking about.
Kuntal
How to delete any post after 5min automatically anyone please help
Mirco
How to delete any post after 5min automatically anyone please help
u need an background job that will check post instances with 5 mins delta from their created datetime
Mirco
How
study what a background job is in Django
Neo
study what a background job is in general
Alex
How to delete any post after 5min automatically anyone please help
Do you really need to "rape" your DB with such queries? You could simply do smt like Post.objects.fliter(created__gt=now() - min5ago)
Thuy
tldr; no.
Alex
Yeah, I screwed up.
Mirco
Yeah, I screwed up.
Absolutely agree, it will be a killer
R
Hi guys, I wrote a test for my project. I need to enter a query from my marketter table... this works normally, but the test says there is query Dose not exist . Does anyone know how to fix it?
Abdulrasheed
Please when I use password fields in my model whenever I am typing the password in my website I will be seeing what I am typing instead of dot dot. Please hope you guys understand? .tagall
Abdulrasheed
<input type="password">
I don't use html I use built-in user model
cj
Please when I use password fields in my model whenever I am typing the password in my website I will be seeing what I am typing instead of dot dot. Please hope you guys understand? .tagall
do you want a /warn action for that .tagall thing? do you really want to send a notification to all 12064 members in this group?
cj
I don't use html I use built-in user model
then you should use it ¯\_(ツ)_/¯ that's how you do things in a web application
Daniil
Hi, guys. Can some help me? I'll try login to telegram at my website (use telegram auth at django) but when clicked to button auth, telegram return bot domain invalid. Although when auth at local (ngrok) machine it's work.
Monday Monkey
Hi ,guys i have a dought how to handle multiple form submission in single view any idea
Monday Monkey
Handled by Ajax
Kuntal
How to slugify data one model to another model please help I have a phone number on account model i want this data on post model
VJ
Hi I have doubt in manytomany in django
VJ
How can we post the data with formdata for many to many field in django
Somvit
how could i add google authentication in django through social-auth-app-django
Somvit
can anyone help me !
Саша
hello everyone what if i have urlpattern with pk parametr: re_path(r'^blog/(?P<pk>\d+)$', blog_detail, name="blog-detail") and i want to write url tag without parametr {% url "blog-detail" %} How do i can do it?
Enes
If you will use it in a loop just add a function in your model def get_absolute_url(self): return reverse('blog-detail", kwargs={ "pk":self.id }
Enes
Anyway
Enes
I need help too. I have a model with powered by Ajax. The post content is empty at admin when I submit the post while online. But if I am offline my ajax works perfectly. I think CORB activated when online and detect that I am requesting to post method from another url. But If it is due of this why my like_button url does not give the same error
Enes
My like_button is powered with ajax and it is working on different pages when request send. But don't know why please give me a solution guys
Ankit Anand
AnyOne help me How to define cursor end pint to get response end pont value used in second time hit in url
Enes
I am using it almost all projects if required to add Google authentication
Oyindamola
Hello am having issues with error 404 page not found How can it be resolved please
Mirco
Hello am having issues with error 404 page not found How can it be resolved please
404 can be generated from multiple reasons If you share the traceback we can help u
Oyindamola
404 can be generated from multiple reasons If you share the traceback we can help u
Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/family.html/ Using the URLconf defined in tutorial.urls, Django tried these URL patterns, in this order: The current URL, family.html/, didn't match any of these. You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page
Oyindamola
Doragonsureiyā
Okay how can I understand it please . Any resources or explanation of the Model View Template. I will appreciate
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Alex
Okay how can I understand it please . Any resources or explanation of the Model View Template. I will appreciate
As I understand it - classical MVC allows you to have pretty reach business logic in views, which responsible for representation (like templates in django). But in django developers decided to highly restrict the representation (templates), and gave its possible logic to the views, which are controllers in classical MVP. Again, it's my understanding of the concept, there are probably much better sources on this topic.
Rohith
How to connect cosmosdb with django
shiva
How to validate list of data using django serializers
shiva
Data = ["dhhd","hdhsh"]-ids
shiva
How to validate this data using serializers django
William
Data = ["dhhd","hdhsh"]-ids
What type of data you will get in that list?
shiva
shiva
What type of data you will get in that list?
Like project IDs I'm getting in it
William
If all the items are string then try this ListField in serializers
shiva
https://www.toptal.com/developers/hastebin/uvivineruq.py
Sunken
Hi every one Is there any way to save "about us" information of a site in dB????
Sunken
create a model with fields like any other
Yeah but there is a problem In definition of models we read that a model should have more than 3 instances
Sunken
But I want to save single individual text