Re: Daphne with absolute path to ASGI file

2019-10-22 Thread wd
hi, I checked the source code for Daphne, it uses import_by_path to import application def import_by_path(path): > """ > Given a dotted/colon path, like project.module:ClassName.callable, > returns the object at the end of the path. > """ > module_path, object_path = path.spli

Re: Daphne with absolute path to ASGI file

2019-10-22 Thread BR
This is Windows by the way On Tuesday, October 22, 2019 at 3:56:47 PM UTC-4, BR wrote: > > I've been using Daphne for months without issue, and have reorganized my > project structure to make things a bit easier. However, it appears that > Daphne needs to be run from the folder containing the Dj

Daphne with absolute path to ASGI file

2019-10-22 Thread BR
I've been using Daphne for months without issue, and have reorganized my project structure to make things a bit easier. However, it appears that Daphne needs to be run from the folder containing the Django project module like so: daphne project.asgi:application How can I specify the full path