Abuya
Hello guys Where can I learn drf signals and drf properties in depth
Doragonsureiyā
Hello guys Where can I learn drf signals and drf properties in depth
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Abuya
I am not looking for drf framework...
Abuya
documentation***
Jeff
Hi please Can i have help for fixing this error => "myapp.wsgi.application" could not loaded error importing module. I installed drf and corsheaders
Dlight
Hey yall , whats the best resources for server setup and Django deployment (YT vidoes or book or article ). Dedicated server not cloud . Thanks
Adish CT
Anyone has the document of django session
Charly
Anyone has the document of django session
Yes, it is on the official documentation
Adish CT
Anything apart from that
Charly
Anything apart from that
Why would you like to use something that it's probably outdated and unreviewed?
Adish CT
If any more details that will help me to better understand
Y
Which is better django or nodejs ?
Ashutosh
Which is better django or nodejs ?
Both are different, django is multithreaded whereas nodejs is single threaded
Y
I am fresher whether I go for django or node ?
Ashutosh
If you are comfortable with javascript,,,,, would suggest nodejs. Otherwise go for django. Later you may learn node.
Y
In front end I know js and react js and backed I complete my intership in one company as a backed developer and work on django framework
Y
And postgress SQL
Ashutosh
I think both should be learnt. But if u know javascript that much, you will get to node in much lesser time. Either way both are good to know.
Y
React is connected with Da ajango ?
Ashutosh
React is connected with Da ajango ?
What do you mean by connected
Ashutosh
?
Y
Frontend connected with backend
Y
In front If use react and backend I use django
Ashutosh
First of all let me give you a little overview, from backend side we only deal with request and response or may be sometime sockets. There is no any type of connection is made. Both may be deployed on different server or may not. Frontend sends the request object to the server and backend send the response object to the client
Ashutosh
You are good to choose any backend or any frontend but the communication protocol for the backend and frontend must be same
Ashutosh
There comes REST protocol or Graphql
John Doe
Hello everyone. Who worked with mailtrap? Is it normal that while checking the domain on mailtrap, the main domain is not working?
Шкип
Hello everyone, can you please advise me. I have a gps tracking project, frontend on React, and backend on django. The project is running on two laptops via ngrok. The problem is that some browsers show the cors error, and through mobile devices. https://github.com/shkiiper/gps_tracker.git
Холод
Hello, everyone! I have a question about django, I will be glad of your help. In my project, I need to place two different forms in one template and process them independently of each other. So far I have not come to a solution to this problem, except for this option https://krzysztofzuraw.com/blog/2016/two-forms-one-view-in-django/ However, I am not sure that there is no more suitable option. Maybe there are ideas on how to implement this?
🅓🅡🅔🅐🅜🅒🅗🅐🅢🅔🅡會(Inactive)
Please who can help out on a good Docker tutorial related to Django
Doragonsureiyā
Please who can help out on a good Docker tutorial related to Django
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.
Мишаня
Hello there. Please help. The automatic field (AutoField) generator in django always starts from 1. How do I make it generate id from initial value=100. For example, 100,101,102...
Мишаня
Okay, thanks
REEL
Hello, can someone help me learn Django?
Wing$
Hello, can someone help me learn Django?
oh yes but i'll recommend reading the Django documentation
Doragonsureiyā
Hello, can someone help me learn Django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Amit
Can anyone tell me...best platform to learn djago?
Doragonsureiyā
Can anyone tell me...best platform to learn djago?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Demsy
Please how do I fix this error? ERROR 2003 (HY000): Can't connect to Mysql server on localhost:3306
Demsy
I've tried many methods but they all failed
Demsy
I want to connect Django to Mysql db
Wing$
I want to connect Django to Mysql db
read django documentation page 23
E
I have a ready-made database in which data will not be entered, I need to take data from it for a form in a Django project. Is it necessary to create a model for this? I can use raw queries in the DB, but where to implement them?
.
Hello everyone, please help with Django Rest problem - React + (jwt) There is a problem when I set permission_classes = [IsAuthenticated] Then it writes 403 "Forbidden" when making requests. I've already rummaged through everything to solve it, but it still doesn't work getUserId -403
Somesh
Guys any article regarding configure django application in IIS with celery and celery beats(note i am not using django -celery library, i am using celery)
Anonymous
I have everything ready, the models are ready, I just need to click to buy and go to the admin panel
Тимур
Hi @bot.callback_query_handler(func=lambda call: call.data.startswith("cancel_order_q")) def cancel_order_q(callback_query): group_id = callback_query.data.split("_")[-1] group_result = AsyncResult(group_id) group_result.revoke(terminate=True) How can I properly terminate all task in group? My example don’t work
Sandip
Hello, could anyone telle how can i customize user login fields. i want login using phone no and OTP
Nerd
Hello, could anyone telle how can i customize user login fields. i want login using phone no and OTP
Modify the User model to include those fields and check how to utilize USERNAME_FIELD in django BaseUserModel
Stanislav
# admin.py from django.contrib import admin from .models import Article, Comment admin.site.register(Article) admin.site.register(Comment) why do I get exception? django.contrib.admin.sites.AlreadyRegistered: The model Article is already registered in app 'articles'. where is article already registered?
Stanislav
django.contrib.admin.sites.NotRegistered: The model Article is not registered
Muflone
where is check?
What you have in your models? Do you have some @register thing?
Stanislav
What you have in your models? Do you have some @register thing?
import datetime from django.db import models from django.utils import timezone class Article(models.Model): article_title = models.CharField('название статьи', max_length=200) article_text = models.TextField('текст статьи') pub_date = models.DateTimeField('дата публикации') def __str__(self): return self.article_title def was_published_recently(self): return self.pub_date >= timezone.now() - datetime.timedelta(days=7) class Comment(models.Model): article = models.ForeignKey(Article, on_delete=models.CASCADE) author_name = models.CharField('имя автора', max_length=50) comment_text = models.CharField('текст комментария', max_length=200) def __str__(self): return self.author_name
Muflone
Maybe in other files?
Stanislav
lol it works right now idk what I changed
Calixto
Hello I public Django app in IIS, with the URL exampleserver.com/proyectDjango, the raised 404 error when accessing the home page, but in localhost not have errors
kiran
on submitting the form the data should be posted and i should get a popup screen
kiran
but django function is always redirecting can u lease help me with how to overcome it
Pablo
From your code, at the end of the post request, you are redirecting to the homepage by doing return redirect('/')
kiran
Is there any way only form data will be passed without any redirect or render
Pablo
Is there any way only form data will be passed without any redirect or render
remove the redirect line if you do not want the page to get redirected
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Dan
Hello, need help. I am creating app like instagram, I need to append button like. but when user click on button it doesn't add to db. https://dpaste.org/GxjN9
Sintu
There is a not critical mistake. why you are not using {{form}}. https://dpaste.org/ddMdS#L4,34,36