include polls application in installed_applications in settings.py file and
do this import

from polls.models import Poll in shell , let me know if that works.

HTH.

Best Regards,
Srinivas Reddy Thatiparthy
9703888668.

"Anyone who has never made a mistake has never tried anything new !!! "
--Albert Einstein


On Thu, Apr 4, 2013 at 9:48 AM, sharath bangera <johnsonsh...@gmail.com>wrote:

>  I have Created the Project and App using Python And Django.
>  This is My Model in my model.py
>  ------------------------------**------------------------------**
> --------------------------
>  class Poll(models.Model):
>      question = models.CharField(max_length=**200)
>      pub_date = models.DateTimeField('date published')
>  ------------------------------**------------------------------**
> --------------------------
>  Now When run "import Poll or from polls.models import Model" through
> python shell , it gives no module named
>  Poll Error.
>
>  Project Structure :
>  mysite [project name]
>     manage.py
>     mysite
>         files under mysite
>     polls [my app]
>         __init__
>         models
>         views
>         tests
>
>
>  --
> 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+unsubscr...@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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to