Pulkit
https://django-simple-captcha.readthedocs.io/en/latest/usage.html
Mirco
ya BTW I got the solution
nice, it looks to support Django 2.2+ so also Django 3
Pulkit
yup
Ashok
Any examples django+chart.js+ MySQL
Alex
Any examples django+chart.js+ MySQL
Do you need an example for EVERY existing js lib with django? chart.js has some really good documentation with examples https://www.chartjs.org/docs/latest/charts/line.html
Alex
How to integrate django with it is up to you - either pass your data to a template, or do it by rest api.
Anonymous
Anyone have django e-commerce source code with Paytm payment gateway
Harish
Please help on this. https://dpaste.org/U5HE#
Somebody please help on this.. 🆘
Doragonsureiyā
Anyone have django e-commerce source code with Paytm payment gateway
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
Vitaliy
Hi, how can I create 800000 records in 3 hours via django + python + posgresql?
S.Ponmalar
Hi, Anyone have good dhango ebook for reference.?
Vitaliy
bulk_create will not accept 800000 records or receive them in chunks but will take a long time to process + processing itself takes some time, which can put back
Vitaliy
there is a feed that is processed and sent to the back, the processing itself takes time + sending this amount of data also takes time
Vitaliy
django cursor.copy_from what types of files can i send? txt, csv, etc.?
serg
Hello guys! My case insensitive search doesn't work with postgres when I use icontains, anyone had the same error?
♈
Hi all. I have such a problem. There are two views detail and export. And I have 2 forms in one template that handles them. In the second form, I marked the url specified in the actions {% url 'export' %} in such a way, but it seems that it sends the post request to the previous view named detail. How can I fix it?
Class currency(models.Model): currency = model. decimalfield("whatever") Class Moneytransfer (Models.model): exchange = models.forigenkey(currency, on_delete, null=true) money = models.forigenkey(currency, on_delete, null=true) I want currency value delete, after forigenkey safe save for record show purpose or currency value as well as show
Артем
hello everyone i didnt find the answer to my question: How can we make action django admin in order to choose some lines in table of model and to upload one file for filefield without open new page?
♈
Class currency(models.Model): currency = model. decimalfield("whatever") Class Moneytransfer (Models.model): exchange = models.forigenkey(currency, on_delete, null=true) money = models.forigenkey(currency, on_delete, null=true) I want currency value delete, after forigenkey safe save for record show purpose or currency value as well as show
Sopan
https://deepshealthy.in/ Based on Django + Vuejs
Sopan
Yes
Alex
Yes
well, it's just a template with a js slider
Sopan
Yes...
Sopan
And navigation part
Alex
well, good job
Sopan
I can provide enquiry form..with backend api to send email etc
Sopan
And testimonials part too
Leo
How to make m2m with additional fields in template ?
Alex
How to make m2m with additional fields in template ?
> How to make m2m with additional fields Create a custom through model https://docs.djangoproject.com/en/3.2/ref/models/fields/#django.db.models.ManyToManyField.through > in template huh?
ꪉꫝꪖꪹᦋꪖꪜ
Can i change sequence of fields in default Django admin panel? Like in my database is having fields as password, username and i want to show first username then password.
Alex
Can i change sequence of fields in default Django admin panel? Like in my database is having fields as password, username and i want to show first username then password.
https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fields https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets
ꪉꫝꪖꪹᦋꪖꪜ
Thank you very much!!
ꪉꫝꪖꪹᦋꪖꪜ
How to store password in hashed format from django admin to database?
Nikhil
What should i use genric or viewset???
cj
What should i use genric or viewset???
depends on your use case ¯\_(ツ)_/¯
Артем
help please somebody, how to make field in change_list in readonly?(not all fields)
Артем
yep
Alex
What should i use genric or viewset???
the least that satisfies your needs.
Артем
help please somebody, how to make field in change_list in readonly?(not all fields)
ꪉꫝꪖꪹᦋꪖꪜ
How to store password in hashed format from django admin to database?
cj
How to store password in hashed format from django admin to database?
that's done automatically under the hood by Django...
cj
unless you're overriding things ¯\_(ツ)_/¯
♈
How to save forigenkey value after delete in model?
Harshit
If i learn django then in how many days i can learn spring framework
♈
How to save forigenkey value after delete in model?
Model field value delete after, forigenkey key value safe show
ꪉꫝꪖꪹᦋꪖꪜ
that's done automatically under the hood by Django...
But i hadn't override it, so how make it possible?
♈
Arpit Mali: I have issues in django, after model field data delete, on all references related data remove But i want reference related forigenkey value as well as show
cj
But i hadn't override it, so how make it possible?
as I said, it's done automatically by Django, unless you broke something
Coders Needed Eth
If he is using custom user model then new user registration won't hash the password on the admin page
Coders Needed Eth
You need to handle those methods in the admin.py
cj
If he is using custom user model then new user registration won't hash the password on the admin page
I use custom user models, and the passwords are hashed using the admin page or any other custom template ¯\_(ツ)_/¯
cj
unless.... you mean a totally different isolated model for users (not extending/inheriting from the Django's auth one) —which shouldn't be done that way—
Coders Needed Eth
I use custom user models, and the passwords are hashed using the admin page or any other custom template ¯\_(ツ)_/¯
so when you try to register a new user that way does it prompt you with the password input form then the profile or does it just show you an empty field to set the password along with everything else
cj
Django ships a very strong auth app that should be used, and extend it if you want to add custom things on it... you shouldn't create your very own isolated models for auth things, unless you want to write everything from scratch, in that case don't use Django ¯\_(ツ)_/¯
cj
so when you try to register a new user that way does it prompt you with the password input form then the profile or does it just show you an empty field to set the password along with everything else
yes, it uses the forms Django ships for that, and I just extend it to add some other custom fields for the model ¯\_(ツ)_/¯
cj
Yea that's true that's all i use too
so you shouldn't have had issues while registering users in admin page, neither manually handling password hashing ¯\_(ツ)_/¯
Coders Needed Eth
but when i register the admin i have to add some more code like add_form attribute and define some methods for user change and creation to work with the admin interface
cj
¯\_(ツ)_/¯
Coders Needed Eth
it's not an issue with Django auth it's when i register through Django admin
cj
it's not an issue with Django auth it's when i register through Django admin
if you extend admin_forms.UserCreationForm you shouldn't manually handle password hashing nor other things that Django does automatically for you
Coders Needed Eth
if you extend admin_forms.UserCreationForm you shouldn't manually handle password hashing nor other things that Django does automatically for you
Nah i didn't add custom hashing or what not i just extended that because the password fields were not showing up
Coders Needed Eth
i had that issue multiple times and that's the only solution i could find
cj
Nah i didn't add custom hashing or what not i just extended that because the password fields were not showing up
weird then ¯\_(ツ)_/¯ I always worked with custom user models, and never had issues with the admin page side
cj
all fields are shown and sanitized correctly without overriding anything
cj
Hmm that is weird
yeah weird... you should check your code a little better
Coders Needed Eth
maybe i was on an old version ?
cj
maybe i was on an old version ?
maybe ¯\_(ツ)_/¯ how old? 0.9? because since I started using Django (it was 1.3) never had issues with that