Hello Django helpers,

So, I am using the django registration module, and I have it in it's
own project, when I go to send an activation e-mail, apparently the
settings are not configured properly to be found from other projects,
and it can't load mysite variable - so it throws an error.

>From the docs it says I need to this, i think:

django-admin.py syncdb --settings=huntgather.settings

then I get the following (maybe I didn't set this up correctly with a
start project in the first place):

Could not import settings 'huntgather.settings' (Is it on sys.path?
Does it have syntax errors?): No module named huntgather.settings

This link looks promising:

http://codespatter.com/2009/04/10/how-to-add-locations-to-python-path-for-reusable-django-apps/

Is this what I want to do is the following, I'm not sure, so I'll just
paste the example:

import os
import sys
PROJECT_ROOT = os.path.dirname(__file__)
sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps"))

I'm primarily a ui guy but really interested in understanding Django,
so thanks for helping a django n00b.

Patrick

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to