Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You don't seem to fully understand what a Debian based OS is. These are at least 3 OS families - Hurd, kFreeBSD and GNU/Linux.
If we talk about GNU / Linux Debian (which you mean, most likely) - then it is written in everything. The core is in rather specific C, userspace, mainly in C / C ++, python, perl. Well, a bunch of spaghetti in the form of shell scripts to make it all work together (well, at least until they switched to systemd).
If we talk about "how to build your own distribution kit based on GNU / Linux Debian" (this is also allowed, Ubuntu appeared that way), then there is no need for special knowledge in programming - just sit there, put the bags into the config, and write it to USB /CD.
Literature - The Linux Kernel Module Programming Guide (if we are talking about the kernel), any book about python / perl / C, if we talk about userspace. However, do not forget about "mostly" - they write something on everything.
No one has written anything on ACM for a long time, except for C-compilers. Python compilers and interpreters are already written in C.
Probably the universal answer will be machine, so to speak, hardcore on asme.
For some reason I was reminded of formsets .
And one more detail: here is this code (regardless of formsets)
@register.assignment_tag(takes_context=True)
def add_mark(context):
mark = Mark.objects.get(pupil=context['pupil'],
lesson=context['lesson'])
form = MarkForm(initial={'value': mark.value},
prefix=mark.id)
return form
@register.assignment_tag(takes_context=True)
def add_mark(context):
request = context['request']
mark = Mark.objects.get(pupil=context['pupil'],
lesson=context['lesson'])
form = MarkForm(request.POST or None, prefix=mark.id,
instance=mark)
return form
It is not clear why the form is put in the assignment_tag
Usually this code is located in the view and when post is saved form.save ()
In any case, there must be a view where the post request is sent from this form.
And there you need to initialize this form, taking into account the data from request.POST, and save form.save()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question