# Path: example/simpleprofile/models.py
# class Profile(models.Model):
#     """
#     (Profile description)
#     """
#     user = models.ForeignKey(User)
#     name = models.CharField(blank=True, null=True, max_length=255)
# 
#     def __unicode__(self):
#         return self.name
# 
#     @permalink
#     def get_absolute_url(self):
#         return ('profile_detail', (), {'object_id': self.id})


from django.conf.urls.defaults import patterns, url
from .models import Profile

urlpatterns = patterns('',
    url(
        regex=r"^(?P<object_id>\d+)/?$",
        view="django.views.generic.list.ListView",
        kwargs={'queryset': Profile.objects.all()},
        name="profile_detail",
    ),

# Path: example/simpleprofile/models.py
# class Profile(models.Model):
#     """
#     (Profile description)
#     """
#     user = models.ForeignKey(User)
#     name = models.CharField(blank=True, null=True, max_length=255)
# 
#     def __unicode__(self):
#         return self.name
# 
#     @permalink
#     def get_absolute_url(self):
#         return ('profile_detail', (), {'object_id': self.id})


# Path: example/simpleprofile/urls.py
from django.conf.urls.defaults import patterns, url
from .models import Profile


urlpatterns = patterns('',
    url(
        regex=r"^(?P<object_id>\d+)/?$",
        view="django.views.generic.list.ListView",
        kwargs={'queryset': Profile.objects.all()},
        name="profile_detail",
    ),

)