Skip to content

Conversation

@pmac
Copy link

@pmac pmac commented Nov 21, 2025

Path objects have no child() method in the pathlib module of the standard library. The method to use is joinpath(), or the division operator which also joins paths. So it could also be:

    DATABASES = {
        'default': config(
            'DATABASE_URL',
            default='sqlite:///' + (BASE_DIR / 'db.sqlite3'),
            cast=db_url
        )
    }

But that's harder to parse for users unfamiliar with the pathlib module IMO.

Path objects have no `child()` method in the pathlib module of the standard library. The method to use is `joinpath()`, or the division operator which also joins paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant