Add pythonanywhere in allowed hosts

This commit is contained in:
Adil Mohak 2024-08-31 16:00:20 +03:00
parent 589f5fa7f5
commit ae979a2a89

View File

@ -27,7 +27,7 @@ SECRET_KEY = config(
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = config("DEBUG", default=True, cast=bool) DEBUG = config("DEBUG", default=True, cast=bool)
ALLOWED_HOSTS = ["127.0.0.1", "your-domain.com"] ALLOWED_HOSTS = ["127.0.0.1", "adilmohak1.pythonanywhere.com"]
# change the default user models to our custom model # change the default user models to our custom model
AUTH_USER_MODEL = "accounts.User" AUTH_USER_MODEL = "accounts.User"