These are chat archives for django/django
I have started a django project, all url are working except few ones, I got the following error
'many' is an invalid keyword argument for this function
What is it stand for, I don't use any <many> keywords in my models .
class UexEmailViewSet(viewsets.ModelViewSet): """ API endpoint that allows product to be viewed or edited. """ queryset = UexEmail.objects.all() serializer_class = UexEmail
class UexEmail(models.Model): email_template = models.TextField(null = False) email_code = models.CharField(null = False, max_length = 255) email_subject = models.CharField(null = False, max_length = 255) email_configuration = JSONField(null = True) email_created_date = models.DateTimeField(default = timezone.now) email_updated_date = models.DateTimeField(auto_now_add = True, null = True) class Meta: app_label = 'baymax'
class EmailSerializer(serializers.ModelSerializer): class Meta: model = Email fields = '__all__'
class UexEmailSerializer(serializers.ModelSerializer): class Meta: model = UexEmail fields = '__all__'
Hello all, i am prinx .
I asked few weeks back for suggestions on how to learn django, and this beautiful community came up with lovely suggestions, one of which was i should follow the official tutorial from 1 to 7, which i have done...
Please all i will be glad if you can point a direction on how to improve my skills... any suggestions will be appreciated...
Thanks all in anticipation....
have a problem with django-rules.
someone has an idea?
File "/tmp/pip-build-xtniax7g/django-rules/setup.py", line 6, in <module>
NameError: name 'reload' is not defined
tried to install over pip:
sudo pip install django-rules
tried it also with --no-cache-dir and --isolated.