Muflone
fix the view.py pastebin url
Anonymous
Anonymous
done
Muflone
move the method="post" out of the url tag
Muflone
it's not part of the action url
Anonymous
ok
Muflone
and add quotes around {% %}
Anonymous
ok
Anonymous
it worked
Anonymous
:)
Anonymous
Tysm
Muflone
great
Anonymous
:)
AM
Can anyone help me how to use auth0 for login
Shaked
I used djoser
Shaked
If you want
Isaías
Does anyone here use socketio in django?
AM
I used djoser
Can I get some sample code
AM
Can I get some sample code
Requirements is auth0
Aneesh
ImportError : could not import 'hello.schema.schema' for graphite settings 'schema' . importError: DLL load failed
Aneesh
Sory graphene
Aneesh
Anyone know about this error
Code
check your 'import' path (relative?) and ensure the egg is installed
Code
also, how many python versions do you have installed? make sure you're pipping to the right one Aneesh
Aneesh
Ok .thanks
Anonymous
is there a way to integrate discourse and django?
Shaked
Can I get some sample code
Send me a private message and in the evening i will shere with you git repo
Bulat
Guys, does someone know how can i customize django-oscar's dashboard? I've customized 'Category' model and also i changed category-dashboard's form as it said in documentation but there is no changes on dashboard
Alex
Hey Guys! How could I fill up a hidden input programatically on django forms or views? I have read about Initial parameter, but I don't want a fixed value I will generate a new value based on another field that was suposed filled. Thank you
Alex
an alternative to this is to not have hidden inputs but fill the field in the backend while saving
Cool, do you know how can access that particular filed and change it?
Anonymous
Alex
it depends on what you're trying to do
I have this func inside of my views.py/class RegisterFormView def post(self, request): form = self.form_class(request.POST) import pdb pdb.set_trace() if form.is_valid():
Alex
which is required
Anonymous
pass commit=False in form.save() call. instead of savings it to the database, it'll return a object of the model. you can modify any field of that object. for e.g.: obj = form.save(commit=False) obj.your_attr = your_custom_value obj.save()
Alex
pass commit=False in form.save() call. instead of savings it to the database, it'll return a object of the model. you can modify any field of that object. for e.g.: obj = form.save(commit=False) obj.your_attr = your_custom_value obj.save()
this form.save() supose to be inside of form.is_valid()? If yes, I can't access, I am getting error that I have a field that must be filled and this filled I want to fill dinamically 🙁
Anonymous
the field you want to fill dynamically should not be compulsory
you can guarantee that it'll always be filled because you're filling it with your code before saving it
Alex
the field you want to fill dynamically should not be compulsory
hum, thats bad! actually I am using django-tenant-schemas and I am creating a form for creating tenants the domain_url is a field compulsory, but I want to fill it dinamically and not by user.
Anonymous
hum, thats bad! actually I am using django-tenant-schemas and I am creating a form for creating tenants the domain_url is a field compulsory, but I want to fill it dinamically and not by user.
the reason you make a field compulsary is that you can't trust the user. You need that field to have some value. If you're filling that field in your code, you don't need that validation
Alex
the reason you make a field compulsary is that you can't trust the user. You need that field to have some value. If you're filling that field in your code, you don't need that validation
not sure if I was very clear, But bascially I just have in my form a fied for username and email. In my model I have a third field called domain_url and this one is required, but I want to fill this field like this: username + 'mysite.com' Did you get that?
Alex
I will have to change
Anonymous
Hey Guys! How could I fill up a hidden input programatically on django forms or views? I have read about Initial parameter, but I don't want a fixed value I will generate a new value based on another field that was suposed filled. Thank you
add : onblur="function(this.value)" to the value which will be filled by the user.. and in the js function add var name_element = document.getElementById('txt_name');
Alex
Thx
Anonymous
I will check it out, I'm newbie to JS
me too.. i had a need to validate a field in the form when the user was entering it.. that's how i found this ! 😃😃
Anonymous
not sure if I was very clear, But bascially I just have in my form a fied for username and email. In my model I have a third field called domain_url and this one is required, but I want to fill this field like this: username + 'mysite.com' Did you get that?
Please note that there is a risk if you do it with javascript. A user can easily change the value of the hidden field. So, if a user has the username: 'user1', he can change the hidden field to: 'user2+mysite.com' instead of 'user1+mysite.com'. If this domain_url field is something critical, I'll not recommend using js to fill it's value. A user can put any random value in it and it'll be saved in your db.
Anonymous
Hi I have a problem in à model, can show you the model ?
Anonymous
https://drive.google.com/drive/folders/1a7TmYWWBRubT2qzALJR24x0J5WKDnAN6?usp=sharing Please, i want to get value of Univ from Employee of the current User (connected in admin) in the admin form (field univ_user) 
Anonymous
Hello everyone, I am new to Django, can someone share any good resources for learning the same. Regards
Rajesh
It's pretty good
Rajesh
Don't go here n there
😎
Hello everyone, I am new to Django, can someone share any good resources for learning the same. Regards
Look for Django for beginners from William S Vincent https://djangoforbeginners.com/
Anonymous
How to register subscriber data on admin panel?
L
Hey everyone! Do you guys know how can I keep my checkboxes checked once the user has already checked them? And if the answer involver using a membership joint table, how would you kink it to the checkbox? Thanks
Sencer
Hello, is it risky to using transacion.atomic decorator in django signals?
Cheap
https://stackoverflow.com/questions/61344506/no-formatting-supported-by-textfield-in-django-admin-panel Anyone pls help
Rainur
Hi! I do internet-shop on django-oscar. I have problems with the customization of CategoryForm. Anyone can help me?
Naynesh
how to use manytomany field with any sample example please explain dear..
Anonymous
how to use manytomany field with any sample example please explain dear..
`class A(models.Model): ABC = models.manytomanyfield( ....)
Anonymous
Hi guys. I'm stuck in a problem, please help. In my app there are many users who posts their blogs so I want to send emails to the blog author whenever someone likes that blog. So how can I get the author details of blog to send email Please help
Cheap
I have Post model and have it registered in admin. It has description of TextField() but while adding new post from admin panel, description area does not support newline or <br> or any kind of formatting. I have no usage of forms and only way to add post is through admin panel.
Муродали
hello guys. I'm beginner in django. now i need your helps
Муродали
i have a carouser and i want to show last 5 item of carousel