Grace
Arpit i wanted to count per category
Arpit
can you send the model
Shazeb
Why django is better then rails?
Shazeb
I'm in a situation, not able to understand.
Cabrel Tchomte
Why django is better then rails?
why do you think, is better? 🤔
Shazeb
I don't know
Cabrel Tchomte
you can check on Google : django vs rails
Shazeb
I'm newbie
Д
ruby is definitely a better programming language than python though
Shazeb
Ok
Farhan Hasin
I've hosted two django projects using heroku and added them to my LinkedIn profile for showcase. Will it stay like that? or will heroku expire or something? I'm using free heroku account.
Д
huh really
judge for yourself https://www.codecademy.com/learn/learn-ruby/modules/learn-ruby-introduction-to-ruby-u/cheatsheet
Д
I don't even program in Ruby but after reading through that, I was pretty convinced
Д
plus Ruby is more concise. less code to write. who wants to write code
Rodolfo
I have been programming in ruby since 2008, and have developed applications with RoR, but I prefer python because of its great ecosystem. I also love Django because of its simplicity and power, where I can do things that I wouldn't dream of doing with RoR
Harry gorilla
I just find django somehow not related to python in some way. Like for instance, the django classes python classes normally have the init function, django classes in the model does not
Ali Hasan
Has anyone used django-silk ? I’m getting the error No module named “unisilk” after running: python manage.py migrate
Ali Hasan
Or just running: pythob manage.py gives the same error
No one
Can someone tell me why vs code is not able to recognise html,css?when I am working with django?
No one
Syntax is not highlighting and i am unable to link the external css
No one
It is showing errors . But when I am doing normally without django it is working fine
zoroooo
Guys I need a method to add users who are registered get automatically added to groups present in admin
zoroooo
I'll be thankful if anyone help me out
zoroooo
These users are signed up by allauth
S
What do you mean by flow?
Request movement from modules like views, serializers, modules etc
S
What do you mean by flow?
Dont try to relate Django as a whole with Python...
Harry gorilla
Dont try to relate Django as a whole with Python...
I thought django would also help me learn python though
Ali Hasan
I thought django would also help me learn python though
I struggled a lot learning this way. but it comes around a bit by bit doing some searching along the way
Husniddin
Hello everyone, did i need advice and help on django? Is the transfer of data from the frontend to the backend via js? Can you give an example?
(⌐■-■)
Hey.. i have to make a download button that download files from my file model. Can anyone tell how it can be done?
Kalandhar
Is it possible to redirect to any app urls..? Ex : app1 urs to app2 urls
Kalandhar
Yes by using reverse and namespaces
Can you tell me one example..plzzz
Mirco
Can you tell me one example..plzzz
Check the documentation of reverse on Django official doc You will find how to do it
Kalandhar
It was confusing so i questioned in group
Mirco
It was confusing so i questioned in group
Just take your time to understand it But basically you can use it like reverse('app_name:url_pattern_name')
Manu
can any1 pls help me with form tag
Blaise
I have a question about deploying a lambda function to aws
Kalandhar
Yes by using reverse and namespaces
Like Return HttpResponsePermanentRedirect(reverse('home')
Blaise
I am using zappa but it gives me errors
Doragonsureiyā
I am using zappa but it gives me errors
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
Blaise
I need help deploying a lambda function I get an error when using zappa to deploy to aws
Blaise
Yes
Mirco
Yes
Not a good idea to use Django with lambda It's much easier to use FastAPI and wrap it with Mangum
Manu
<form action="" method="post"> {% csrf_token %} <p>Name of the product </p> <input type="text" Required name="productname" placeholder="Product Name"> <p>Length</p> <input type="text" Required name="length" placeholder="Length of the product"> <p> Height </p> </form> url.py urlpatterns = [ path('', views.index, name='home'), path('add_product/', views.addproduct, name='addproduct'), ] what should i use in form action so that my data will be saved to database
Md.Shahid
I have created one django modelform using Order model
Md.Shahid
And in Order there is payment_detail which is foreign key of Payments field
Md.Shahid
And there is paid field
Md.Shahid
Now I want to render paid field using Order django model
Md.Shahid
How can I do this,I have tried a lot?
Mirco
Now I want to render paid field using Order django model
order.payment_detail.whatever_attr_of_payment Where order is an instance of Order model
Md.Shahid
I m using django form model
Md.Shahid
In template ,I want to passing
Md.Shahid
{{form.payment_detail.paid}}
Md.Shahid
Does not work
Md.Shahid
Class OrderForm(ModelForm): model=Order Class Meta: fields=' all '
Ali Hasan
I’m trying to install and use django-silk to profile and optimize queries. But I’m getting the error: No module named “unisilk” after running: python manage.py migrate Or just running: pythob manage.py gives the same error
Mirco
Никита
Good day everyone, tell me with the deployment. I'm trying to run through gunicorn, --bind x.x.x.x: 8000 works on the port, but nginx does not give back, it costs fastpanel2. Link to config https://pastebin.com/ybjGvhxP
Ali Hasan
did you added what you installed to the INSTALLED_APPS section
Yes actually it has like fixed steps in its documentation which is installing it, adding its middleware, adding it to installed apps, adding its urls and then running the migrate .
Ali Hasan
When I did those , even the manage.py file is not executing and giving me that error
Enes
no module named unisilk.. so where did you mention that in your project
Ali Hasan
no module named unisilk.. so where did you mention that in your project
I didn’t , that’s the reason I can’t find a solution
Ali Hasan
I googled a lot , nothing found on that specific issue , so I opened an issue in the github page of the project , hopefully someone answers
Enes
your problem should be simple
Enes
delete the last migrations and try again