Re: django-profiles and get_absolute_url

2011-06-01 Thread Andrew Sledge
Patch was submitted here: https://bitbucket.org/ubernostrum/django-profiles/issue/10/user-names-cant-have-periods-etc#comment-502428 On May 31, 5:17 pm, Andrew Sledge wrote: > Thank you Matias. > > Your syntax was a little off, but you did solve it. Here is the > correct syntax: > > import profil

Re: django-profiles and get_absolute_url

2011-05-31 Thread Andrew Sledge
Thank you Matias. Your syntax was a little off, but you did solve it. Here is the correct syntax: import profiles ... ... ... url(r'^profiles/(?P[\w\.]+)/$', 'profiles.views.profile_detail', name='profiles_profile_detail'), I will submit a patch to django-profiles to support the characters "@/./

Re: django-profiles and get_absolute_url

2011-05-31 Thread Matías Aguirre
This is the value for such url definition: url(r'^(?P\w+)/$', views.profile_detail, name='profiles_profile_detail'), the rule uses \w+ which doesn't match the dot character. Example: >>> import re >>> r = re.compile('(\w+)') >>> r.match('name.1').groups() ('name',) >>> r

Re: django-profiles and get_absolute_url

2011-05-31 Thread Andrew Sledge
Don't think that has anything to do with it, but here goes... url(r'^profiles/', include('profiles.urls')), The remaining url config is provided by django-profiles. On May 31, 4:46 pm, Matías Aguirre wrote: > Hi, > > Could you share the URL rule for profiles_profile_detail? > > Matías > > Excer

Re: django-profiles and get_absolute_url

2011-05-31 Thread Matías Aguirre
Hi, Could you share the URL rule for profiles_profile_detail? Matías Excerpts from Andrew Sledge's message of Tue May 31 17:37:20 -0300 2011: > Hi All, > > I am having trouble getting an absolute URL using the django-profiles > module with usernames that have periods in them (for instance "/ >

django-profiles and get_absolute_url

2011-05-31 Thread Andrew Sledge
Hi All, I am having trouble getting an absolute URL using the django-profiles module with usernames that have periods in them (for instance "/ profiles/user.1"). Here is my profile class: class UserProfile(models.Model): user = models.ForeignKey(User, unique=True) web_site = models.URLField(