Kis
anyone here that know how to implement stimulation annealing and generic algorithm in django?
Charly
Django is a web development framework
Conduah
[ls
Kis
if you can help with the concept, i will be fine
Conduah
pls can i get almost all the classes used in django for important stuffs
Charly
if you can help with the concept, i will be fine
No because is not related to Django
Mostafa
What should I do to motivate myself to code?
Anonymous
hey guys do you know how to implement forgot password into login forms with email and django rest apis?
nyctophile
Hello guys! I was trying to add delete funtion to my project But i am getting this AttributeError: 'tuple' object has no attribute 'get' and here is my code can anyone help with that Thanks in advance!!
nyctophile
You don't have render on 36th line
Thanks a lot, it worked. 😅😅😅
Doragonsureiyā
What should I do to motivate myself to code?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Muhammed
Login and authentication with Django and flutter Any reference API
Charly
Login and authentication with Django and flutter Any reference API
You can use the rest framework to create an API which can be used from flutter. Specifically for authentication: https://www.django-rest-framework.org/api-guide/authentication/
_Aanya
Can anyone tell me best source and best way to Learn Django
Doragonsureiyā
Can anyone tell me best source and best way to Learn Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Shahzodbek
Can we use SSO with django
Vitalii
Hello everybody ! Please tell me why I don't get an error when the user enters an incorrect password. I can't understand where exactly the problem is. Login Form : class SignUp(LoginView): template_name = 'client_app/sign_up.html' form_class = SignUpForm def form_valid(self, form): username = form.cleaned_data.get('username') password = form.cleaned_data.get('password') # Attempt to authenticate the user user = authenticate(self.request, username=username, password=password) if user is not None: # If authentication is successful, log the user in login(self.request, user) return redirect('home') else: # If authentication fails, add an error to the form form.add_error('Password', 'Невірний логін, або пароль.') return self.form_invalid(form)
Vitalii
I changed the key to 'password', it didn't help
عبدالواسع
I changed the key to 'password', it didn't help
Read this https://www.pythontutorial.net/django-tutorial/django-login/
Vitalii
Read this https://www.pythontutorial.net/django-tutorial/django-login/
Thanks, I changed the view function according to the example and it worked. But I never got it, it didn't work in the view class
Ali
Hey guys I gonna to create a webapp using jango like git, but in a small scale. I want to Just it save history of document file (ex. docx or ...) without any branch and so on. Just committing and versioning. Thanks for your help
Ali
how can we help you
I want to know how to save file changes like git function and how to implement this project
KingFx
the basic implementation would be design a file object, that have a date, author,content,
Ali
the basic implementation would be design a file object, that have a date, author,content,
What's file object? What's its extension and how to save content in it?
daniel
hello guys i have an issue. my authentication worked before but doesn't work again. and i didn't change any code. It just shows me unauthorized in anything i do. i can't create new user, login user and logout user. it gives the same error and it's not from the frontend because i have tested the endpoints with insomnia. https://linkode.org/#TWVot0yvpOOBAZiHcdl3k5
daniel
Check if creds come, then check if auth func does the thing
thanks i have fixed it just now. turns out it should this 'DEFAULT_PERMISSION_CLASSES': ( 'rest_framework.permissions.AllowAny', ), initially it was this 'rest_framework.permissions.IsAuthenticated',
Stanislav
But with such settings, would u be able to protect a resource ?
Dullah
Hello Guys I am looking for help on how i can deploy my first simple django app on a cheap server. Any recommendations (books, tutorials, yt videos etc), anything I would really appreciate 🙏🏽🙏🏽
Ahmad
Hello Guys I am looking for help on how i can deploy my first simple django app on a cheap server. Any recommendations (books, tutorials, yt videos etc), anything I would really appreciate 🙏🏽🙏🏽
Hi. If AWS is available in your country, try w3schools django tutorial. It has comprehensive beginner-friendly Django tutorial, as well as tutorial on how to deploy your Django app on AWS. Good luck.
daniel
But with such settings, would u be able to protect a resource ?
honestly, i don't know much about all that. i'm still a beginner. But definitely i'd do more research on that. i just wanted to get the website to perform it's basic functionality. the fault in authentication was interfering with the workflow.
Junior
Guys i am using htmx, but when i use hx-get, dont load scripts js, how i fix that?
Doragonsureiyā
Guys i am using htmx, but when i use hx-get, dont load scripts js, how i fix that?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
_Aanya
Where can I learn about web development fundamentals and RESTFUL APIs?
Junior
in website: https://www.django-rest-framework.org/
Prajun
Is there any resourse or YouTube tutorials for understanding ORM queries in django🙂
Charly
Prajun
Thank you
pranav
Is there some sort of roadmap to learn about django rest framework?
Charly
Is there some sort of roadmap to learn about django rest framework?
No roadmap for just a library that's works on top of Django. Just start with it.
𝘴𝓲ꪀꪖ​
pranav
Charly
I learnt most of django so I was asking , anyway thanks
The point is you don't need a roadmap for learn a library
𝘴𝓲ꪀꪖ​
I learnt most of django so I was asking , anyway thanks
So you have less work to do , the learning curve is going to be much easier if you already know django itself
Dambek
hi guys, i had created model formset with 1 field, but after is_valid i got <ul class="errorlist nonfield"><li>(Hidden TOTAL_FORMS field) Required field.</li><li>(Hidden INITIAL_FORMS field) Mandatory gender, how i can fix that?
Dambek
What do you are using to manipulated? Jquery?
No, i just use html , without js
Junior
Do you need jquery or something to manipulated total_forms
Junior
i dont know a way to do this without js or htmx
Dambek
formset = modelformset_factory(model=Under_Theme,fields=['name'], form = Create_Under_Theme_Form, extra = 1), i just create formset and use as_p, and i just want do it without js
Junior
well i never do this without js, so i cant help y
Dambek
well i never do this without js, so i cant help y
ok, thanks, maybe somebody can help me
@l!®€z@
Hi guys how can I enable wss on Django channels
khalelovaD
Hello, everyone Could anyone recommend any sources/video playlists on YouTube about creating a website from scratch, preferably related to a regular school website? I would appreciate it if someone responds to this message.
inchidi
Hi guys how can I enable wss on Django channels
actually its the same approach as serving https
Neha
Any one can refer me as a fresher I have passed out in the year 2020
Neha
I have knowledge on python and I have taken training on django SQL and python
Neha
Please any one help me
inchidi
Any one can refer me as a fresher I have passed out in the year 2020
this is not a job board, please move to @pythonofftopic
Neha
Sorry for the inconvenience
inchidi
You mean, I add info in this fields?
no, generaly if you want to solve a problem you need to know what you're doing first
Dambek
no, generaly if you want to solve a problem you need to know what you're doing first
A, yes, I try check, and I get just error <ul class="errorlist nonfield"><li>(Hidden TOTAL_FORMS field) Required field.</li><li>(Hidden INITIAL_FORMS field), so I can't save, but in the default form I don't have this fields
inchidi
are you sure thats the output of print( modelformset_factory(model=Under_Theme,fields=['name'], form = Create_Under_Theme_Form, extra = 1) )?
Muhammed
Can anyone share a vedio link that Connect Flutter and django