Re: Django Tutorial Part 3 Decoupling the URLconfs

2012-02-06 Thread Thorsten Sanders
You are using the tutorial of the development version which is 1.4 
alpha, but using yourself version 1.3.1, so you need to use


django.conf.urls.defaults instead of django.conf.urls

Better use the 1.3 tutorial instead of the development one to not run into such 
troubles.


Am 06.02.2012 23:23, schrieb John Paton:

Thanks for the help.

Here's what it says: from django.conf.urls import patterns, include,
url

and then it says unresolved import: url, include, patterns.

Can you tell me what is going wrong here.

Thanks!



On Feb 6, 12:02 pm, Pavlo Kapyshin  wrote:

As this exception says, you have an error on first line of urls.py.
Double-check that line.


--
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django Tutorial Part 3 Decoupling the URLconfs

2012-02-06 Thread John Paton
Thanks for the help.

Here's what it says: from django.conf.urls import patterns, include,
url

and then it says unresolved import: url, include, patterns.

Can you tell me what is going wrong here.

Thanks!



On Feb 6, 12:02 pm, Pavlo Kapyshin  wrote:
> As this exception says, you have an error on first line of urls.py.
> Double-check that line.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django Tutorial Part 3 Decoupling the URLconfs

2012-02-06 Thread Pavlo Kapyshin
As this exception says, you have an error on first line of urls.py.
Double-check that line.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django Tutorial Part 3 Decoupling the URLconfs

2012-02-06 Thread John Paton
Hi,

I have just tried to decouple my polls urls. Everything was working
before but when I now go to mysite I get the following error message.
Do you have any idea how I could fix this? Thanks for the help!

ImportError at /
cannot import name patterns
Request Method: GET
Request URL:http://127.0.0.1:8000/
Django Version: 1.3.1
Exception Type: ImportError
Exception Value:
cannot import name patterns
Exception Location: C:\Users\John\workspace\mysite\mysite\urls.py in
, line 1
Python Executable:  C:\Python27\python.exe
Python Version: 2.7.2
Python Path:
['C:\\Users\\John\\workspace\\mysite\\mysite',
 'C:\\Users\\John\\workspace\\mysite',
 'C:\\Python27\\DLLs',
 'C:\\Python27\\lib',
 'C:\\Python27\\lib\\plat-win',
 'C:\\Python27\\lib\\lib-tk',
 'C:\\Python27',
 'C:\\Python27\\lib\\site-packages',
 'C:\\Windows\\system32\\python27.zip']
Server time:Mon, 6 Feb 2012 11:56:28 -0500

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.