Re: App not found

2009-05-13 Thread Daniel Roseman

On May 13, 3:32 am, "neri...@gmail.com"  wrote:
> Hello,
>
> I'm working on my first project and for some reason I keep getting
> "Error: App with label orders could not be found. Are you sure your
> INSTALLED_APPS setting is correct?". I've verified this many times by
> creating dummy apps and running sqlall for them, which works for
> everything but an app named "orders". I've also tried running startapp
> orders from scratch again and replacing the model.py file but this
> doesn't work either.

You haven't given us much information, but one thing springs to mind:
do you definitely have a (blank) __init__.py, and a models.py, in your
'orders' directory?

> I also have a question regarding def__unicode__(). if I'm creating a
> profile off of a User model how do I define the return statement to
> reflect the ForeignKey(User, unique=True), so I can refer to the
> object by the fields of User?
>

def __unicode__(self):
return self.user

--
DR.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: App not found

2009-05-12 Thread Apple
about __unicoder__() you can find something  usefull from Python doc or some
books about python (core python programing ~~)

good luck !

On Wed, May 13, 2009 at 10:32 AM, neri...@gmail.com wrote:

>
> Hello,
>
> I'm working on my first project and for some reason I keep getting
> "Error: App with label orders could not be found. Are you sure your
> INSTALLED_APPS setting is correct?". I've verified this many times by
> creating dummy apps and running sqlall for them, which works for
> everything but an app named "orders". I've also tried running startapp
> orders from scratch again and replacing the model.py file but this
> doesn't work either.
>
> I also have a question regarding def__unicode__(). if I'm creating a
> profile off of a User model how do I define the return statement to
> reflect the ForeignKey(User, unique=True), so I can refer to the
> object by the fields of User?
>
> Thanks,
>
> J
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



App not found

2009-05-12 Thread neri...@gmail.com

Hello,

I'm working on my first project and for some reason I keep getting
"Error: App with label orders could not be found. Are you sure your
INSTALLED_APPS setting is correct?". I've verified this many times by
creating dummy apps and running sqlall for them, which works for
everything but an app named "orders". I've also tried running startapp
orders from scratch again and replacing the model.py file but this
doesn't work either.

I also have a question regarding def__unicode__(). if I'm creating a
profile off of a User model how do I define the return statement to
reflect the ForeignKey(User, unique=True), so I can refer to the
object by the fields of User?

Thanks,

J

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---