Django blows up with 1.1, Can't find urls module

Question:

EDIT: Issue solved, answered it below. Lame error. Blah

So I upgraded to Django 1.1 and for the life of me I can’t figure out what I’m missing. Here is my traceback:

http://dpaste.com/37391/ – This happens on any page I try to go to.

I’ve modified my urls.py to include the admin in the new method:

from django.contrib import admin

admin.autodiscover()

…. urlpatterns declaration

(r’^admin/’, include(admin.site.urls)),

I’ve tried fidgeting with paths and the like but nothing fixes my problem and I can’t figure it out.

Has something major changed since Django 1.1 alpha -> Django 1.1 beta that I am missing? Apart from the admin I can’t see what else is new. Are urls still stored in a urls.py within each app?

Thanks for the help in advance, this is beyond frustrating.

Asked By: Bartek

||

Answers:

Try this:

    (r'^admin/(.*)', admin.site.root),

More info

Answered By: Andrea Di Persio

What is the value of your ROOT_URLCONF in your settings.py file? Is the file named by that setting on your python path?

Are you using the development server or what?

Answered By: Brian Neal

I figured it out. I was missing a urls.py that I referenced (for some reason, SVN said it was in the repo but it never was fetched on an update) and it simply said could not find urls (with no reference to notes.urls which WAS missing) so it got very confusing.

Either way, fixed — Awesome!

Answered By: Bartek
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.