Re: Accessing database table
If it's in the app itself, try import .models?
On 9 January 2014 15:27, Don Fox <foxdon31@gmail.com> wrote:
> In my manage.py shell I can load the following module:
> from userprofile.models import NPIdata
>
> However inside a file of utility functions located in the userprofile app
> the same import statement yields ImportError: 'No module named
> userprofile.models'
>
> I'm mystified!
>
> Any hints or help welcome.
>
> Thanks!
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8e0cd191-7fd0-46f7-979b-aa25234a681d%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
--
From this perspective it is natural that anarchism be marked by
spontaneity, differentiation, and experimentation that it be marked by
an expressed affinity with chaos, if chaos is understood to be what
lies outside or beyond the dominant game or system. Because of the
resistance to definition and categorisation, the anarchist principle
has been variously interpreted as, rather than an articulated
position, "a moral attitude, an emotional climate, or even a mood".
This mood hangs in dramatic tension between utopian hope or dystopian
nihilism...
-----
http://zuihitsu.org/godspeed-you-black-emperor-and-the-politics-of-chaos
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiPNcakCkEy8asBm8-ZZyg5AToWh0H5soq%3DvxiMogunHVA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home