Skip to content
Advertisement

Tag: django-views

Specifying both ‘fields’ and ‘form_class’ is not permitted

I have the following form, which I want render it with Django crispy forms. This is my views.py This is my urls.py project main file : This is my medical_encounter_information/urls.py In my forms.py file I have: The template medical_encounter_information/templates/medical_encounter_information/rehabilitationsession_form.html is: When I type in my browser the url http://localhost:8000/sesiones-de-rehabilitacion/nuevo/ I get the following: But, When I type in my browser

“from . import views”: Unresolved import

I’m following the Django 1.8 tutorial. In my project mysite, there is a source folder polls. In the folder there is views.py module where a index function is defined. And there is a urls.py file: This is what the tutorial suggests, and Django works well with the codes. However Eclipse (PyDev) complains of unresolved imports for views. If I remove

Advertisement