Skip to content
Advertisement

Tag: django-views

Saving related model objects in single view

I am beginner and I am working on Django project – risk assessment application. I have a trouble to achieve saving on related objects for my application risk record. I am using MultiModelForm to achieve the following. I am successfully creating Whatif instance and connecting it with GuideWordi instance on save, however, I am not able to connect my RiskRecordi

No module named ‘fusioncharts’

I am trying to plot fusion chart in django after adding fusioncharts,I am getting an error. Answer Normally when you get such an error it is because you forgot to install the module, did a bit of research and came to the conclusion that you can install using pip: open the command prompt use the command pip install twFusionCharts.If this

Django upload multiple images per post

I want to let the user upload multiple images per post. Similarly to an e-commerce platform with multiple images per product. But till now the images are not sent to the database. That’s my code so far: models.py: forms.py: views.py: project_form.html: settings.py: project urls.py app urls.py Answer Issue: You have made ProjectForm which relates to Project model, but the image

Advertisement