Skip to content

Tweak Django tutorial to remove form approach #21451

Open
@luabud

Description

@luabud

This was suggested by @dawnwages on microsoft/vscode-docs#6410

Suggestion: In order to include admin.py and createsuperuser I would remove the form.py approach which isn't gone into detail much, and instead:

  • create superuser
  • check admin
  • go to terminal from hello.models import LogMessage
  • check all messages all_messages = LogMessage.objects.all() and perhaps test methods on query string like .all(), .last(), .create() eg. m = LogMessage.create(field1='result', field2='result') m.save() then check admin again.
  • .filter() and view on your template.
  • bonus points for if we can show off some type of UI in the template to inspect those variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions