0

Suppose I have an django application which doesn't exist or is not included in INSTALLED_APPS in settings.py.

How to handle such an error? And at exactly what point in the flow is this error occurring?

I want to redirect the user to 404 page if such an error has occurred.

Jingo
  • 3,200
  • 22
  • 29
Tajinder
  • 197
  • 1
  • 3
  • 3
    If an app is missing or not included in `INSTALLED_APPS` that suggests a problem with the configuration of the overall project and returning a 404 error probably isn't appropriate. Can you explain in which cases an application might be missing? – Max Spencer May 12 '15 at 11:42
  • suppose i am having a certain set of apps which are optional, but in main url.py, reference to those app are included. – Tajinder May 12 '15 at 11:57
  • Are you pointing to the urls.py in your settings.py? – wobbily_col May 12 '15 at 12:20
  • yes, to the main url.py, in home directory of project and then passing the flow to individual App.urls – Tajinder May 12 '15 at 12:38

0 Answers0