Anonymous
class Person(models.Model): name = CharField(max_length=64) ... class Scheme(models.Model): name = CharField(max_lenght=64) members = ManyToManyField(Person, related_name="schemes") ... I have above models. A single person can be a part of many schemes. Now I want to incorporate referral mechanism, so I can track Person A referred to Person B for Scheme 1 How to add parent-children relationship in a M2M situation.
Vamshi
Change the import
Please say... Clearly... Iam new to django
Mirco
Please say... Clearly... Iam new to django
Show your code and I will tell you the error Use pastebin please
Vamshi
Its simple code
Vamshi
Iam creating class based view in view.py
Droll55
from django.views.generic import View If it doesn't work, you haven't django installed in the project
Vamshi
I am doing in atom Ide
Vamshi
View not view
Ha ha..ty...
Morteza
Najim patel
A server error occurred. Please contact the administrator. Any one plz solve error
Najim patel
In terminal show the msg:- Filter_func = parser.find_filter(filter_name) AttributeError : 'parser' object has no attribute 'find_filter'
DENNIS
Hii
Le
hi
on
Hi
on
How to install ssl certificate in Django app for free any can help me please
on
Or do it for me will pay for this task
Peaches
DM me if you need any help
Mahdi
Or do it for me will pay for this task
If you just want to run django runserver command with https You can install django_extension_pack And use runserver_plus
Smartjob
Hello, everyone
Smartjob
I am looking for django expert
Smartjob
who can work my django job?
Neo
Is there any security valnurabities happens if i use put, patch or delete methods
Shubham
who can work my django job?
I can, what is it about?
Smartjob
I can, what is it about?
great, please join looking4jobs and apply latest job.
Smartjob
it is django job
Neo
Is there any security valnurabities happens if i use put, patch or delete methods
Any help, some one suggested that if i use other than get and post VAPT test will fail is that true.
Amir
hi I want to send some random calculations in letters to the template form And when the user sees it, he writes the answer and posts it along with other things, and I can check if it was correct or not (easier way than recaptcha to detect that the user is not a robot) Now I don't know where to save that values to check the sending of the answer with it Anyone have an idea? Just like some sites that they send something like it: Twenty two plus four: {and you have to write 26}
Anonymous
*a single person can be a part of many schemes* it is one to many so why manytomany?
Person ABC, he can join scheme X, Y, Z Person QWE he can join scheme X, C, P
yasmina
What is difference between permission_classes and mixins?
Himanshi
How to use autocomplete and autofill in django templates
aman
How to use autocomplete and autofill in django templates
and how we can fill some fields of form using user model
Artem
Do I have correct venv location in my django project? https://pastenow.ru/edit/0ec466d844a37064800d984f98e7f640
Artem
if it is your project's root directory, yes.
It's root directory where project located. You mean that?
Artem
yes
cool, thanks
Zokhid
Hi developers, i hope all of you’re fine I am now creating API for Event Managament but i have a problem with users registration, how can i implement multiple user types with Django Rest Framework? If it is possible, could you show by just writing the code I tried but wasn't able to handle Thanks beforehand)
Arslan
Will they have the same fields?
Mo
def post(self, request, *args, **kwargs): data = request.data Starttime = data['Starttime'] I defined start time in model and serializer but when I want to get the field of start time (to get data from front end) there is keyerror of start time? What is the reason of this error?
Amir
I want to do that without recaptcha 🙂🤦‍♂
Peaches
guys who has DJANGO + VUE project
Peaches
And I want to see code how people write vue
Zokhid
And I want to see code how people write vue
probably, u can find such kinda projects on github
Zokhid
I also want to know the answer.
if u find the answer please lemme know?!
Anonymous
import json class FirmConfigReader: def init(self, firm): # JSON file firm_config = firm.config data = firm_config self.data = data def get_base_url(self,request): return self.data['base_url']
Anonymous
In thia case I want check if bese_url key is exist in d config json file or not
Anonymous
if self.data['base_url'] is not None. This for check value is none or not ,but I want to check the key is none or not in the config file
Mirco
!job
Doragonsureiyā
Rule 🔟: Job-related offers are only allowed in the offtopic group. To not be considered spam, Job offers must include: • Skillset/techstack • Contact information • Brief job description • Pay figure • And can only be posted in @PythonOfftopic.
ann
How to set model date field to 0000-09-11 and keep picker for only month and date in admin panel
Shaikh
How to include model clss in forms.py any one please?
Shaikh
Class TaskForm(forms.modelForm): Class meta: Model = Task This is showing me error that name task is not defined
Shaikh
Help?
Himanshi
and how we can fill some fields of form using user model
1rst we click autocomplete list and then data. Fill data already store in db
Anonymous
Help?
Maybe task is not imported
Shaikh
Henil
Henil type this command
I already did this but it's not working
Riswandi
I want to contact the userid 1
Henil
I think it's right because when debug is True at that time it's probably working....but problem occurred when it's turned to False
Henil
I think you add a wrong static urls
I think it's right because when debug is True at that time it's probably working....but problem occurred when it's turned to False
Henil
I have used cyberpanel
Rohit
https://stackoverflow.com/questions/5836674/why-does-debug-false-setting-make-my-django-static-files-access-fail Please read this
Rohit
Last year i faced the same issue
Rohit
But i used white noise or add url pattern in urls.py file
Groot
Sometimes my some staticfiles cannot fetched (i mean it didn't show effects in template) anyone faced same?