kernc

Results 397 comments of kernc

> You seem to have a strong focus on border case and not the main case. You seem to have a strong conviction that _your case_ is the main case?...

If any such command line switch were added, it would be named more in line of `--single-toplevel`. But I don't understand why we'd want to pollute everyones's namespace when better-suited,...

It should work, but it seems to be failing while importing module "module", running into Django error: ``` Requested setting INSTALLED_APPS, but settings are not configured. You must either define...

> Last time I checked and it worked was about April last year Can you try, then, with `pip install -U pdoc3==0.8.1`, released [about that time](https://pypi.org/project/pdoc3/#history). I think (hope :crossed_fingers:),...

@sentouki So, what differs from running the command line: ```bash PYTHONPATH=../project_dir \ DJANGO_SETTINGS_MODULE=project_name.settings \ pdoc --html project_name app_name ``` is primarily: ```py # Setup Django import django; django.setup() ``` and...

> since you can't import django-related modules without initializing django first. I also tried adding > > ```python > # Setup Django > import django; django.setup() > ``` So why,...

Curiously, it works if I rename the file so it doesn't start with numbers: ```bash mv 20210409_pdoc.py test_hints.py ``` :thinking:

I'd say the closest to this in pdoc comes [`.. include::` reST directive](https://pdoc3.github.io/pdoc/doc/pdoc/#supported-rest-directives).

A continuation from https://github.com/pdoc3/pdoc/issues/99#issuecomment-750123577. Thanks!

Maybe this is the buggy line: https://github.com/pdoc3/pdoc/blob/aef1917a668ca9f3cd26373d1d69bcb5001108cc/pdoc/__init__.py#L699 introduced in https://github.com/pdoc3/pdoc/commit/9bdb076e267b33949fb6ffc906316e8651d5f474. Can you maybe investigate it?