Re: ID for users of Speedy Net

2016-02-05 Thread Uri Even-Chen
Thanks Remco, that's what I was looking for. I'll try to implement it the way you suggested. Uri. *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/

Re: ID for users of Speedy Net

2016-02-05 Thread Remco Gerlich
The key is to start out your project with a different User model than the default model -- see https://docs.djangoproject.com/en/1.9/topics/auth/customizing/#specifying-a-custom-user-model . Create your own User model that inherits from AbstractBaseUser, and set AUTH_USER_MODEL = YourCustomUser.

Re: ID for users of Speedy Net

2016-02-05 Thread Uri Even-Chen
Hi James, Thanks for your feedback. My question was how do I change the primary key of a Django model such as User - a model I didn't write myself (it's already written by Django). Is it possible? Because I prefer the id/pk to be 15-digits randomly generated and not auto-increment. I don't see

Re: ID for users of Speedy Net

2016-02-05 Thread James Schneider
On Feb 4, 2016 10:59 AM, "Uri Even-Chen" wrote: > > Hi James, > > Thanks for your feedback. Actually I was thinking that this randomly generated number with 15 digits will be used in urls, for example of pages which don't have slugs etc. I saw similar urls in Facebook for pages

Re: ID for users of Speedy Net

2016-02-04 Thread Uri Even-Chen
Hi James, Thanks for your feedback. Actually I was thinking that this randomly generated number with 15 digits will be used in urls, for example of pages which don't have slugs etc. I saw similar urls in Facebook for pages who don't have a username (Facebook calls it a username), Facebook

Re: ID for users of Speedy Net

2016-02-04 Thread James Schneider
> > So my question is, can I make this random ID the primary key of the User model? I don't want users to have 2 ids - one for Django and one of Speedy Net, it doesn't make sense. I want the id to be the same and unique. I also want to have an Id model to prevent a page and a user (for example) to

ID for users of Speedy Net

2016-02-04 Thread Uri Even-Chen
To django-users@googlegroups.com, I'm working on the next version of Speedy Net , which will be based on Django 1.9.2 and Python 3.5 / 3.4. You can see the specification of Speedy Net on https://github.com/urievenchen/speedy-net/tree/master/speedy_net/specifications (the