[Answer]-Import error from “Django Tutorial: a blog App” in windows 7

0👍

I suspected you were using a tutorial, so after googling dbe.blog tutorial I found this site. if that’s what you are using, then I’m guessing the lines that refer to dbe.blog should, in your case, refer to firstblog. So from dbe.blog import ... should be from firstblog import .... In your templates the same applies to the url tag

<a href="{% url dbe.blog.views.main %}" >Back to Blog Frontpage </a>

should be

<a href="{% url firstblog.views.main %}" >Back to Blog Frontpage </a>
👤vikki

1👍

Seems like you’ve added ‘”dbe.blog” to installed apps setting, try “blog” instead.

EDIT:

@vikki has a good point, so maybe you should give us full traceback.

Leave a comment