Sadiq
Yeah u can run ur command and start server back on
ᐧ•ΆΓí
What you want to write?
python manage.py createsuperuser
Y
Thanks bro
You're welcome
old
https://dpaste.org/
old
https://dpaste.org/0HUd6
old
How do I convert this into classes based view
Charly
How do I convert this into classes based view
What have you tried? Where are you stuck?
Charly
Anyone??
Use env vars
Naughty
https://linkode.org/#QVmUDS3TxyKkqZfWByo8v7
Naughty
this is my updation code in views.py but updation is not happenning
cj
this is my updation code in views.py but updation is not happenning
"updation" is not a word have you checked (via debugging) that the form is actually valid? are you showing the form errors in your template?
Software Engineer
Then call in exception handling
Qureshi
Hello best YouTube channel learning name please..🙁🥲
Maxim
Hello best YouTube channel learning name please..🙁🥲
10 Simple Tricks to Search YouTube Like a Pro
Raheem
Hello.... Can anyone please suggest a website to learn "how to connect django and flutter"
Adzmely
Hello.... Can anyone please suggest a website to learn "how to connect django and flutter"
u need to learn about developing API django backend from auth/token/services/etc this is a sample : https://medium.com/@clever.tech.memes/django-and-flutter-a-step-by-step-tutorial-for-a-boilerplate-application-f564335f2e8b
Andrew
Hello.... Can anyone please suggest a website to learn "how to connect django and flutter"
You just need a django REST API, and on flutter you just need to make requests and process the data
Andrew
Hello.... Can anyone please suggest a website to learn "how to connect django and flutter"
https://medium.com/@clever.tech.memes/django-and-flutter-a-step-by-step-tutorial-for-a-boilerplate-application-f564335f2e8b Step by step you can follow
Andrew
However for flutter you want to put your requests logic into a separate file. Not just put into the view as example. Follow MVC
Egor
Who dealt with FormHelper? I have a Layout, and I don't like that the captcha image fits into the input field. Who knows how to determine the distance between the label and the field?Who dealt with FormHelper? I have such a Layout, and I don't like that the captcha image fits into the input field. Who knows how to determine the distance between the label and the field?
Sougandh
Best django course online for free?
Sougandh
Anyone please reccomend
J
Best django course online for free?
Corey schaffer or dennis ivy....
Mahesh
Best django course online for free?
Geeky shows which is in hindi
Andrew
Best django course online for free?
Can watch the movie Django Unchained online that is good 🤠
Lolilop
is there any channel or group to find job?
cj
No form errors but updation is not happening
do you mean "update"? if there are no error messages, then you should debug your code step by step to see what's happening
Doragonsureiyā
is there any channel or group to find job?
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
cj
https://linkode.org/#QVmUDS3TxyKkqZfWByo8v7
I saw your code again, you're missing the instance=obj parameter in the form
Drag
Good evening everyone, I need some advice. I am writing a site in Django, the main function of which is to display the data on request of the user. The data is in json format, which is formed by a separate algorithm also on python. Many files are created and under files and in each of them are 10-15 json files. What is the best way to link the algorithm with its json files to my django? I can't understand the structure of working with json, much less the individual code.
kenton
Pls help me about this error,can not import name 'LOOKUP_SEP' from ' django.db.models.constant'
Vaibhav
Pls help me about this error,can not import name 'LOOKUP_SEP' from ' django.db.models.constant'
???? I'm thinking either you are very new or it's a circular important issue
Md. Redwan Hossain
Hello good peoples, I need some resources to learn django fundamentals very well. I am overwhelmed by YouTube videos and don't know which should I pick. Care to share good resources?
Jithulraj
H:\websiteprojectpython\website>mkvirtualenv website ERROR:root:failed to read config file C:\Users\heman\AppData\Local\pypa\virtualenv\virtualenv.ini because FileNotFoundError(2, 'No such file or directory') ERROR:root:AttributeError: 'IniConfig' object has no attribute 'has_virtualenv_section' The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified.
Smile
Hello Is it good practice to call a view from within another view? But i will have two responses think its not Ok
.
Hello Is it good practice to call a view from within another view? But i will have two responses think its not Ok
Yes, if it’s necessary and clean. I’d typically do that if I want to use functionalities from one app in another. But more often my needs are fulfilled with just importing models with defined properties for business logic that I need. And what do you mean by you have two responses? Where do you see them?
Mitsubishi
Hello Tell me how to get all the fields in Post and the parents only have a slug All fields for Post posts = Post.objects.select_related('sub_post__topics_category__category')\ .only('sub_post__topics_category__category__slug', 'sub_post__topics_category__slug', 'sub_post__slug',).filter(sub_post=self.object)
Mortaza
Charly
I interested
Documentation is the best
Md. Redwan Hossain
Check DennisIvy or Brad Traversy
Ok. I will look into it. And what about rest framework? I will not use templating, rather the frontend will be on angular/react.
Md. Redwan Hossain
Why do it the hard way? Just use the django templates
The project I will work has separate guys for frontend. My responsibility is to build the backend with api to feed the frontend
Andrew
That one is too outdated
Oh that’s the best one, maybe someone knows a new one? Btw was there a major change?
Md. Redwan Hossain
Oh that’s the best one, maybe someone knows a new one? Btw was there a major change?
AFAIK, that course is 4 years old. Django itself changed a lot in the time span
Andrew
AFAIK, that course is 4 years old. Django itself changed a lot in the time span
The one with Brad Traversy and Dennis Ivy? That old? Well it’s still the same format of request n response. Maybe just some syntax you need to update as you go along
.
AFAIK, that course is 4 years old. Django itself changed a lot in the time span
It’s kinda good that it’s slightly old like that. It would force you to practice reading the documentation as you go, which is an extremely crucial part in learning Django fundamentals very well.
Md. Redwan Hossain
It’s kinda good that it’s slightly old like that. It would force you to practice reading the documentation as you go, which is an extremely crucial part in learning Django fundamentals very well.
Yeah I know documentation is a great source to learn. But following very old content is also bad because if the code works because of backward compatibility, I can't even know I'm writing legacy code.
Krunal
I am trying to document api by using drf-yasg. I have used class based APIView. I have use decorator for every post, patch & put method is their any way to declare some class in settings and it will apply in all views?
Александр
Hi! Can I get the count of new records updated and added by doing bulk_create?
Rahat
Anyone give me idea if is video running after that complete video show user 1 point give no. Of user
𝚼𝖆𝖌𝖔 ꥢ
Hello best YouTube channel learning name please..🙁🥲
web: W3school com , geekforgeeks com , coursera com + codingbat com
Cutiepaiangelanu
TypeError at /newsadd expected str, bytes or os.PathLike object, not tuple
Cutiepaiangelanu
image = request.FILES['myfiles'] fs = FileSystemStorage() filename = (fs.save(image.name, str(image))) url = fs.url(filename)
abhishek
Hi everyone can anyone help me how to make an auto increment for two fields in django?
Adzmely
Hi everyone can anyone help me how to make an auto increment for two fields in django?
create a model field with field type AutoField - that actually an IntegerField automatically increments
Даниил
Yes that for single field I need to be increase for two fields
May be you should use integerfield and increase it in pre_save signal
Даниил
abhishek
Ok I will go through it