-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
NameError: name 'BASE_DIR' is not defined #1649
Comments
Which Django version are you using? The |
Added my settings.py file, I am using version 3.0.3 do you know what would need to be changed with the BASE_DIR settings? Thanks, |
That doesn't make sense because it's defined at the top of the file. It feels like the file on pythonanywhere.org might be different than what you have locally. I'd check if there's any difference. |
Has anyone figured this out yet? I am having the same issue.
|
The tutorial currently assumes Django 2.2.x and that is also what it tells you to install in the "Django installation" chapter. For other Django versions, the instructions in the tutorial might not work. Help in updating the instructions for a newer Django version would be appreciated. Though, until the tutorial is available for a newer Django version, please use Django 2.2.x for following the tutorial. According to the Django documentation, Django 2.2 has extended support until April 2022, so although there are higher versions available, it's not outdated, yet. I therefore propose to close this issue. |
Hi! |
Please verify BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) Also verify that the |
i have the same problem ... |
To solve it, the WSGI file should be updated |
Is this issue still valid after upgrading the Django version to 3.x in the tutorial? |
Issue description
Can't load page on pythonanywhere always get the same error message
Language
Django
Operating system
Windows
hpylori.pythonanywhere.com.error.log
The text was updated successfully, but these errors were encountered: