Anonymous
Which database is suitable for working with Django?
Default is SQLite, but the fastest is MySQL, the coolest is PostgreSQL (but not sure)
Anonymous
Thank you man
Not a problem
Charly
Which database is suitable for working with Django?
Please go to the Django documentation as you clearly haven't checked it
M
Hi guys, how can I write a view that converts the django-filter result to PDF export? Anyone has previous experience? With manual filtering I can get the PDF. My question is using django-filter results. I searched and tried almost everything but couldn't do it:(
anrays
Hello guys Why when change DEBUG for false dont working my static file Can help for me , thanks,?
Angel
Just i am researching about how create a SaaS application. Thinking in future and big datas. What recommendation do you have with Django apps and databases?
space
Hi, I was met the bug: when I created the row of the model, database updated. But I using get database from objects.filter long time to get it for show. Why? ( cache? )
Gigil
Hi could some one help me to find a good doc for transilation in django. I am using rest apis and i want to convert success data part to arabic. I was able to do the convertion for error messages but having trouble to find doc for how to transilate data from db.
Saadi
By using Django authentication system I want to make signup ,login,forget password, basically all of the auth features. but I am using react frontend. So how can I make api's on django with using class based views. ( Not Django Rest Freamework) Detailed example will appreciated.
Saadi
why not use DRF for this?
Because its already running project
Д
Because its already running project
I'm wondering about the full architecture of the project
Д
Because its already running project
maybe it's possible to integrate DRF anyway
Saadi
By using Django authentication system I want to make signup ,login,forget password, basically all of the auth features. but I am using react frontend. So how can I make api's on django with using class based views. ( Not Django Rest Freamework) Detailed example will appreciated.
Saadi
But for now I need to do this way
Д
Yes you are right
adding auths + logins should be done with care
R@kesh
from django.shortcuts import render from django.contrib.auth.decorators import login_required # Create your views here. def home_page_view(request): return render(request,'testapp/home.html') @login_required def java_page_view(request): return render(request,'testapp/java.html') @login_required def python_page_view(request): return render(request,'testapp/python.html') @login_required def Dot_net_page_view(request): return render(request,'testapp/.net.html')
R@kesh
is there any error it is not working ?
Sergey
Hi all! I have a question to those who ever used swagger. So is there a way to have some kind of mixed structuture using only serializers or need some extra ways to do it. What i'm talking about, e.g.: we have model_1 and there is two models connected with it and the structure of this models mostly same. So what result i want to see, e.g: { field_of_model_1: value,... children: [ {children_1_field: value, ...}, {children_2_field: value,...}].
Anonymous
Oh, ok
Anonymous
maybe urls do not match with views? Or, smart way would be if you show what is the error
M
Hi guys, how can I write a view that converts the django-filter result to PDF export? Anyone has previous experience? With manual filtering I can get the PDF. My question is using django-filter results. I searched and tried almost everything but couldn't do it:(
Shazeb
I'm trying to implement tinymce with crispy forms. But its not working can someone please help?
Kishore
Hi team currently i am working on django+ react application.i need to setup new relic as a monitoring tool for dev qa server.may i know how to setup?? I mean any reference to follow
kam
how to connect from your local machine/django app to running docker container postgres database?
Anonymous
Hi Please recommend a great and complete project based Django/React/PostgreSQL fullstack course Preferably just project No Teaching Thanks
Anonymous
I want both django and react together Which nothing good to see on youtube by my search, at least
Anonymous
Nope.
Any suggestion?
Mystery P.
yes its a mix of java, c#, mysql, go and python
cj
I want both django and react together Which nothing good to see on youtube by my search, at least
go to GitHub, you'll find a lot of projects there that you can pick and start contributing to
cj
So what's the search content for that you say?
use the keywords you want ¯\_(ツ)_/¯ like Django, ReactJS, Python, things like that... haven't you ever used a search engine before?
kichu
I have a model which has a foreign key which points to a model with has another foreign key. When I'm querying the first model. I want to get the result as a nested dictionary. Now I'm using 'model_to_dict()' which gives the ID of foreign key. Is there any way this is possible?
Антон
I have a model which has a foreign key which points to a model with has another foreign key. When I'm querying the first model. I want to get the result as a nested dictionary. Now I'm using 'model_to_dict()' which gives the ID of foreign key. Is there any way this is possible?
class ThirdModelSerializer(serializers.ModelSerializer): class Meta: model = ThirdModel fields = ["id", ...] class SecondModelSerializer(serializers.ModelSerializer): third_model = ThirdModelSerializer(many=True) class Meta: model = SecondModel fields = ["id", ... , "third_model",] class FirstModelSerializer(serializers.ModelSerializer): second_model = SecondModelSerializer(many=True) class Meta: model = FirstModel fields = ["id", ... , "second_model",]
Anonymous
How many POST request will be handled per second in drf without any config for anonymous user?
Azizbek Xushnazarov
How many POST request will be handled per second in drf without any config for anonymous user?
if you don't set any throttle classes , then as much as your server can handle
Sunny
I have a model named Task and it has one field User which is foreign key. I want to assign task automatically to user whenever I add task.
RIP
how javascript use django serialize queryset with choice field ? ex:STATUS_CHOICES = ( ('1', 'Open'), ('2', 'Resolved'), ('3', 'Won\'t fix') ) status = models.CharField( "Status", max_length=1, choices=STATUS_CHOICES, blank=False, default='1' ) , my js want display open /resolved in the htmls
RIP
now I can only show 1 /2 /3
RIP
not drf, pure django
Sunny
So what's the catch? That's straight forward right?
I want to assign task using condition....like if task has certain value then it assign to user1 else user2
Sunny
In admin?
In view
Sunny
I want to write a function which will do that
Vaibhav
In view
You can use authentication.. To know which user it is
Sunny
You can use authentication.. To know which user it is
Using that I can assign task to current user only
Vaibhav
Using that I can assign task to current user only
Yes but you will get a post api hit.. you can use that to assign users
RIP
this might help https://docs.djangoproject.com/en/4.0/ref/models/instances/#django.db.models.Model.get_FOO_display
I know this method , but dont know how to use it in serializers.serialize('json',querysetthemodel_with_choicefield')
kam
how to pass form data values to api with django test Client?
Nidhin
Anyone here has used creditor?
Nidhin
*ckeditor
Doragonsureiyā
Anyone here has used creditor?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Nidhin
I have been using ckeditor as a rich text editor.... And used ckfinder as file and image uploader.... But the thing is... I need the uploaded image to be uploaded into a permanent place so that I can retrieve it when I want..... But now it is getting uploaded to temporary storage of ckfinder... So after some time it gets deleted... How can I resolve this? I am just a beginner... So there will be mistakes in what I said.... But please help me out.....
Smart_Saga
I am a newbie in programming and want to know the very difference that lies between api and Database. Please this cut across all programming language or framework like Django🙏
20MT8216
Hi can one help me execution of python project
ivantom
please help how do we get differents places on google map using google map api such as restuarants ?
Bradin
What’s the best approach for launching asynchronous / long running tasks in Django?
Smart_Saga
Hi can one help me execution of python project
To execute python programs: 1. Get python installed on your operating System if your are using windows. Mac book comes with python 2 installed as its initial but can still be upgraded to the current version. 2. You can use python default Integrated development environment(IDE) OR manually get one installed (pycharm, vs code etc). 3. Write your program and then run it using either the terminal or ide. 4. Let google speak for you in terms of how to run code in IDE and i believe will get you covered.
عبد الله
Hi anyone knows is there any way to make related dropdown filter - multi choices in django?
Kirill
hello, i dont understand how i should make test on many to many field in pytest, please help me https://pastebin.com/9A4e39k2
Viji
Multiple choice nope
We can give in params we should pass search with list