stephenmcd/drum

about urlconf in settings.py

littleq0903 opened this issue · 1 comments

https://github.com/stephenmcd/drum/blob/master/settings.py#L10

ROOT_URLCONF = "%s.urls" % PROJECT_DIRNAME

this is not working in some situations (like on OpenShift), Drum moved settings.py, urls.py outside main for keeping apps separated, so basically, PROJECT_DIRNAME won't be in python path, but when I try it locally, it works.

but when I get it on OpenShift, it failed and keep reporting me

ImportError: No module named repo.urls

I suspect that the reason is OpenShift put wsgi in a strange way, e.g. project/wsgi/application, but not a single wsgi.py file

But I'm also curious how this work under Drum project structure, does anyone know that?

Thank you.

Not familiar with the OpenShift setup, but you'll need to modify your Python search path to include the project.