Alexander
nothing... may be some kind of decorator on drf-yasg swagger.yaml view?
Alexander
there are several generators but they use 2.0 version
Alexander
https://github.com/axnsan12/drf-yasg/issues/33
cj
https://github.com/axnsan12/drf-yasg/issues/33
well... you have a great opportunity to make a contribution to the community 🙂
Alexander
this package look extremely dirty (and other generators too), it look simpler to find some type of external converter and convert 2 to 3 by request (use view decorator or something like that), may be with cache decorator
G
Hello everyone, Someone knows a book that I can use to learn how to improve the search engine databases on my website
Aadhi
Guys, Anyone knows how to integrate Razorpay in Django payment. Any documentation or sample code something
Charly
https://github.com/razorpay/razorpay-python
Charly
the even have a demo app (in flask): https://github.com/razorpay/razorpay-python-testapp
Yusniel
Dear colleagues, I am starting a new project with Django. I was wondering if you could give me your opinion about which choice should I take. The first one, write backend and frontend using Django only. The second one is using Django + DRF for the backend and React for the frontend. Which one should I take?
Doug
I like django+react
Yusniel
I'm backend developer but in my team we have frontend developers as well.
Charly
I bet they preffer the second option
Anonymous
Hello guys, how to record user url history not just one ?
Yusniel
in that case, have you talked this with them?
Yes, but we think that the app will not be available for mobile users for now. So, using DRF maybe isn't a good idea.
Charly
I mean, you don't need to have a mobile app, justa a spa
Charly
non-responisve if you want to mess mobile users anyway
Yusniel
wut? DRF ist not for mobile, its just for rest apis
Yes, but we are using api rest for mobile app development.
Charly
and if you have a rest api you are going to need to build a mobile app?
Yusniel
and if you have a rest api you are going to need to build a mobile app?
Yes. In some cases, our clients needs both web and mobile app. So, we develop backend +DRF for both.
Charly
dude, I bet you can use DRF and don't create a mobile app
Charly
but maybe I'm a crazy guy
Yusniel
However, I'm not sure if this approach applies for any project.
Yusniel
What is your recommendation in these cases?
Charly
I already said it, use DRF and a independient front end
cj
However, I'm not sure if this approach applies for any project.
each project has its own requirements. You can't apply the same approach to every project.
cj
dude, I bet you can use DRF and don't create a mobile app
yes, you can have a SPA as your client, no need to mobile app 🤷🏻‍♂️
Its
is there any django full project available any like blog or any thing thanks if you can provide a link to download
Charly
😡
cj
😡
🤣
OUHBOY
Hey guys anyone know how to set up environ variables for storing secret_keys, api_keys etc???
Ajay
Guys at admin side my objects displaying like object(1) object (2) and so on insted of its name
Ajay
How can I resolve this
Ajay
?
Михаил
Hello! What should be done to nested serializer accept PK or None for update and return object data?
Anonymous
Where i can find django sample projects for beginner
Михаил
Question not clear to me
Thank you, Mohit. I found solution https://stackoverflow.com/questions/36189303/django-rest-framework-receive-primary-key-value-in-post-and-return-model-object
Mirco
Hey guys, today starts DjangoCon 2019 if some of you is unlucky ( like me ) and don't have the chance to attend it live , here is the live stream on YT
Mirco
is it on pause?
yup, 11AM CET next talk you can find the schedule on official website
Ajay
How to set decrement timer on Django
Mirco
How to set decrement timer on Django
? explain better to avoid xy problem
Ajay
I want to set 24hr time limit for placing order
Ajay
In e-commerce
Ajay
So how I can i
Shubham
Hello I got an error in docker build .
Mirco
Hello I got an error in docker build .
If you don't explain better what kind of error, it's really hard to help ya
Mirco
I want to set 24hr time limit for placing order
You can use an async task to run the timer on background and frontend stuff to show it
007
#error :-django.urls.exceptions.NoReverseMatch https://dpaste.de/qNBk
007
#error :- django.urls.exceptions.NoReverseMatch #======== template ============ <a href="{% url 'doc' type='example' %}"> input </a> #========== urls.py =========== url(r'^doc/(?P<type>\w+)/$',views.doc,name='doc') #========= views.py ======== def doc(request,type): if type == "example": print("example")
Guillermo
#error :-django.urls.exceptions.NoReverseMatch https://dpaste.de/qNBk
try with this: <a href="{% url 'doc' 'example' %}"> input </a>
007
try with this: <a href="{% url 'doc' 'example' %}"> input </a>
it show error :- Reverse for 'doc' with arguments '()' and keyword arguments '{}' not found. 2 pattern(s) tried: ['doc/(?P<type>\\w+)/$', 'app/doc/(?P<type>\\w+)/$']
Scrim
hello all. I'm trying use django-filter with modelchoicefilter to make dropdown select itens. So when i did it, i cant submit query
Scrim
https://pastebin.com/KWvxbYUq
Mirco
django 1.1
is it a project requirement or are you studying django ?
007
is it a project requirement or are you studying django ?
Project requirement. I have done same thing in django 2 it works... But it not working in django 1
Mirco
Any suggestion
Check better the regex