Forums

Mezzanine (Django) project: cannot import name real_project_name

Hi,

I'm working on my first Mezzanine project on pythonanywhere. The site runs just fine, but when I try to run manage.py commands on bash console (like python manage.py poll_twitter or python manage.py shell), I get this error message:

   File "manage.py" ,line 7, in <module>
       from mezzanine.utils.conf import real_project_name
ImportError: cannot import name real_project_name

(I tried to schedule poll_twitter to run hourly, but it didn't work, so I tried running it manually in console and this happened.)

This does not happen when I run the site locally on my computer. Any ideas? Thank you in advance.

EDIT: Figured this out. Was not running the command in the correct virtualenv. My bad :) .

             / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄\    
<<<<<<:>~  <   Yay!          |   
             \_________/