Vivek
...
Grace
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
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.
McLean
Д
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
S
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
Harry gorilla
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
Mirco
Kalandhar
It was confusing so i questioned in group
Manu
can any1 pls help me with form tag
Blaise
I have a question about deploying a lambda function to aws
Blaise
I am using zappa but it gives me errors
Mirco
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
Mirco
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?
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 '
Kalandhar
Blaise
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
Enes
Ali Hasan
When I did those , even the manage.py file is not executing and giving me that error
Enes
Enes
no module named unisilk.. so where did you mention that in your project
Ali Hasan
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