Questions tagged [django-forms]

Specific questions related to forms with the Django web framework

0
votes
0answers
6 views

Insert data from html to database through the model in django.2.0.6

I am learning the Django framework and have no idea how to move forwardHere is the situation I have Modelfrom django.utils.text import slugifyimport osfrom uuid import uuid4import datetimefrom ...
0
votes
1answer
19 views

Django models / View / admin [on hold]

How to make a that can view calculate data form multiple models, them make the data appear in the any django-admin models page?I have multiple models and one gets its data from them using models....
0
votes
1answer
9 views

Refer to current model when submitting forms django

views.pyform=StudentTaskForm(request.POST or None, request.FILES or None)if form.is_valid():form.instance.user=User.objects.get(id=request.user.id)obj=form.save(commit=False)...
0
votes
0answers
14 views

'__module__' is Missing

I have an inLineForm that I'm now adding a new form to called ProductDetails. When I've added the form I ge the error 'module' is missing. I'm not sure what is the issue. What I'm trying to do is ...
0
votes
1answer
13 views

How to overwrite instance/form values in clean method of Django 2.0?

How to overwrite instance/form values in a clean method of Django 2.0?class LocationForm(forms.ModelForm):def clean(self):# do some workif check_condition:raise ValidationError...
0
votes
1answer
18 views

Understanding Django and Django FormView

I am trying to create a Django web app that accepts text in a form/textbox, processes it and redirects to a webpage showing the processed text . I have written a half-functioning app and find de-...
0
votes
0answers
33 views

Recieve GET when submitting form

I can't see why I'm getting request.method==GET when submitting a form.I have tried different approaches with setting form action to other pages and views. But still only GET from the form. I see ...
0
votes
1answer
19 views

django form not saving updated value

I have the following form save process in my view:if request.method=="POST":form=PersonDetailForm(request.POST, request.FILES, instance=customer)if form.is_valid():...
0
votes
1answer
17 views

Develop a standalone desktop application using Python

I am new to standalone application development in Python.I would like to develop a Standalone Desktop Application using Python, which pops up a window (having various fields and buttons ,etc- like a ...
-1
votes
2answers
36 views

Method Not Allowed (POST): /contact/sent/

I am getting this method not allowed(post), like I can't post my forms.what could I be doing wrong.I am new to django. Could my url.py be wrong or my form-id is incorrect that doesn't enable the ...
0
votes
0answers
9 views

django modelform hook into post model validation

I had written a modelform clean() method which I wanted to run after the field had fully validated... this includes validators in the model field eg.account_number=models.CharField(...
0
votes
1answer
14 views

Django - Altering a Form field into a choices field and populating dynamically

In my models I have a char field as per the below:alerting_tier=models.CharField(max_length=200, blank=True, null=True)However in my form I'm pulling external data that I would like to use a ...
0
votes
1answer
20 views

Solution To create or update static pages in Django

How can I create interface or solution to the website owner to be able to create or update static pages in Django without open source code, for example, a website owner needs to update text in aboutus ...
-1
votes
0answers
23 views

AttributeError - 'NoneType' object has no attribute 'username' - django

I am using django-excel to upload the data - filefieldThe error is AttributeError - 'NoneType' object has no attribute 'username' and the username field in blankModel - class samples(models....
0
votes
1answer
26 views

store several images in the file system and all the references in the database

I use ImageField fields in my form and model to upload images, but I need to be multiple images and that just store one image and one reference in de database, this is my code:#models.pyclass ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,