Re: NoReverseMatch, Not working in Production Server

2017-05-08 Thread Melvyn Sopacua
On Monday 08 May 2017 14:22:27 Melvyn Sopacua wrote: > On Monday 08 May 2017 03:16:30 miguel vfx wrote: > > I got it to work but with a different approach by not passing > > > arguments: > This isn't the right fix, something else changed. The error message > shows that faculty_name.1 was empty. If

Re: NoReverseMatch, Not working in Production Server

2017-05-08 Thread Melvyn Sopacua
On Monday 08 May 2017 03:16:30 miguel vfx wrote: > I got it to work but with a different approach by not passing > arguments: This isn't the right fix, something else changed. The error message shows that faculty_name.1 was empty. If the fix works, the old code should work as well. It's probably

Re: NoReverseMatch, Not working in Production Server

2017-05-08 Thread Melvyn Sopacua
On Monday 08 May 2017 12:46:43 ludovic coues wrote: > I'm a bit surprised by the error message showing > (?P[-\w]+) with two \ while your url only use one. No, that's normal since a few releases, that backslashes in backtraces are escaped. Don't ask me why, I've learned to read it and didn't di

Re: NoReverseMatch, Not working in Production Server

2017-05-08 Thread ludovic coues
I'm a bit surprised by the error message showing (?P[-\w]+) with two \ while your url only use one. If you want to try quickly different arguments for your reverse tag, you can use the django shell. python manage.py shell >>> from django.urls import reverse >>> reverse('rrs_class_lists_faculty',

Re: NoReverseMatch, Not working in Production Server

2017-05-08 Thread miguel vfx
I got it to work but with a different approach by not passing arguments: target="_blank">{{ faculty_name.0 }} > url(r'^class_lists_summary/$', > rrs_views.requires_login(rrs_views.class_lists_summary), > name="rrs_class_lists_summary"), > > url(r'^class_lists_summary/(?P[-\w]+)/$', >

NoReverseMatch, Not working in Production Server

2017-05-08 Thread miguel vfx
Hi, It used to work but after my recent upload, it stopped. Does anyone encountered this kind of error before? It's working fine in my local machine using runserver but not in the production server. I'm basically drag and dropping files. Then renaming the > os.environ.setdefault('DJANGO_SETTI