Vlͥสdͣiͫᴍir
hi there! help me, guys, is it possible whether add dynamic custom field in list_display (admin site). If yes, then as?
Anonymous
Hi when i use my project locally everything works fine. But in sever when i try a rtl url it will give me 505 error But for english urls works fine mysite.com/singer/<name>/<song>
Vlͥสdͣiͫᴍir
def your_value(self): return yourvalue And add it to read_only list
and if I want to get these fields from many_to_many field. [x.name for x in m2m.objects.all()] It's possible?
Vlͥสdͣiͫᴍir
Cheap
Use messages framework
Thanks! i implemented messages framework but stuck in an issue: when i pass a message from view( redirecte, also getting response code 304 redirected), i am able to get that message in cookies but its not displaying in template template = dpaste.com/2J4NNGR i am sure something wrong with template
Mirco
You wrote messaages instead of messages
Cheap
oh darn! dude you are life saver
Cheap
i was debuggin since an hour
Муродали
hi guys. i ha a question {{ form.as_p}} what does it means as_p
Muflone
As Paragraph
Muflone
p in html
Муродали
i have problem with forms who knows well it
Муродали
can u help me i'm a beginner in django
Doragonsureiyā
can u help me i'm a beginner in django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
cj
read that ☝️
cj
don't skip any step
Муродали
read that ☝️
i read it but i didnt understand well it
cj
i read it but i didnt understand well it
then read again, carefully, word by word, be patient
Bradypodion
i read it but i didnt understand well it
Do you know html? Maybe you need some of that
Муродали
Do you know html? Maybe you need some of that
i know html i have a problem with django form
😎
Hi I need a real world Django project to study. Anyone have this?
Look for Django 3 by exemple by Antonio mele... There are complete applications to build from blog to e-commerce and learning platform building and some advance features
Anonymous
Hello and goodevening everyone im looking for some good please to help me with some code. I am a junior python developer and i have just started to taking on freelance jobs in the full-stack field, as you can imagine i have been running into bugs and glitches in my code and need some help. i have built an eCommerce store but for some reason have an issue with the user login and purchases, I need there to be two options purchase without signing up to the store and the second option is the customer can signup and purchase, it would be a bonus if you could look over my code for any other bugs. The real problem is at this moment with everyone at home more people are trying to shift there business to online so I am getting more call for website then I can keep up with. So maybe we can work our a beneficial deal for work long term please let me know. Thank you for your time
Anonymous
people**
Anonymous
hi guys when i try this url in cpanel server http://site.com/singers/jennifer project works fine but when i try http://site.com/singers/محسن i will get this error Internal Error The server encountered an unexpected condition which prevented it from fulfilling the request. with status 505 but this issue not shows in local machin
Code
${Foad} check your wsgi config
Code
...and 'try' not to use runserver
Brian
Hi guys. I' working on a library system. I have a list view and a detailed view. I get an error when I try to add the detailed view url to each object on the list.. Can anyone tell me where I'm going wrong? Because I seem to have added the urls to the list template correctly.. Here's my code. https://pastebin.com/wqGfL5fK .. I'm here to walk anyone through it
Brian
The error is django.urls.exceptions.NoReverseMatch: Reverse for 'book-details' with no arguments not found. 1 pattern(s) tried: ['book/(?P<id>[0-9]+)/details/$']
Code
@larrb check 'book/<int:id>/details/ "{% url 'book-details' %}" is looking for parameters
Brian
@larrb check 'book/<int:id>/details/ "{% url 'book-details' %}" is looking for parameters
The url works. I however am not sure if I did it the right way on the books-list html
Brian
So that the user clicks on a book and are taken to it's detailed view
Code
look at your url. it's expecting something like "/book/123/details", but your html tag doesnt see that
Brian
look at your url. it's expecting something like "/book/123/details", but your html tag doesnt see that
Many thanks kind sir/ms . I was supposed to state it on the url in the templlate {% url 'book-detals' book.id %}
Code
so, it's working now? @larrb
agiezpy
Hi, someone can recommend me a doc or tutorial on how to configure my settings and sorl-thumbnails for cloud storage? I use Linode as web server and linodeobjects as image server. Thanks in advance
agiezpy
is that related by any means to django?
Yes, sorl-thumbnails library for django
säthïs
Guys does anyone help me to get good tutorials or documentation for swagger docs
Pulin
How to add subdomain with django url? Please help me
inchidi
How to add subdomain with django url? Please help me
you shouldn't manage subdomain on Django, it should be on web server level (nginx/apache)
Rajesh
Any good tutorial on how to deploy Django channels
Ninja
When i using if user.is_authenitcated condition in master page its work fine in first time as i show login and logout but when i logout the user and again login then in the url its become two times accounts/login/accounts/login.....how we redirect in main page
Ninja
?help
Anonymous
shubham for django greater than 2, you could use
Anonymous
shubham path('login/', auth_views.LoginView.as_view(redirect_authenticated_user=True), name='login'),
Anonymous
Or, take a look here
Anonymous
https://stackoverflow.com/questions/2320581/django-redirect-logged-in-users-from-login-page
Anonymous
Maybe you must use @login_required decorator and in setting define LOGIN_REDIRECT_URL
Jon snow
Hello any here,i need a little help please
ms tk
how to handle large file upload in django
Ninja
shubham path('login/', auth_views.LoginView.as_view(redirect_authenticated_user=True), name='login'),
I used this in view.py as i write method decorator before the class method used in views.py and i passed parameter login_required,name='dispatch'
Ninja
I used this in view.py as i write method decorator before the class method used in views.py and i passed parameter login_required,name='dispatch'
Its working fine but when the same user again login it after logout in url its not redirect in login page or base page although it redirect accounts/login/accounts/login two times
Yash
Hello folks, I want to create an api where I can upload the excel file and it should render the data from the excel sheet to the table
Yash
I will be testing it through Postman, so my goal is to upload an excel sheet while hitting the api and it should store the data in DB
Yash
Can anyone please help me out how can i achieve it? I have seen the django document but couldn't get any valuable things
Yash
It would be great if someone can drop some links/blogs/ videos tutorial which meets my target
Yash
Thanks a ton in advance 🙏
Carbon
hii any body can helpme sort a pip install pywkher
Carbon
problem i am gettng again and again
Andrew
what is the best place to keep business logic in django-rest-framework, in views or in serializers?
Yash
View
Yash
I guess
Yash
In official documents they had suggested to keep the logic in views
Mirco
then if u need handle into serializers some validation/creation etc. stuff
Mirco
try to make your views small and clean as much as u can
Mirco
it will be much easier to manage them
Rahul
Hello
Rahul
Myself Rahul
Rahul
Have anyone worked on payment gateway integration in django
Doragonsureiyā
Have anyone worked on payment gateway integration in django
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 60k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html