1đź‘Ť
Your diagnosis of the problem is wrong. The error you quote in the comment to Simeon does not indicate that the admin URL is going to the profile page: it wouldn’t, anyway, because the admin pattern already comes before the profile one in your urls.
The error is, however, quite clear: the view function “fantasymatchday_1.views.public_profile_anon” does not exist. Either create it, or remove the reference to it from the urls. (It seems completely irrelevant anyway, as it has exactly the same url as the one before it, so it will never be invoked. It needs to exist anyway if you reference it from urlpatterns, though.)
0đź‘Ť
You need to put the admin URL first:
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)), # enable administration
...
This means it’ll match against that URL first and for the word “admin” it’ll then display the admin panel. For other URLs it’ll continue and it’ll match player names against those URLs.
- [Answer]-Server Error (500) in accessing a section in Django app
- [Answer]-Nested block inside if condition django
- [Answer]-Celery chain tasks
- [Answer]-How to deploy static files with Django
- [Answer]-Caching using Memcached and python-memcache