Visit the Community Forum to learn more and ask any questions you have!

ROOT_URLCONF Not Found

Back to Thread List

I am using two settings for my project one for dev and the other for prod, but it can't find the root_urlconf.

by Duloft on Jan. 8, 2025, 3:35 p.m.

Replies

  • Here is the error message:

    Traceback (most recent call last):
    File "/usr/local/circumeo/venv/lib/python3.10/site-packages/gunicorn/workers/sync.py", line 134, in handle
    self.handle_request(listener, req, client, addr)
    File "/usr/local/circumeo/venv/lib/python3.10/site-packages/gunicorn/workers/sync.py", line 177, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
    File "/usr/local/circumeo/venv/lib/python3.10/site-packages/django/core/handlers/wsgi.py", line 124, in __call__
    response = self.get_response(request)
    File "/usr/local/circumeo/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 139, in get_response
    set_urlconf(settings.ROOT_URLCONF)
    File "/usr/local/circumeo/venv/lib/python3.10/site-packages/django/conf/__init__.py", line 83, in __getattr__
    val = getattr(_wrapped, name)
    AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'
    - - [08/Jan/2025:15:24:05 +0000] "GET /favicon.ico HTTP/1.0" 500 0 "-" "-"

    by Duloft on Jan. 8, 2025, 3:37 p.m.
  • Sorry that you're running into trouble. Is the ROOT_URLCONF in a base settings module that is imported into the others?

    by zach on Jan. 20, 2025, 12:35 p.m.
Reply to this thread