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
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
"@/./
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
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
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 "/
>
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(
6 matches
Mail list logo