I set up URLs in my urls.py file in my main project, like so:
urlpatterns = patterns('',
url(r'^$',gamelog.views.frontpage,name='home'),
url(r'^user/register/',gamelog.views.register,name='register'),
)
Problem is, about 50% of the time when I visit the homepage, I’ll get the ‘It Worked’ page, and the other 50% is the actual view I designated.
However, if I visit /user/register, 50% of the time is the ‘It Worked’ page, and the other 50% is a 404 that says:
Using the URLconf defined in project.urls, Django tried these URL patterns, in this order:
^/?$
The current URL, user/register, didn't match any of these.
Turns out, embarrassingly enough, I was restarting lighttpd to make the app work again, not the actual FCGI socket (e.g. FLUP).
So, the solution is to restart the PYTHON server, not the webserver.
I feel like an idiot.