Hi Karen, thanks for the reply, and sorry for not being clearer in my
original message.

I've done a bit more debugging and I've found that whenever I put any
form of import line, such as
"from django.db import models" or
"from internal.models import *" in __init__.py I get the following
error when running syncdb:

"Error: Can't find the file 'settings.py' in the directory containing
'/home/mhop/django/mopan/manage.py'. It appears you've customized
things.
You'll have to run django-admin.py, passing it your settings module.
(If the file settings.py does indeed exist, it's causing an
ImportError somehow.)"

I'm new to Python but not new to developing in general.  Is there any
way to better debug the __init__.py script?  This one really has me
stumped and I don't know how to take it further.  Any advice would be
greatly appreciated!

Many thanks,
Michael



On Apr 1, 6:30 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Wed, Apr 1, 2009 at 1:04 PM, laird18 <michael.hopcr...@gmail.com> wrote:
>
> > Hello all,
>
> > I'm trying to follow the "example custom comments app" exercise as
> > documented here:
>
> >http://docs.findjango.com/ref/contrib/comments/custom.html#ref-contri...
>
> > It looks simple enough but I've hit a complete dead end with it, and I
> > don't have any idea how to debug the problem!  Basically the comments
> > form isn't changing as it should.  I have noticed that when I copy the
> > methods in to __init__.py and try to run syncdb I'm getting an error
> > message.  So maybe the problem lies there?
>
> Certainly sounds like it could be the problem.  But since you don't say what
> the error message is, exactly, I don't see how anyone will be able to help
> other than to say you need to fix whatever is causing the error message.  If
> you want help with that, you'll need to share the error message with us.
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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