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.
Mirco
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
.
Morteza
Morteza
Morteza
Morteza
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
Peaches
DM me if you need any help
Mahdi
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
Smartjob
it is django job
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
yasmina
What is difference between permission_classes and mixins?
Himanshi
How to use autocomplete and autofill in django templates
Artem
Do I have correct venv location in my django project? https://pastenow.ru/edit/0ec466d844a37064800d984f98e7f640
Anonymous
Anonymous
Artem
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?
Zokhid
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 🙂🤦♂
Zokhid
pythonista
Peaches
guys who has DJANGO + VUE project
Peaches
And I want to see code how people write vue
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?
Anonymous
Help?
Maybe task is not imported
Shaikh
Rohit
Rohit
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
Rohit
Henil
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?