-
Django errors with django-import-export libraries. I want to import data from excel to db via django admin. I use for …
- 197 views
- 3 answers
- 2 votes
-
Currently, I have upgraded version of Django 2.0.6 to 3.0 and suddenly after calling python manage.py shell command got this …
- 159 views
- 17 answers
- 15 votes
-
For example: Lorem Ipsum <a href="%(ipsum_url)s"><u>Something something</u></a>. Would be an item in django-rosetta. The translator could do something like: Lorem …
- 36 views
- 0 answers
- 0 votes
-
For example I have such query as: Chat.objects.filter(users__contains=[user.pk]).filter(users__contained_by=mentors.values_list(‘pk’, flat=True)) This turns to such query: SELECT "chat_chat"."created_at", "chat_chat"."updated_at", "chat_chat"."id", "chat_chat"."users" FROM …
- 42 views
- 0 answers
- 0 votes
-
I am new in Python flask. I want to sum all array elements using flask python. I have the Following …
- 34 views
- 1 answers
- 0 votes
-
I faced this problem while appending a CharField item to ListField: the result list is split into individual characters instead …
- 36 views
- 1 answers
- 0 votes
-
Given a json file with the following data: [ { "activityId": "Task_5.1.1", "activityInstanceId": "Task_5.1.1:8c42f564-cdbe-11ea-8be8-00155d891509", "errorMessage": null, "errorDetails": null, "executionId": "8c42ce53-cdbe-11ea-8be8-00155d891509", …
- 23 views
- 0 answers
- 0 votes
-
I want a field in my Django model to store array data. For instance consider a model that stores Student …
- 38 views
- 1 answers
- 0 votes
-
forms.py class MyForm(forms.ModelForm): AVAILABLE_OPTIONS = [ (‘a’, ‘a’), (‘b’, ‘b’), (‘c’, ‘c’), ] options = forms.MultipleChoiceField( …… widget=forms.CheckboxSelectMultiple(), choices=AVAILABLE_OPTIONS, ) …
- 51 views
- 1 answers
- 0 votes
-
class City(models.Model): pass class Person(models.Model): name = models.CharField(max_length=30) hometown = models.ForeignKey( City, on_delete=models.SET_NULL, blank=True, null=True) class Book(models.Model): author = models.ForeignKey(Person, …
- 35 views
- 0 answers
- 0 votes