basir davaji
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?
Maxim
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.
anrays
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
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
Saadi
But for now I need to do this way
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 ?
pikachu
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,...}].
R@kesh
Anonymous
R@kesh
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
Optimus
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
Mystery P.
Anonymous
Rohan
Anonymous
I want both django and react together
Which nothing good to see on youtube by my search, at least
Anonymous
Mystery P.
yes its a mix of java, c#, mysql, go and python
Mystery P.
Anonymous
Eng.
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?
Anonymous
How many POST request will be handled per second in drf without any config for anonymous user?
Azizbek Xushnazarov
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
inchidi
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
this might help
https://docs.djangoproject.com/en/4.0/ref/models/instances/#django.db.models.Model.get_FOO_display
Vaibhav
Vaibhav
Sunny
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
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?
Mirco
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
عبد الله