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


Ignore:
Timestamp:
Feb 3, 2018, 3:46:09 AM (6 years ago)
Author:
Gerben Morsink

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29068, comment 2

    v2 v3  
    66{{{
    77url(r'^aboutus/$', RedirectView.as_view(url=reverse('aboutus'), permanent=True))
     8}}}
    89
    9 }}}
    10  in my urls.py. Where the 'aboutus' url was defined somewhere above in an included sub urls.py.
     10in my urls.py. Where the 'aboutus' url was defined somewhere above in an included sub urls.py.
    1111
    1212With 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