Changes between Version 1 and Version 2 of Ticket #29068, comment 2


Ignore:
Timestamp:
Feb 3, 2018, 3:45:55 AM (7 years ago)
Author:
Gerben Morsink

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29068, comment 2

    v1 v2  
    55
    66{{{
    7 url(r'^aboutus/$', RedirectView.as_view(url=reverse('aboutus'), permanent=True)) in my urls.py. Where the 'aboutus' url was defined somewhere above in an included sub urls.py.
     7url(r'^aboutus/$', RedirectView.as_view(url=reverse('aboutus'), permanent=True))
    88
    99}}}
     10 in my urls.py. Where the 'aboutus' url was defined somewhere above in an included sub urls.py.
    1011
    1112With the Django testserver this works fine, but in production (Apache + WSGI) it gives a lot of seemingly strange errors, such as unexpected 404s and (after including the package silk) unexpected 500 errors. The strange thing was, that it did work on the test server (also Apache + WSGI), but not on the live server. It gave me some pulled out grey hair, so I hope someone finds this anwers when the need is there.
Back to Top