On Wed, May 28, 2008 at 2:19 PM, nib <[EMAIL PROTECTED]> wrote:

>
> I am a new django user and I was following a tutorial (http://
> www.djangoproject.com/documentation/tutorial01/) and I got stuck with
> the following error trying to access the admin site (http://
> 127.0.0.1:8000/).  I had created a folder 'c:\project\test' and I
> started up the server from this folder (python manage.py runserver)
> with no errors.  This is on a Windows 2000 Professional OS.
>
>
> ImproperlyConfigured at /admin/
> Error while importing URLconf '{{ project_name }}.urls': No module
> named {{ project_name }}.urls
> Request Method: GET
> Request URL: http://127.0.0.1:8000/admin/
> Exception Type: ImproperlyConfigured
> Exception Value: Error while importing URLconf
> '{{ project_name }}.urls': No module named {{ project_name }}.urls
> Exception Location: c:\python25\lib\site-packages\django\core
> \urlresolvers.py in _get_urlconf_module, line 255
> Python Executable: c:\python25\python.exe
> Python Version: 2.5.2
> Python Path: ['C:\\Python25\\Lib\\site-packages\\django\\conf\
> \project_template', 'C:\\WINNT\\system32\\python25.zip', 'c:\\python25\
> \DLLs', 'c:\\python25\\lib', 'c:\\python25\\lib\\plat-win', 'c:\
> \python25\\lib\\lib-tk', 'c:\\python25', 'c:\\python25\\lib\\site-
> packages']
> Server time: Wed, 28 May 2008 13:15:12 -0500
>
>
You seem to be trying to use Django template variable substitution ({{
variable_name }} stuff) in your urls.py file?  You can't do that -- urls.py
is pure Python, it is not parsed/processed like a template file.  You need
to put your real project name in your urls.py.  (Where in following along in
the tutorial did you get the idea you could do this?)

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to