**
* root_urls = import_module(settings.ROOT_URLCONF)*
*
*
* url_patterns = root_urls.urlpatterns*
*
*
*
*
But I am getting this error
* 'module' object has no attribute 'urlpatterns'*
. My qustion is how can I access urlpatterns from django project in my
"XYZ&q
lresolvers.resolve(request.path)
File "/python2.5/django/core/urlresolvers.py", line 292, in resolve
return get_resolver(urlconf).resolve(path)
File "/python2.5/django/core/urlresolvers.py", line 231, in resolve
for pattern in self.urlconf_module.urlpatterns:
Attribute
Some additional info. I zapped my django installation and reinstalled
from svn from scratch. I still had the problem.
I tar'd up my project and moved it to a CentOS 5 box running 5631 and
I do *not* experience the problem there.
The two salient differences between the machines is that the
prob
This problem seems to occur whenever there is any syntax error in my
code *anywhere*. I just introduced one about a hundred lines into my
view function and triggered it.
Here is a simple test case, complete with sample syntax error:
===
urls.py:
from django.conf.urls.defaults import *
from
On Sat, 2007-07-07 at 19:51 +, Steve Bergman wrote:
> Apologies if I was not clear. Yes, I was expecting that if I had a
> syntax error in my code, the development server (./manage.py
> runserver) would either abort completely or restart itself.
>
> Instead, I see the error page directing me
Apologies if I was not clear. Yes, I was expecting that if I had a
syntax error in my code, the development server (./manage.py
runserver) would either abort completely or restart itself.
Instead, I see the error page directing me to the syntax error, which
I fix, and then reload the page or try
On Sat, 2007-07-07 at 19:15 +, Steve Bergman wrote:
> I'm still seeing this with 5631. It is definitely after I hit a
> syntax errror in my code that I see the behavior. I'm wondering if I
> am the only one seeing this. Or if is perhaps expected behavior.
What you do mean by "after you hit
I'm still seeing this with 5631. It is definitely after I hit a
syntax errror in my code that I see the behavior. I'm wondering if I
am the only one seeing this. Or if is perhaps expected behavior.
Thanks,
Steve Bergman
--~--~-~--~~~---~--~~
You received this m
/query/
'module' object has no attribute 'urlpatterns'
Request Method: GET
Request URL:http://127.0.0.1:8000/reports/query/
Exception Type: AttributeError
Exception Value: 'module' object has no attribute 'urlpatterns'
Exception Loc
On Mon, 2007-06-25 at 12:51 +0100, Derek Hoy wrote:
> Meant to add that this was definitely something in r5516 - it appeared
> consistently going between r5515 and r5516.
>
> sorry haven't had time to poke about at the cause- got a demo of the
> project this afternoon :)
> If I can help track it
Meant to add that this was definitely something in r5516 - it appeared
consistently going between r5515 and r5516.
sorry haven't had time to poke about at the cause- got a demo of the
project this afternoon :)
If I can help track it down, let me know.
Derek
--~--~-~--~~
On 6/24/07, brian corrigan <[EMAIL PROTECTED]> wrote:
>
> Hi Malcom,
>
> Thanks for getting back to me so quickly. Updatting to r5520 has fixed
> my problem. Good work on you fix so :)
Fixed here too. I'm on fcgi + lighttpd and was just getting a 500
server error on any URL in the project, inclu
amhost/
>
> > Before adding my app I could see the django page that comes up before
> > you add an app, but after adding the app I'm getting this error,
> > 'module' object has no attribute 'urlpatterns' . (my urls file is
> > below)
>
> Th
t
> http://www2.jeffcroft.com/blog/2006/may/11/django-dreamhost/
>
> Before adding my app I could see the django page that comes up before
> you add an app, but after adding the app I'm getting this error,
> 'module' object has no attribute 'urlpatterns' . (my
could see the django page that comes up before
you add an app, but after adding the app I'm getting this error,
'module' object has no attribute 'urlpatterns' . (my urls file is
below)
I have looked at other posts on this and they don't seem to help. I
also saw somew
Flavio,
Have you recently updated your django using svn ? I had the same
problem because there was a 'urls' directory with some .pyc files in
django/contrib/admin (there should only be a urls.py, no directory).
Deleting the urls directory fixed it.
I hope this helps,
Graham.
[EMAIL
[EMAIL PROTECTED] wrote:
>Well, I have tried setting urlpatterns in databaseImport.py (copied
>from urls.py) but it the error message did not change.
>
>
But why you include this databaseImport.py ??? You should include your
applications urls.py where you describe your urls.
--~--~-~-
> When you do 'include', the thing being included must be a valid
> URLConf, which means it must generate a 'urlpatterns'. The
> documentation does not explicitly state this, I assume because it
> hopes that by that point in the documentation it's understood what is
> meant by the term "URLConf".
Here's my urls.py:
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Admin
(r'^admin/', include('django.contrib.admin.urls')),
# News
(r'^news/', include('cmh.apps.news.urls')),
...
apps/news/urls.py:
from django.conf.urls.defaults import *
urlpatterns = patt
On 5/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> nowhere in the documentation is is said to add a urlpatterns variable
> inside the application main module... The urls should be defined in the
> urls.py. remember that the url pattern for the admin script works...
When you do 'include',
I tried that and it does not help.
--~--~-~--~~~---~--~~
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
nowhere in the documentation is is said to add a urlpatterns variable
inside the application main module... The urls should be defined in the
urls.py. remember that the url pattern for the admin script works...
--~--~-~--~~~---~--~~
You received this message becau
the problem is the dollar sign at the end of the expression, get rid of it
On 5/10/06, Vladimir Pouzanov <[EMAIL PROTECTED]> wrote:
>
> epigrassWeb/databaseImport.py should contain:
> urlpatterns = (
> ... module-specific URLs ...
> )
>
> On 5/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
epigrassWeb/databaseImport.py should contain:
urlpatterns = (
... module-specific URLs ...
)
On 5/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> I am just starting up with django and got stuck in this error when I
> try to access my app url. the admin url works fine.
>
> here is
hi,
I am just starting up with django and got stuck in this error when I
try to access my app url. the admin url works fine.
here is my urls.py:
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
(r'^databaseImport/$', include('epigrassWeb.databaseImport')),
25 matches
Mail list logo