Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7551201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:25:16+00:00 2026-05-30T10:25:16+00:00

I am confused on this part of the Django tutorial . It says something

  • 0

I am confused on this part of the Django tutorial. It says something like copying the whole admin templates to dbe/templates, but what is the full path should be and what folders am I suppose to be creating?

I am running Mac OS X and my todo app is located at /Users/hobbes3/Sites/mysite/todo/ and my full Django path is /usr/local/lib/python2.7/site-packges/django/.

I also placed my templates at /Users/hobbes3/Sites/myDjango/templates. Inside this folder I have admin/base_site.html and polls/detail.html, polls/index.html, and polls/results.html. The poll app was created from the official Django tutorial. My copy of the poll app works fine.

The error I get when I run the server with python manage.py runserver and I go to http://127.0.0.1:8000/admin/ is

ImportError at /admin/

No module named dbe.todo.models

Request Method:     GET
Request URL:    http://127.0.0.1:8000/admin/
Django Version:     1.3.1
Exception Type:     ImportError
Exception Value:    

No module named dbe.todo.models

Exception Location:     /Users/hobbes3/Sites/mysite/todo/admin.py in <module>, line 1
Python Executable:  /usr/local/bin/python
Python Version:     2.7.2
Python Path:    

['/Users/hobbes3/Sites/mysite',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.4-x86_64.egg',
 '/usr/local/Cellar/python/2.7.2/lib/python27.zip',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7/plat-darwin',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7/plat-mac',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7/plat-mac/lib-scriptpackages',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7/lib-tk',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7/lib-old',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7/lib-dynload',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages',
 '/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']

Server time:    Fri, 24 Feb 2012 05:09:28 -0600
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:25:17+00:00Added an answer on May 30, 2026 at 10:25 am

    For starters, you should follow the official tutorial: https://docs.djangoproject.com/en/dev/intro/tutorial01/

    The tutorial you’re following looks pretty awful (sorry :/)

    I suspect that dbe is the project name of this guy. When he shows:

    cp -r django/contrib/admin/templates/admin/ dbe/templates/
    

    It seems that he has django and the project at the same level. So his dbe == your mysite.

    Anyhow, there is no need to prefix app modules with the project module name, this is ridiculous – hard coding the project name in the apps. This totally defeats the purpose of reusable apps. Run this:

    find /path/to/your/project -type f | xargs sed -i -e s/dbe.//g
    

    This command will remove ‘dbe.’ from everywhere in your code. This tutorial code is so horrible I wonder why you even bother following it …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am confused with this thing, is emulator safe from pc network's firewall like
I’m confused about this; instead of writing tweepy codes like- auth=tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret)
I'm relatively confused about this... I've got a table like: +----------------+--------------------------------------------------+------+-----+-------------------+-----------------------------+ | Field |
I am confused as to this part of exemplary code: float f = 3.01;
I am going through this tutorial and I am a bit confused of about
I am a bit confused when working with objective-c. This part in particular confuses
I'm rather confused by this stack trace (only the confusing part is shown): -[NSXMLDocument
May be this is silly on my part but I looked at the source
Totally confused by this one... We have a WAMPServer installation set up, running a
I'm confused about this bit of code from the HTTP package : type HandlerFunc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.