#29983: Replace os.path with pathlib.Path in project template and docs -------------------------------------+------------------------------------- Reporter: | Owner: Curtis thewhisperinyourears | Maloney Type: | Status: assigned Cleanup/optimization | Component: Core (Other) | Version: 2.0 Severity: Normal | Resolution: Keywords: paths, settings | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Tim Graham):
* component: contrib.staticfiles => Core (Other) * needs_better_patch: 0 => 1 * type: Bug => Cleanup/optimization Comment: The patch doesn't work because `os.path.join(BASE_DIR, 'db.sqlite3')` returns a string while `BASE_DIR / 'db.sqlite3'` returns a `PosixPath`. The documentation would have to use `str(BASE_DIR / 'db.sqlite3')` everywhere or Django would have to convert `PosixPath` to string. -- Ticket URL: <https://code.djangoproject.com/ticket/29983#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/078.35fb8ddc9b5238d75c61a541ff2d8e03%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.