I'm trying to run Django 1.7 with Python 3.3 but I'm getting a variety of errors when I visit the site. I followed this page https://www.pythonanywhere.com/wiki/VirtualEnvForNewerDjango to get a virtualenv working.
- I created a new web app that uses Python 3.3
source virtualenvwrapper.sh
mkvirtualenv --python=python3.3 myenv
pip install django==1.7
django-admin.py startproject website
.This is my WSGI file.
activate_this = '/home/TreeTree/.virtualenvs/myenv/bin/activate_this.py'
with open(activate_this) as f:
code = compile(f.read(), activate_this, 'exec')
exec(code, dict(__file__=activate_this))
import os
import sys
path = '/home/TreeTree/website'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'website.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
I get errors like:
django.core.exceptions.AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time.
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
AttributeError: 'Settings' object has no attribute 'r'
AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module'
django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
Not sure what to make of this since this is a completely fresh site. I haven't touched any code in the project. Feel free to dig into my files/error logs.