So basically I want to allow the user to go to mydomain.com/username and I have it working by adding this to the end of urlpatterns
(r'(?i)(?P<username>\w+)/$',user),
A potential issue I see arising is when a user has a username that matches with another pattern specified above. As unlikely as that could be, it's an edge case I want to catch and handle. I'm not sure what the best way to deal with it would be.
In forms.py, I have a custom username field that checks if the username is taken and that I can add other checks to. Would there be a way to basically add all the urls in urlpatterns to that list? Some way that it could automatically be changed as I add more, or would I have to hardcode them in?