python manage.py syncdb Error: No module named messages

1,153 views
Skip to first unread message

Robert Steckroth

unread,
Mar 17, 2012, 12:19:05 AM3/17/12
to Django users
Hey Gang, I have a Django project built on a Debian server at home using <a href=http://djangobb.org">DjangoBB</a>.
It is working on the Debain OS but I am having huge problems on the Centos server. This seams to be the farthest I can go with it. -->
#-->python manage.py syncdb
Error: No module named messages 
This probably is a dependency issue with the Cpanel and Mysql. Can any of you offer some advice or experience?



--
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

Shawn Milochik

unread,
Mar 17, 2012, 12:24:54 AM3/17/12
to django...@googlegroups.com
Check your PYTHONPATH. Perhaps it's not set right on the CentOS machine.

The Linux distro shouldn't make a difference, nor should the presence of
Cpanel or MySQL.

Robert Steckroth

unread,
Mar 17, 2012, 12:27:09 AM3/17/12
to Django users
Also can I assume, regarding the above question above, that "messages" is the last thing Django is processing since it is at the 
bottom of the list in installed apps? I.e. If I fix the messages error it might work?

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sitemaps',
    'django.contrib.admin',
    'django.contrib.admindocs',

    'home',
    'contact',
    'registration',
    'captcha_utils',
    'registration_app',
    'django_authopenid',
    'djangobb_forum',
    'haystack',
    'messages',
    # Uncomment the next line to enable the admin:
    # 'django.contrib.admin',
    # Uncomment the next line to enable admin documentation:
    # 'django.contrib.admindocs',
)

 
--
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

Robert Steckroth

unread,
Mar 17, 2012, 12:31:46 AM3/17/12
to Django users
Ya, it is probably a path issue. It is set as this by the way -->
 ['', '/usr/lib64/python2.4/site-packages/MySQL_python-1.2.3c1-py2.4-linux-x86_64.egg', '/usr/lib64/python24.zip', '/usr/lib64/python2.4', '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', '/usr/lib64/python2.4/lib-dynload', '/usr/lib64/python2.4/site-packages', '/usr/lib/python2.4/site-packages']

Shawn Milochik

unread,
Mar 17, 2012, 12:42:58 AM3/17/12
to django...@googlegroups.com
Not a PATH issue, but a PYTHONPATH issue.

Run "python manage.py shell" and try to import 'messages.'

I suspect it's not where you think it is, or its location is not on your
PYTHONPATH.


Reply all
Reply to author
Forward
0 new messages