Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USER STORY: Installing Django-crispy-forms #9

Closed
9 tasks done
chris-townsend opened this issue Nov 8, 2022 · 0 comments
Closed
9 tasks done

USER STORY: Installing Django-crispy-forms #9

chris-townsend opened this issue Nov 8, 2022 · 0 comments
Assignees
Labels
1 User Story Estimate is 1 story point development Development Process must-have A must-have feature

Comments

@chris-townsend
Copy link
Owner

chris-townsend commented Nov 8, 2022

User Story:

As a developer, I should install the necessary Django components so that I can display a comments section that is more appealing to the user

Acceptance Criteria:

  • Forms should have the crispy tag present.

Related User Stories:

#6 Django Setup - As a developer, I can set up Django and supporting libraries so that I can start developing the site

Tasks:

  • Install pip3 install django-crispy-forms
  • Update requirements.txt - pip3 freeze --local > requirements.txt
  • Update INSTALLED_APPS in settings.py
    • Add crispy_forms
  • Add CRISPY_TEMPLATE_PACK = 'bootstrap4' below INSTALLED_APPS
  • Add a new folder forms.py
    • Import relevant data from .models import Comment from django import form
  • In views.py file import from .forms import CommentForm
  • Render as a view
  • Add the form to the HTML file
    • Add security to all forms {% csrf_token %} (cross site request forgery)
  • Add post data to views.py

@chris-townsend chris-townsend added must-have A must-have feature 1 User Story Estimate is 1 story point development Development Process labels Nov 8, 2022
@chris-townsend chris-townsend self-assigned this Nov 8, 2022
@chris-townsend chris-townsend moved this from Todo to In Progress in Kitchen Tales Kanban board Nov 15, 2022
Repository owner moved this from In Progress to Done in Kitchen Tales Kanban board Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 User Story Estimate is 1 story point development Development Process must-have A must-have feature
Projects
Development

No branches or pull requests

1 participant