Unless you actually created your stuff inside your installation of Django
(or under some directory named site-packages or dist-packages), which is
not recommended, it is unlikely that the place from which you import
Category and Products will be named beginning with "django.".

The book may be assuming more background than you have.  If you haven't
already done so, doing, one time, the tutorial at
docs.djangoproject.com(be sure to do the one for the version of django
that you have installed),
is very worthwhile.  Things that you may have misinterpreted in the book
might then make perfect sense.

And if you're not already facile with python, the tutorial at
docs.python.org, again, be sure to do the one for the version of python
that you have, is worth doing first of all.

Bill


On Sat, May 18, 2013 at 3:42 PM, Kakar Arunachal Service <
kakararunachalserv...@gmail.com> wrote:

> I'm practicing from a book Begining django e-commerce and m stuck in one
> place. My project name is ecomstore, and in it i have two app, one is
> preview and the other is catalog. In my preview app, there's just html in
> the templates dir, and thats not the problem, because the result was fine
> when i ran the server. And then i made a new app, catalog. It has two
> models, Category and Product. Then to register it with the admin, i made
> one admin.py file. And there i imported those two module by:
> from django.contrib import admin
> from django.ecomstore.catalog.models import Category, Product
> ...and some other forms related import.
> Then when i run the server, i get an Import error: No module named
> catalog.models.
> I have installed my app in settings.py.  Hope u guys could solve my
> problem.
>
> --
> 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