Click here to Skip to main content
15,848,407 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created Djnago project in eclipse. Unfortunately, i am facing issue when i run the project

ImportError at / No module named urls

Here Error Page
Eclipse Project

urls.py Content

Python
from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'TestApp.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
)
Posted

1 solution

You have to add your project to PYTHONPATH in eclipse. Go to preferences -> PyDev - PYTHONPATH and add your project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900