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 8615613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:25:17+00:00 2026-06-12T05:25:17+00:00

I am following Django tutorial given in the following link:- http://docs.djangoproject.com/en/1.4/intro/tutorial01/ While running server

  • 0

I am following Django tutorial given in the following link:-

http://docs.djangoproject.com/en/1.4/intro/tutorial01/

While running server I get many error messages:-

ImportError at /admin/

No module named polls.urls

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

No module named polls.urls

Exception Location:     C:\Python27\lib\site-packages\django\utils\importlib.py in import_module, line 35
Python Executable:      C:\Python27\python.exe
Python Version:         2.7.3

Python Path:    

['D:\\chetan\\All_My_Projects\\mysite1',
 'C:\\Windows\\system32\\python27.zip',
 'C:\\Python27\\DLLs',
 'C:\\Python27\\lib',
 'C:\\Python27\\lib\\plat-win',
 'C:\\Python27\\lib\\lib-tk',
 'C:\\Python27',
 'C:\\Python27\\lib\\site-packages']

The errors are similar to what has been asked in:-

No module named urls

My question is, do we need to add the project directory,which in my case would be D:\chetan\All_My_Projects\mysite1 to environment variable? Is this causing the problem..

  • 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-06-12T05:25:19+00:00Added an answer on June 12, 2026 at 5:25 am

    This is the whole Django Project ( I suppose, you are on Windows, using Py 27 )

    Follow these steps:

    • open cmd, direct it to d:\, Now python c:/python27/lib/site-packages/django/bin/django-admin.py startproject mysite

    • cd mysite and python manage.py startapp polls

    Now, cd polls

    # polls/views.py
    from django.shortcuts import render_to_response
    def polls_home(request):
        return render_to_response("polls.html")
    
    # polls/urls.py
    from django.conf.urls import patterns, include, url
    import views
    urlpatterns = patterns ("",
                                url(r'^polls$', views.polls_home),
    )
    
    • Go to d:/mysite/mysite/settings.py and add polls in INSTALLED_APPS

    • very important: open mysite/mysite/urls.py

    add url(r'^home$', include('polls.urls') ), to url patterns

    Now, runserver and open /home/polls

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

Sidebar

Related Questions

So now I am still at the Django tutorial part 3: http://docs.djangoproject.com/en/1.1/intro/tutorial03/#intro-tutorial03 Trying to
I've been following the django tutorial over at https://docs.djangoproject.com/en/dev/intro/tutorial03/ but I've hit a brick
I am following Heroku's tutorial to deploy a Django app: http://devcenter.heroku.com/articles/django#prerequisites . Everything is
I am following that tutorial http://thecodachi.blogspot.com/2012/03/django-tastypie-with-android-client.html and https://github.com/Mbosco/tastypie-api-example I did all things in the
I am following along this tutorial to get celery and django running on heroku.
I'm following the django tutorial at Django by example in http://www.lightbird.net/ . In the
I'm just learning django and following a tutorial. I have a Link and a
I'm following a Django tutorial and I bought a 1 month subscription to webfaction.com
I'm following a Django tutorial and suddenly when I try to access http://127.0.0.1:8000/admin/ it
I'm following the 4 part tutorial at djangoproject.com . In the 2nd part of

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.