Django compatibility

Open
#48 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
django, python
Domain
backend, testing

Research direction

Start by reviewing the linked pull request for the existing pure-pytest HMR work and its reload-after-file-change behavior. Then investigate what additional compatibility is required for pytest with Django, using the issue's pytest+Django scenario as the acceptance target. Done means the requested HMR behavior works in that combination.

Written by the indexing model from the issue text.

Description

Hey, just wondering whether you had in plans to make HMR compatible with django – I'm afraid I'm really not that good with metaprogramming to implement it myself 🥲

It's one of the blockers I'm facing in my HMR+pytest endeavor – apparently making pure pytest work is not enough(i did made it work in this MR https://github.com/heisen273/pyth-on-line-fork/pull/1 + added logics that reloads the file immediately after the filechange in oppose to letting the code run till the very end. this makes reloading more natural, especially if you're working in debugger - see explanation & preview in linked MR), since almost everyone uses it in combo, e.g. pytest+django, pytest+flask, etc.

Would really appreciate your insight here.
And thanks a lot for fantastic work you've done so far.

Dominant language
Python
Stars
60
Forks
7
Avg merge
1h 20m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from promplate/hmr

All issues in promplate/hmr

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.