Re: Migration problems (old svn version to 1.0 and new server)

2008-10-20 Thread Karen Tracey
On Mon, Oct 20, 2008 at 5:10 PM, AdamC <[EMAIL PROTECTED]> wrote:

>
> 2008/10/20 Karen Tracey <[EMAIL PROTECTED]>:
> > On Mon, Oct 20, 2008 at 4:36 PM, AdamC <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm running the latest checkout using svn as per the download
> >> instructions on the djangoproject site.
> >>
> >
> > OK, now that you've confirmed that and I take a closer look at the
> > erroryou have:
> >
> > {%url films.views.edit_film_list %}
> >
> > but I do not see any matching url with that view in the urls you posted:
> >
> > urlpatterns = patterns('',
> > (r'^apps/login/.?$', 'django.contrib.auth.views.login'),
> > (r'^apps/admin/(.*)', admin.site.root),
> > (r'^apps/films/$', 'films.views.film_list'),
> > (r'^apps/films/(?P\d+)/$', 'films.views.detail'),
> > (r'^apps/films/search/$', 'films.views.search'),
> > (r'^apps/films/addfilm/$', 'films.views.add_film'),
> > (r'^apps/films/addfilm/thanks/$', 'films.views.add_film_thanks'),
> > (r'^apps/films/editfilm/(?P\d+)/$', 'films.views.edit_film'),
> > (r'^apps/films/editfilm/$', 'films.views.film_list'),
> > (r'^apps/films/deletefilm/$', 'films.views.film_list'),
> > (r'^apps/films/deletefilm/(?P\d+)$', 'films.views.delete_film'),
> > (r'^apps/films/logout/$', 'films.views.logout_view'),
> >
> > )
> >
> > The one that looks like it might be the one that should match
> > (r'^apps/films/editfilm/$') is mapped to 'films.views.film_list', not
> > 'films.views.edit_film_list'?
>
> editfilm is a function that creates a form to edit a particular film.
>
> edit_film_list is a function that shows a list of films with an edit
> link beside that particular film.
>

But where in your urls.py do you have a urlpattern that maps to
edit_film_list?  I'm with the error message -- I can't find any url that
would result in calling edit_film_list; when I do a search on
'edit_film_list' in your posts the only place I find it referenced is in the
{% url %} tag that is generating the error messages and in the error
messages.  It's nowhere mentioned in the urls.py that you posted, so I don't
see how you could expect {% url %} for it to work?


>
> This is all strange, as this application is running fine on an old svn
> version of django (pre 1.0).
>

That I can't explain.  Unless you're not actually using the urls.py you
posted on the old level, but rather one that does have a urlpattern that
maps to the edit_film_list view.

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
-~--~~~~--~~--~--~---



Re: Migration problems (old svn version to 1.0 and new server)

2008-10-20 Thread AdamC

2008/10/20 Karen Tracey <[EMAIL PROTECTED]>:
> On Mon, Oct 20, 2008 at 4:36 PM, AdamC <[EMAIL PROTECTED]> wrote:
>>
>> I'm running the latest checkout using svn as per the download
>> instructions on the djangoproject site.
>>
>
> OK, now that you've confirmed that and I take a closer look at the
> erroryou have:
>
> {%url films.views.edit_film_list %}
>
> but I do not see any matching url with that view in the urls you posted:
>
> urlpatterns = patterns('',
> (r'^apps/login/.?$', 'django.contrib.auth.views.login'),
> (r'^apps/admin/(.*)', admin.site.root),
> (r'^apps/films/$', 'films.views.film_list'),
> (r'^apps/films/(?P\d+)/$', 'films.views.detail'),
> (r'^apps/films/search/$', 'films.views.search'),
> (r'^apps/films/addfilm/$', 'films.views.add_film'),
> (r'^apps/films/addfilm/thanks/$', 'films.views.add_film_thanks'),
> (r'^apps/films/editfilm/(?P\d+)/$', 'films.views.edit_film'),
> (r'^apps/films/editfilm/$', 'films.views.film_list'),
> (r'^apps/films/deletefilm/$', 'films.views.film_list'),
> (r'^apps/films/deletefilm/(?P\d+)$', 'films.views.delete_film'),
> (r'^apps/films/logout/$', 'films.views.logout_view'),
>
> )
>
> The one that looks like it might be the one that should match
> (r'^apps/films/editfilm/$') is mapped to 'films.views.film_list', not
> 'films.views.edit_film_list'?

editfilm is a function that creates a form to edit a particular film.

edit_film_list is a function that shows a list of films with an edit
link beside that particular film.

This is all strange, as this application is running fine on an old svn
version of django (pre 1.0).

Adam
--
You back your data up on the same planet?
http://www.monkeez.org
PGP key: 0x7111B833

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Migration problems (old svn version to 1.0 and new server)

2008-10-20 Thread Karen Tracey
On Mon, Oct 20, 2008 at 4:36 PM, AdamC <[EMAIL PROTECTED]> wrote:

>
> I'm running the latest checkout using svn as per the download
> instructions on the djangoproject site.
>
>
OK, now that you've confirmed that and I take a closer look at the
erroryou have:

{%url films.views.edit_film_list %}

but I do not see any matching url with that view in the urls you posted:

urlpatterns = patterns('',
(r'^apps/login/.?$', 'django.contrib.auth.views.login'),
(r'^apps/admin/(.*)', admin.site.root),
(r'^apps/films/$', 'films.views.film_list'),
(r'^apps/films/(?P\d+)/$', 'films.views.detail'),
(r'^apps/films/search/$', 'films.views.search'),
(r'^apps/films/addfilm/$', 'films.views.add_film'),
(r'^apps/films/addfilm/thanks/$', 'films.views.add_film_thanks'),
(r'^apps/films/editfilm/(?P\d+)/$', 'films.views.edit_film'),
(r'^apps/films/editfilm/$', 'films.views.film_list'),
(r'^apps/films/deletefilm/$', 'films.views.film_list'),
(r'^apps/films/deletefilm/(?P\d+)$', 'films.views.delete_film'),
(r'^apps/films/logout/$', 'films.views.logout_view'),

)

The one that looks like it might be the one that should match
(r'^apps/films/editfilm/$') is mapped to 'films.views.film_list', not
'films.views.edit_film_list'?

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
-~--~~~~--~~--~--~---



Re: Migration problems (old svn version to 1.0 and new server)

2008-10-20 Thread AdamC

2008/10/20 Karen Tracey <[EMAIL PROTECTED]>:
> 2008/10/20 AdamC <[EMAIL PROTECTED]>
>>
>> They all import fine.
>>
>> I do have @login_required at the beginning of a few functions. Has
>> this changed since v1.0?
>
> You mean since 0.96?  It certainly hasn't changed since 1.0, and I don't
> believe @login_required was changed between 0.96 and 1.0.  (If it was it
> would be mentioned in the backwards incompatible changes list.)
>
> As I said before, there have been a couple of bugs fixed in this area since
> 1.0 was released.  Have you tried running with current trunk or the 1.0.X
> branch code -- I don't see that you mention you've verified the problem you
> are seeing still exists with the current code?
>
> Karen

I'm running the latest checkout using svn as per the download
instructions on the djangoproject site.

Adam
--
You back your data up on the same planet?
http://www.monkeez.org
PGP key: 0x7111B833

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Migration problems (old svn version to 1.0 and new server)

2008-10-20 Thread Karen Tracey
2008/10/20 AdamC <[EMAIL PROTECTED]>

> They all import fine.
>
> I do have @login_required at the beginning of a few functions. Has
> this changed since v1.0?
>

You mean since 0.96?  It certainly hasn't changed since 1.0, and I don't
believe @login_required was changed between 0.96 and 1.0.  (If it was it
would be mentioned in the backwards incompatible changes list.)

As I said before, there have been a couple of bugs fixed in this area since
1.0 was released.  Have you tried running with current trunk or the 1.0.X
branch code -- I don't see that you mention you've verified the problem you
are seeing still exists with the current code?

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
-~--~~~~--~~--~--~---



Re: Migration problems (old svn version to 1.0 and new server)

2008-10-20 Thread AdamC
2008/10/20 Jarek Zgoda <[EMAIL PROTECTED]>:
>
> Wiadomość napisana w dniu 2008-10-19, o godz. 21:19, przez AdamC:
>
 In template /home/adam/apps/films/templates/includes/nav.html, error
 at line 1
 Caught an exception while rendering: Reverse for
 'films.films.views.edit_film_list' with arguments '()' and keyword
 arguments '{}' not found.
 1 | Film list | >>> href="{%url films.views.add_film %}">Add a film | Edit | Search | Logout

 The part that is red in this error report is the {%url - has this
 changed since version 1?

 Any other advice on how to fix this error?
>>>
>>>
>>> Double check your urlconf - all views used there have to be
>>> importable. The error pobably means you have some error in your views
>>> (or some url pattern pointing to view that does not exist).
>>>
>> My urls.py
>>
>>
>> from django.conf.urls.defaults import *
>> from django.contrib import admin
>> admin.autodiscover()
>>
>> urlpatterns = patterns('',
>> (r'^apps/login/.?$', 'django.contrib.auth.views.login'),
>> (r'^apps/admin/(.*)', admin.site.root),
>> (r'^apps/films/$', 'films.views.film_list'),
>> (r'^apps/films/(?P\d+)/$', 'films.views.detail'),
>> (r'^apps/films/search/$', 'films.views.search'),
>> (r'^apps/films/addfilm/$', 'films.views.add_film'),
>> (r'^apps/films/addfilm/thanks/$', 'films.views.add_film_thanks'),
>> (r'^apps/films/editfilm/(?P\d+)/$', 'films.views.edit_film'),
>> (r'^apps/films/editfilm/$', 'films.views.film_list'),
>> (r'^apps/films/deletefilm/$', 'films.views.film_list'),
>> (r'^apps/films/deletefilm/(?P\d+)$',
>> 'films.views.delete_film'),
>> (r'^apps/films/logout/$', 'films.views.logout_view'),
>>
>> )
>>
>> Anything untoward here?
>
> If any of these throws an error upon importing, you'll get "reverse
> not found". Try to manually import each of them from shell.


They all import fine.

I do have @login_required at the beginning of a few functions. Has
this changed since v1.0?

Adam
--
You back your data up on the same planet?
http://www.monkeez.org
PGP key: 0x7111B833

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Migration problems (old svn version to 1.0 and new server)

2008-10-20 Thread Jarek Zgoda

Wiadomość napisana w dniu 2008-10-19, o godz. 21:19, przez AdamC:

>>> In template /home/adam/apps/films/templates/includes/nav.html, error
>>> at line 1
>>> Caught an exception while rendering: Reverse for
>>> 'films.films.views.edit_film_list' with arguments '()' and keyword
>>> arguments '{}' not found.
>>> 1 | Film list | >> href="{%url films.views.add_film %}">Add a film | Edit | Search | Logout
>>>
>>> The part that is red in this error report is the {%url - has this
>>> changed since version 1?
>>>
>>> Any other advice on how to fix this error?
>>
>>
>> Double check your urlconf - all views used there have to be
>> importable. The error pobably means you have some error in your views
>> (or some url pattern pointing to view that does not exist).
>>
> My urls.py
>
>
> from django.conf.urls.defaults import *
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns('',
> (r'^apps/login/.?$', 'django.contrib.auth.views.login'),
> (r'^apps/admin/(.*)', admin.site.root),
> (r'^apps/films/$', 'films.views.film_list'),
> (r'^apps/films/(?P\d+)/$', 'films.views.detail'),
> (r'^apps/films/search/$', 'films.views.search'),
> (r'^apps/films/addfilm/$', 'films.views.add_film'),
> (r'^apps/films/addfilm/thanks/$', 'films.views.add_film_thanks'),
> (r'^apps/films/editfilm/(?P\d+)/$', 'films.views.edit_film'),
> (r'^apps/films/editfilm/$', 'films.views.film_list'),
> (r'^apps/films/deletefilm/$', 'films.views.film_list'),
> (r'^apps/films/deletefilm/(?P\d+)$',  
> 'films.views.delete_film'),
> (r'^apps/films/logout/$', 'films.views.logout_view'),
>
> )
>
> Anything untoward here?

If any of these throws an error upon importing, you'll get "reverse  
not found". Try to manually import each of them from shell.

-- 
We read Knuth so you don't have to. - Tim Peters

Jarek Zgoda, R&D, Redefine
[EMAIL PROTECTED]


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Migration problems (old svn version to 1.0 and new server)

2008-10-19 Thread AdamC
2008/10/19 Jarek Zgoda <[EMAIL PROTECTED]>:
>
> Wiadomość napisana w dniu 2008-10-19, o godz. 20:25, przez AdamC:
>
>> Template error
>>
>> In template /home/adam/apps/films/templates/includes/nav.html, error
>> at line 1
>> Caught an exception while rendering: Reverse for
>> 'films.films.views.edit_film_list' with arguments '()' and keyword
>> arguments '{}' not found.
>> 1 | Film list | > href="{%url films.views.add_film %}">Add a film | Edit | Search | Logout
>>
>> The part that is red in this error report is the {%url - has this
>> changed since version 1?
>>
>> Any other advice on how to fix this error?
>
>
> Double check your urlconf - all views used there have to be
> importable. The error pobably means you have some error in your views
> (or some url pattern pointing to view that does not exist).
>
> --
> We read Knuth so you don't have to. - Tim Peters

My urls.py


from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
(r'^apps/login/.?$', 'django.contrib.auth.views.login'),
(r'^apps/admin/(.*)', admin.site.root),
(r'^apps/films/$', 'films.views.film_list'),
(r'^apps/films/(?P\d+)/$', 'films.views.detail'),
(r'^apps/films/search/$', 'films.views.search'),
(r'^apps/films/addfilm/$', 'films.views.add_film'),
(r'^apps/films/addfilm/thanks/$', 'films.views.add_film_thanks'),
(r'^apps/films/editfilm/(?P\d+)/$', 'films.views.edit_film'),
(r'^apps/films/editfilm/$', 'films.views.film_list'),
(r'^apps/films/deletefilm/$', 'films.views.film_list'),
(r'^apps/films/deletefilm/(?P\d+)$', 'films.views.delete_film'),
(r'^apps/films/logout/$', 'films.views.logout_view'),

)

Anything untoward here?
--
You back your data up on the same planet?
http://www.monkeez.org
PGP key: 0x7111B833

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Migration problems (old svn version to 1.0 and new server)

2008-10-19 Thread Jarek Zgoda

Wiadomość napisana w dniu 2008-10-19, o godz. 20:25, przez AdamC:

> Template error
>
> In template /home/adam/apps/films/templates/includes/nav.html, error  
> at line 1
> Caught an exception while rendering: Reverse for
> 'films.films.views.edit_film_list' with arguments '()' and keyword
> arguments '{}' not found.
> 1 | Film list |  href="{%url films.views.add_film %}">Add a film | Edit | Search | Logout
>
> The part that is red in this error report is the {%url - has this
> changed since version 1?
>
> Any other advice on how to fix this error?


Double check your urlconf - all views used there have to be  
importable. The error pobably means you have some error in your views  
(or some url pattern pointing to view that does not exist).

-- 
We read Knuth so you don't have to. - Tim Peters

Jarek Zgoda, R&D, Redefine
[EMAIL PROTECTED]


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Migration problems (old svn version to 1.0 and new server)

2008-10-19 Thread Karen Tracey
On Sun, Oct 19, 2008 at 2:25 PM, AdamC <[EMAIL PROTECTED]> wrote:

>
> I'm migrating my application (a simple film database) to another server.
>
> I installed version 1.0 of django on the new server and set up apache
> with mod_python (which was the same setup on my old server).
>
> However, I seem to be having some problems. When I try and login to my
> application (which seems to work well, I get the error:
>
> TemplateSyntaxError at /apps/films/
> Caught an exception while rendering: Reverse for
> 'films.films.views.edit_film_list' with arguments '()' and keyword
> arguments '{}' not found.
>
> [snip details]


It's possible you are hitting a bug that's been fixed (there have been a
couple of fixes made in this area).  You could try running with current
trunk or the 1.0.X branch (only bug fixes, no new features) and see if this
error Goes Away.  If not, I think some specifics on your url patterns will
be needed to debug what's going on.

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
-~--~~~~--~~--~--~---