Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. #13

Open
rallep71 opened this issue Dec 30, 2019 · 2 comments

Comments

@rallep71
Copy link

Ok, is Debug mod True,

i became this
debugtrue
go to admin
http://0.0.0.0:8000/admin
came this
debugadmin

is debug in settings False
came this
debugfalse
so far so good
and admin page this
debugadminfalse

there are then presentation problems

@2stacks
Copy link
Owner

2stacks commented Dec 30, 2019

This repository is only for the Freeradius container that integrates with the django application.

I prefer to address any issues with the django app here - https://github.com/openwisp/django-freeradius. In the mean time, can you tell me what you did to disable debug in django?

@rallep71
Copy link
Author

rallep71 commented Dec 30, 2019

I did debugmode in settings.py (django) set on False.

freeradius-django/django-freeradius/tests

import os
import sys

import environ

BASE_DIR = os.path.dirname(os.path.abspath(file))
TESTING = sys.argv[1] == 'test'

root = environ.Path(file) - 2
env = environ.Env(DEBUG=(bool, False))
environ.Env.read_env()

DEBUG = False

ALLOWED_HOSTS = []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants