Koen de
Krishna
def update_view(request,id):
sevekari = Sevekari.objects.get(no=id)
if request.method == 'POST':
formobj = SevekariForm(request.POST,instance=sevekari)
if formobj.is_valid():
formobj.save()
return redirect ('/sevekari')
return render(request,'moralapp/update.html',{'sevekari':sevekari})
Krishna
Can anyone help here...update record is not working for me
Krishna
Krishna
If condition is not passing i guess...is there any other way to define if statement?
Maxim
Krishna
عبد القيوم
Krishna
Himanshu
Maksim
Hi! Have a difference between 1 (u.password = password, u.save()) 2 (u.set_password(password), u.save()) in u = User.objects.get(name=name)?
Charly
Holla
Doragonsureiyā
Okey wait
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Masoud
hi when use rabbit in django i have this error :amqp.exceptions.AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
yusof
hey
i have file field and it gets audio.
i wanna save audio duration in another field?
any idea how to do that ? thanks
𝔸𝕣𝕞𝕒𝕟 ֍
Hi guys, what you need to know, to start learning Django??
Like mySQL
Maksim
English language and basic knowledge MySQL, Python
Holla
Holla
http://linkode.org/#QTxqVkSXSwASckBDXbYCR1
Holla
yes i did f
Holla
from django.urls import path,include
Holla
path('',include('events.urls')),
Dave
path('',include('events.urls')),
Oh I see.
Try to put a kwarg name in the url pattern where it requires a kwarg year and month
[path('',views.home,name="home"),
path('<int:year>/<str:month>/',views.home, name="home")]
Holla
you mean i should **kwargs to the function
Dave
you mean i should **kwargs to the function
Its not like that. The kwargs I said is name kwarg in path function in urls.py.
Try adding a name kwarg in it with value if home. The you error you encounter NoReverseMatch commonly shows when your app can't find a url with a name kwarg in path function.
Holla
ok
Holla
http://127.0.0.1:8000/may/2022 this gived me page not found
Dave
Holla
did still page not found
Dave
If you can, can you also add the views.py with home function.
Holla
<a class="nav-link" href="{% url 'home' '2022' 'March'%}">March</a> i think its expecting something from here
Dave
Holla
i think i should go back to the tutorial and watch it agian
Holla
thanks for the help will dave
Dave
thanks for the help will dave
No problem, just rewatch and read the official guide of Django's documentation. Come back here to ask again if any problem occurs.
Holla
ok thanks
Anonymous
How to connect Django with React
Anonymous
1)Babel+Webpack+Django+React
Or
2)npx create react app(local host 3000) python manage.py runserver (local host 8000)
Anonymous
Which one is better
Anonymous
S
S
Anonymous
Anonymous
example performance
S
both
Well in that case, I hv seen approach 2 being followed more by teams that I hv worked with.
Although that doesn't necessarily make approach 2 to be "better".
But u get what I'm saying right ?
MRT
hey guys, how i can use django orm with one connection in multiple thread ?
Zunair
Can we use django default admin panel after deploy
Andrej
Zunair
Andrej
Thanks
The admin panel is a plugin like everyone else. When it is included you will have access to it. It's a nice way to manage your data on the production system.
Zunair
Sinan
👋 hi friends
how to give user permission on specify fields of model only
i.e Field Level Permission Django
عبد القيوم
Zunair
s@123
Is anyone a college student in this group from india, which has intermediate or advanced skills in (Django or react). I am interested in participating in upcoming hackathons but need a good team partner for participation.
Doragonsureiyā
theDisgrace
i am unable to send post/get request using axios to django. Axios says network error and i've tried all the solutions from stackoverflow
Maksim
For SignUp and LoginUp use one form or twice?
Mirco
Zunair
I will create django site on local server now I want to deploy in my hosting domain how I can deploy?
No
For registration
I create an form
In view when
If form.is_valid():
Give a error.
'<' can
Everyone can help please
Krishna
Hi all, how to achieve search for records on django
Krishna
Requirement to take user input from html page
Mirco
Doragonsureiyā
Hi all, how to achieve search for records on django
These single steps will help you a lot:
Step 1️⃣: Open a browser
Step 2️⃣: Write down https://google.com or https://duck.com and press Enter
Step 3️⃣: In the search box, write down the same words you asked here
Step 4️⃣: Read the first results
Zunair
Mirco
😅乛 𝐃𝐚𝐫𝐤𝐊𝐧𝐢𝐠𝐡𝐭 🚩™
A server error occurred. Please contact the administrator.
How to fix this error