Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread Uri Even-Chen
To Django users,

I'm interested in creating a new webmail platform based on Python and
Django, which will be free software & open source - Speedy Mail 2.0 (Speedy
Mail 1.0 and 1.1 were based on a Perl software - Endymion MailMan web-mail,
from 2000 to 2005). I want Speedy Mail 2.0's features to be as similar as
possible to Gmail - with labels, filters, 12 different stars, composing
more than one mail at a time, etc. I would like to know if there is any
free software in Python and Django we can base Speedy Mail on, or maybe
something in another language (such as PHP) which we can convert to Python
and Django? And are you interested in helping me develop Speedy Mail, or do
you know where I can find developers who may be interested?

By the way, is there a simple way to convert PHP software to Python, or do
we have to rewrite it again line by line?

Thanks,
Uri.

  *Uri Even-Chen*  [image: photo]  Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
 <http://www.facebook.com/urievenchen>
<http://plus.google.com/+urievenchen>
<http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGAJ3D8G9iA%2BsUH9Y6AsWMH8o%2BV8mefhdi1Ztjq-5kXVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread Uri Even-Chen
  *Uri Even-Chen*  [image: photo]  Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
 <http://www.facebook.com/urievenchen>
<http://plus.google.com/+urievenchen>
<http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>
On Wed, Jul 22, 2015 at 12:19 PM,  wrote:

> Maybe roundcube mail.
>
> Great idea by the way.
>

Thank you, I'll check roundcube mail.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGv%3DzcDbdHRrDpzSXQ4JJCbPs2vVUsxGLswLzy%3Dv9jaJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread Uri Even-Chen
  *Uri Even-Chen*  [image: photo]  Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
 <http://www.facebook.com/urievenchen>
<http://plus.google.com/+urievenchen>
<http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Wed, Jul 22, 2015 at 7:21 PM, Joachim Jablon  wrote:

> You probably want to have a close look at Mailpile :
>
> https://github.com/mailpile/Mailpile
> https://www.mailpile.is/
>
> (maybe the good solution is not to create a new standard
> <https://xkcd.com/927/> but to join forces to existing ones)
>
> Thank you, I'll check Mailpile too.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGVHvnTXUP2Zd8pLbWCE-3i-Z%2Bd6L80%2BG7-rbmj%3D_YmQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


I'm looking for a part-time job in Django

2016-08-14 Thread Uri Even-Chen
To django-users@googlegroups.com,

I'm looking for a part-time job in Django, do you know anything? I live in
Herzliya, Israel. I can't relocate but I can work from home. I can also
help developing the next versions of Django. You can see my CV on LinkedIn.
Please let me know if you have any job for me.

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGwJ_R4GXHEt%2BOJo1VVL7NcUgmwU2yR%3DDBHRAGDY-c8Ug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I'm looking for a part-time job in Django

2016-08-14 Thread Uri Even-Chen
Hi,

How do I add my name to
https://code.djangoproject.com/wiki/DevelopersForHire#Israel ?

Thanks,
Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

On Sun, Aug 14, 2016 at 10:24 AM, Uri Even-Chen  wrote:

> To django-users@googlegroups.com,
>
> I'm looking for a part-time job in Django, do you know anything? I live in
> Herzliya, Israel. I can't relocate but I can work from home. I can also
> help developing the next versions of Django. You can see my CV on LinkedIn.
> Please let me know if you have any job for me.
>
> Thanks,
> Uri.
>
> *Uri Even-Chen*
> [image: photo] Phone: +972-54-3995700
> Email: u...@speedy.net
> Website: http://www.speedysoftware.com/uri/en/
> <http://www.facebook.com/urievenchen>
> <http://plus.google.com/+urievenchen>
> <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsE7GH6Y2Kwr9NAAFExZju_ZeJcma%2BK7K8siWQrxRExTAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Models of Speedy Net

2016-08-18 Thread Uri Even-Chen
To django-users,

We are developing Speedy Net, a new social networks with apps (Speedy Match
and Speedy Composer). Speedy Net is using Django (the previous version is
written in PHP). I would like to ask you about the models, in
https://github.com/urievenchen/speedy-net/blob/master/speedy/net/accounts/models.py
(it's an open source project; there are other models too), is the order of
elements in the models correct? Currently the constants are first, then
class Meta, then fields, then managers, then methods and properties (in
arbitrary order). What is the common order of elements in Django projects?
Does it matter at all? I read something about it in Django documentation,
but I don't remember exactly where. I know the constants must be first in
the model, before the fields, but what about class Meta? Any help will be
appreciated.

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEPgckXSYJ_Uss4Wp2QKGT1oed_0Yrc9qdLDL8HJtPefg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Models of Speedy Net

2016-08-18 Thread Uri Even-Chen
By the way, I found this document
<https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/>
and I changed the order of elements in our models accordingly. But what
about def __init__? And this document is for Django developers, what about
Django users? Is there another document for us?

Thanks,
Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

On Thu, Aug 18, 2016 at 2:41 PM, Uri Even-Chen  wrote:

> To django-users,
>
> We are developing Speedy Net, a new social networks with apps (Speedy
> Match and Speedy Composer). Speedy Net is using Django (the previous
> version is written in PHP). I would like to ask you about the models, in
> https://github.com/urievenchen/speedy-net/blob/master/speedy/net/accounts/
> models.py (it's an open source project; there are other models too), is
> the order of elements in the models correct? Currently the constants are
> first, then class Meta, then fields, then managers, then methods and
> properties (in arbitrary order). What is the common order of elements in
> Django projects? Does it matter at all? I read something about it in Django
> documentation, but I don't remember exactly where. I know the constants
> must be first in the model, before the fields, but what about class Meta?
> Any help will be appreciated.
>
> Thanks,
> Uri.
>
> *Uri Even-Chen*
> [image: photo] Phone: +972-54-3995700
> Email: u...@speedy.net
> Website: http://www.speedysoftware.com/uri/en/
> <http://www.facebook.com/urievenchen>
> <http://plus.google.com/+urievenchen>
> <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEhY-KV7JgxQmPm%2Brpz8iG0cCvYEV0Rn1eykCfkm-wb9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Models of Speedy Net

2016-08-18 Thread Uri Even-Chen
Thank you Asad and Avraham!


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsH2EKQa-7SH0r9GqVvADP7EfcmeKcK_7D%3DSAMTKgUq_kA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


NIST’s new password rules - Digital Authentication Guidelines

2016-09-02 Thread Uri Even-Chen
To Django users,

Did you see this article:
https://nakedsecurity.sophos.com/2016/08/18/nists-new-password-rules-what-you-need-to-know/

Does Django comply with the password guidelines and from which Django
version? Especially regarding the way the passwords are saved. I'm
developing Speedy Net in Django and I want to make sure I can rely on
Django in the way my users' passwords are saved in our database. I also
increased the minimal password length to 8 characters, and removed the
requirement for passwords to be alphanumeric.

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsE6UevA_1X6zODN2%3DmE61%3D-tJGN42j6i%2BM1cZzw4Nkn%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: NIST’s new password rules - Digital Authentication Guidelines

2016-09-04 Thread Uri Even-Chen
Thank you, Tim. Although we are using Django 1.9 and I understand that
passwords are hashed and salted, it's interesting to know which version of
Django was the first one to hash and salt passwords? I didn't find it
documented there.

Thanks,
Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

On Fri, Sep 2, 2016 at 3:35 PM, Tim Graham  wrote:

> Hi,
>
> We have fairly comprehensive documentation about passwords: https://docs.
> djangoproject.com/en/stable/topics/auth/passwords/
>
> Let us know if you have unanswered questions after reading that.
>
> Tim
>
> On Friday, September 2, 2016 at 7:35:03 AM UTC-4, uri wrote:
>>
>> To Django users,
>>
>> Did you see this article: https://nakedsecurity
>> .sophos.com/2016/08/18/nists-new-password-rules-what-you-need-to-know/
>>
>> Does Django comply with the password guidelines and from which Django
>> version? Especially regarding the way the passwords are saved. I'm
>> developing Speedy Net in Django and I want to make sure I can rely on
>> Django in the way my users' passwords are saved in our database. I also
>> increased the minimal password length to 8 characters, and removed the
>> requirement for passwords to be alphanumeric.
>>
>> Thanks,
>> Uri.
>>
>> *Uri Even-Chen*
>> [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> <http://www.facebook.com/urievenchen>
>> <http://plus.google.com/+urievenchen>
>> <http://www.linkedin.com/in/urievenchen>
>> <http://twitter.com/urievenchen>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/dc7489bb-c0d4-49ff-b371-d4958b4bc2ed%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/dc7489bb-c0d4-49ff-b371-d4958b4bc2ed%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHRkV9B67vMT2hqeoQqPc0drUt14dUJU3D%2Bp8oDM2e5RQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: NIST’s new password rules - Digital Authentication Guidelines

2016-09-04 Thread Uri Even-Chen
Thank you, Tim. I appreciate your reply.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

On Sun, Sep 4, 2016 at 9:37 PM, Tim Graham  wrote:

> I suspect passwords were always salted and hashed, though things have
> improved over the years. In particular, PBKDF2 hashing was added in Django
> 1.4:
>
> https://docs.djangoproject.com/en/stable/releases/1.4/#
> improved-password-hashing
>
> On Sunday, September 4, 2016 at 10:58:13 AM UTC-4, uri wrote:
>>
>> Thank you, Tim. Although we are using Django 1.9 and I understand that
>> passwords are hashed and salted, it's interesting to know which version of
>> Django was the first one to hash and salt passwords? I didn't find it
>> documented there.
>>
>> Thanks,
>> Uri.
>>
>>
>> *Uri Even-Chen*
>> [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> <http://www.facebook.com/urievenchen>
>> <http://plus.google.com/+urievenchen>
>> <http://www.linkedin.com/in/urievenchen>
>> <http://twitter.com/urievenchen>
>>
>> On Fri, Sep 2, 2016 at 3:35 PM, Tim Graham  wrote:
>>
>>> Hi,
>>>
>>> We have fairly comprehensive documentation about passwords:
>>> https://docs.djangoproject.com/en/stable/topics/auth/passwords/
>>>
>>> Let us know if you have unanswered questions after reading that.
>>>
>>> Tim
>>>
>>> On Friday, September 2, 2016 at 7:35:03 AM UTC-4, uri wrote:
>>>>
>>>> To Django users,
>>>>
>>>> Did you see this article: https://nakedsecurity
>>>> .sophos.com/2016/08/18/nists-new-password-rules-what-you-need-to-know/
>>>>
>>>> Does Django comply with the password guidelines and from which Django
>>>> version? Especially regarding the way the passwords are saved. I'm
>>>> developing Speedy Net in Django and I want to make sure I can rely on
>>>> Django in the way my users' passwords are saved in our database. I also
>>>> increased the minimal password length to 8 characters, and removed the
>>>> requirement for passwords to be alphanumeric.
>>>>
>>>> Thanks,
>>>> Uri.
>>>>
>>>> *Uri Even-Chen*
>>>> [image: photo] Phone: +972-54-3995700
>>>> Email: u...@speedy.net
>>>> Website: http://www.speedysoftware.com/uri/en/
>>>> <http://www.facebook.com/urievenchen>
>>>> <http://plus.google.com/+urievenchen>
>>>> <http://www.linkedin.com/in/urievenchen>
>>>> <http://twitter.com/urievenchen>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/dc7489bb-c0d4-49ff-b371-d4958b4bc2ed%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/dc7489bb-c0d4-49ff-b371-d4958b4bc2ed%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/4ea4160b-b91e-4f69-8470-c7f88ad7c03e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4ea4160b-b91e-4f69-8470-c7f88ad7c03e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsFyQrgV3JNc%2BUgkpKQYfhgvCFpNn2nPcZ4QZeCRpNUN9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django group email in spam

2016-09-08 Thread Uri Even-Chen
Same here, and the problem is I filtered the group messages to skip my
inbox in Gmail, and I can't filter them never to send them to spam, because
then they will not skip my inbox (it's a bug in Gmail). So I have to enter
my spam folder manually and mark each message as "not spam". By the way,
also messages to Django developers mailing list are marked as spam.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

On Wed, Sep 7, 2016 at 11:05 PM, sylvain_grodes 
wrote:

> Same problem here, I have to check my spam and unset the spam flag.
>
>
>
> Le vendredi 2 septembre 2016 02:12:18 UTC-4, Lachlan Musicman a écrit :
>>
>> Hey,
>>
>> I've been seeing a lot of Django group email going into my spam folder
>> over the last 48 hours.
>>
>> Have there been any changes to the group that may have caused this?
>>
>> cheers
>> L.
>> --
>> The most dangerous phrase in the language is, "We've always done it this
>> way."
>>
>> - Grace Hopper
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/de7b0239-ff49-4c83-acb8-53308a1178e2%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/de7b0239-ff49-4c83-acb8-53308a1178e2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHCqeD8wgg_EEwfj69bwCHBSu8BSDpY09waVbs3zMWRGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Problem with makemigrations on Speedy Composer

2016-12-13 Thread Uri Even-Chen
Dear Django Users,

I'm trying to write the models of Speedy Composer in Django 1.10.4, but I
can't run makemigrations - I get this error message:

speedy\composer>manage.py makemigrations
SystemCheckError: System check identified some issues:

ERRORS:
compose.Composition.accompaniment: (models.E006) The field 'accompaniment'
clashes with the field 'accompaniment' from model
'compose.speedycomposernamedentity'.
compose.Composition.folder: (models.E006) The field 'folder' clashes with
the field 'folder' from model 'compose.speedycomposernamedentity'.
compose.Composition.user: (models.E006) The field 'user' clashes with the
field 'user' from model 'accounts.entity'.
compose.Folder.user: (models.E006) The field 'user' clashes with the field
'user' from model 'accounts.entity'.

This is my new models.py file of my new app, speedy.composer.compose (from
PyCharm):

from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _

from speedy.net.accounts.models import NamedEntity


class SpeedyComposerNamedEntity(NamedEntity):
MIN_USERNAME_LENGTH = 1
MAX_USERNAME_LENGTH = 200
MIN_SLUG_LENGTH = 1
MAX_SLUG_LENGTH = 200
MIN_NAME_LENGTH = 1
MAX_NAME_LENGTH = 200

def __str__(self):
return '{}'.format(self.name)


class ChordsTemplate(SpeedyComposerNamedEntity):

class Meta:
verbose_name = _('chords template')
verbose_name_plural = _('chords templates')


class Accompaniment(SpeedyComposerNamedEntity):

class Meta:
verbose_name = _('accompaniment')
verbose_name_plural = _('accompaniments')


class Folder(SpeedyComposerNamedEntity):
user = models.ForeignKey(verbose_name=_('user'),
to=settings.AUTH_USER_MODEL, related_name='+')

class Meta:
verbose_name = _('folder')
verbose_name_plural = _('folders')


class Composition(SpeedyComposerNamedEntity):
user = models.ForeignKey(verbose_name=_('user'),
to=settings.AUTH_USER_MODEL, related_name='+')
folder = models.ForeignKey(verbose_name=_('folder'), to=Folder,
related_name='+')
chords_template = models.ForeignKey(verbose_name=_('chords
template'), to=ChordsTemplate, related_name='+')
accompaniment = models.ForeignKey(verbose_name=_('accompaniment'),
to=Accompaniment, related_name='+')
tempo = models.SmallIntegerField(verbose_name=_('tempo'), default=105)
public = models.BooleanField(verbose_name=_('public'), default=False)

class Meta:
verbose_name = _('composition')
verbose_name_plural = _('compositions')

You can see the speedy.net code on GitHub:
https://github.com/urievenchen/speedy-net

What did I do wrong? Did I write the models wrongly?

Thanks,

Uri.

 *Uri Even-Chen*

[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGdLb%2BHXtGF4ss_vDb_fsW%3DHv4e5e%3DUskbBJfzt3CFunw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with makemigrations on Speedy Composer

2016-12-13 Thread Uri Even-Chen
Why does it have to be abstract? NamedEntity and Entity are also not
abstract.

https://github.com/urievenchen/speedy-net/blob/master/speedy/net/accounts/models.py

Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

On Tue, Dec 13, 2016 at 5:56 PM, GMail  wrote:

> Hi!
>
> First guess - SpeedyComposerNamedEntity is not an abstract model. Meta is
> not inherited from NamedEntity, you have to do that explicitly:
>
> class SpeedyComposerNamedEntity(NamedEntity):
> ...
>
> class Meta(NamedEntity.Meta):
>     pass
>
> ...
>
>
> On 13 Dec 2016, at 18:30, Uri Even-Chen  wrote:
>
> Dear Django Users,
>
> I'm trying to write the models of Speedy Composer in Django 1.10.4, but I
> can't run makemigrations - I get this error message:
>
> speedy\composer>manage.py makemigrations
> SystemCheckError: System check identified some issues:
>
> ERRORS:
> compose.Composition.accompaniment: (models.E006) The field
> 'accompaniment' clashes with the field 'accompaniment' from model 'compose.
> speedycomposernamedentity'.
> compose.Composition.folder: (models.E006) The field 'folder' clashes with
> the field 'folder' from model 'compose.speedycomposernamedentity'.
> compose.Composition.user: (models.E006) The field 'user' clashes with the
> field 'user' from model 'accounts.entity'.
> compose.Folder.user: (models.E006) The field 'user' clashes with the field
> 'user' from model 'accounts.entity'.
>
> This is my new models.py file of my new app, speedy.composer.compose (from
> PyCharm):
>
> from django.conf import settings
> from django.db import models
> from django.utils.translation import ugettext_lazy as _
>
> from speedy.net.accounts.models import NamedEntity
>
>
> class SpeedyComposerNamedEntity(NamedEntity):
> MIN_USERNAME_LENGTH = 1
> MAX_USERNAME_LENGTH = 200
> MIN_SLUG_LENGTH = 1
> MAX_SLUG_LENGTH = 200
> MIN_NAME_LENGTH = 1
> MAX_NAME_LENGTH = 200
>
> def __str__(self):
> return '{}'.format(self.name)
>
>
> class ChordsTemplate(SpeedyComposerNamedEntity):
>
> class Meta:
> verbose_name = _('chords template')
> verbose_name_plural = _('chords templates')
>
>
> class Accompaniment(SpeedyComposerNamedEntity):
>
> class Meta:
> verbose_name = _('accompaniment')
> verbose_name_plural = _('accompaniments')
>
>
> class Folder(SpeedyComposerNamedEntity):
> user = models.ForeignKey(verbose_name=_('user'), 
> to=settings.AUTH_USER_MODEL, related_name='+')
>
> class Meta:
> verbose_name = _('folder')
> verbose_name_plural = _('folders')
>
>
> class Composition(SpeedyComposerNamedEntity):
> user = models.ForeignKey(verbose_name=_('user'), 
> to=settings.AUTH_USER_MODEL, related_name='+')
> folder = models.ForeignKey(verbose_name=_('folder'), to=Folder, 
> related_name='+')
> chords_template = models.ForeignKey(verbose_name=_('chords template'), 
> to=ChordsTemplate, related_name='+')
> accompaniment = models.ForeignKey(verbose_name=_('accompaniment'), 
> to=Accompaniment, related_name='+')
> tempo = models.SmallIntegerField(verbose_name=_('tempo'), default=105)
> public = models.BooleanField(verbose_name=_('public'), default=False)
>
> class Meta:
> verbose_name = _('composition')
> verbose_name_plural = _('compositions')
>
> You can see the speedy.net code on GitHub: 
> https://github.com/urievenchen/speedy-net
>
> What did I do wrong? Did I write the models wrongly?
>
> Thanks,
>
> Uri.
>
>  *Uri Even-Chen*
>
> [image: photo] Phone: +972-54-3995700
> Email: u...@speedy.net
> Website: http://www.speedysoftware.com/uri/en/
> <http://www.facebook.com/urievenchen>
> <http://plus.google.com/+urievenchen>
> <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
> <http://twitter.com/urievenchen>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and 

Re: Problem with makemigrations on Speedy Composer

2016-12-13 Thread Uri Even-Chen
If I set SpeedyComposerNamedEntity to be abstract (which makes sense, there
will not be objects of it), I get this error message:

peedy\composer>manage.py makemigrations
SystemCheckError: System check identified some issues:

ERRORS:
compose.Composition.accompaniment: (models.E006) The field 'accompaniment'
clashes with the field 'accompaniment' from model 'accounts.namedentity'.
compose.Composition.folder: (models.E006) The field 'folder' clashes with
the field 'folder' from model 'accounts.namedentity'.
compose.Composition.user: (models.E006) The field 'user' clashes with the
field 'user' from model 'accounts.entity'.
compose.Folder.user: (models.E006) The field 'user' clashes with the field
'user' from model 'accounts.entity'.

And if I set NamedEntity to be abstract, I get this error message:

speedy\composer>manage.py makemigrations
SystemCheckError: System check identified some issues:

ERRORS:
compose.Composition.accompaniment: (models.E006) The field 'accompaniment'
clashes with the field 'accompaniment' from model 'accounts.entity'.
compose.Composition.folder: (models.E006) The field 'folder' clashes with
the field 'folder' from model 'accounts.entity'.
compose.Composition.user: (models.E006) The field 'user' clashes with the
field 'user' from model 'accounts.entity'.
compose.Folder.user: (models.E006) The field 'user' clashes with the field
'user' from model 'accounts.entity'.

Entity can't be abstract because it contains all the entities and usernames
on the database, it must have a table.

Thanks,
Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

On Tue, Dec 13, 2016 at 5:56 PM, GMail  wrote:

> Hi!
>
> First guess - SpeedyComposerNamedEntity is not an abstract model. Meta is
> not inherited from NamedEntity, you have to do that explicitly:
>
> class SpeedyComposerNamedEntity(NamedEntity):
> ...
>
> class Meta(NamedEntity.Meta):
> pass
>
> ...
>
>
> On 13 Dec 2016, at 18:30, Uri Even-Chen  wrote:
>
> Dear Django Users,
>
> I'm trying to write the models of Speedy Composer in Django 1.10.4, but I
> can't run makemigrations - I get this error message:
>
> speedy\composer>manage.py makemigrations
> SystemCheckError: System check identified some issues:
>
> ERRORS:
> compose.Composition.accompaniment: (models.E006) The field
> 'accompaniment' clashes with the field 'accompaniment' from model 'compose.
> speedycomposernamedentity'.
> compose.Composition.folder: (models.E006) The field 'folder' clashes with
> the field 'folder' from model 'compose.speedycomposernamedentity'.
> compose.Composition.user: (models.E006) The field 'user' clashes with the
> field 'user' from model 'accounts.entity'.
> compose.Folder.user: (models.E006) The field 'user' clashes with the field
> 'user' from model 'accounts.entity'.
>
> This is my new models.py file of my new app, speedy.composer.compose (from
> PyCharm):
>
> from django.conf import settings
> from django.db import models
> from django.utils.translation import ugettext_lazy as _
>
> from speedy.net.accounts.models import NamedEntity
>
>
> class SpeedyComposerNamedEntity(NamedEntity):
> MIN_USERNAME_LENGTH = 1
> MAX_USERNAME_LENGTH = 200
> MIN_SLUG_LENGTH = 1
> MAX_SLUG_LENGTH = 200
> MIN_NAME_LENGTH = 1
> MAX_NAME_LENGTH = 200
>
> def __str__(self):
> return '{}'.format(self.name)
>
>
> class ChordsTemplate(SpeedyComposerNamedEntity):
>
> class Meta:
> verbose_name = _('chords template')
> verbose_name_plural = _('chords templates')
>
>
> class Accompaniment(SpeedyComposerNamedEntity):
>
> class Meta:
> verbose_name = _('accompaniment')
> verbose_name_plural = _('accompaniments')
>
>
> class Folder(SpeedyComposerNamedEntity):
> user = models.ForeignKey(verbose_name=_('user'), 
> to=settings.AUTH_USER_MODEL, related_name='+')
>
> class Meta:
> verbose_name = _('folder')
> verbose_name_plural = _('folders')
>
>
> class Composition(SpeedyCom

Problem with views when I try to move urls to a new app (folder)

2016-12-14 Thread Uri Even-Chen
Dear Django Users,

I'm trying to move the main view into a new main app (folder) inside
speedy/mail. Currently the file urls.py is like this:

from django.conf import settings
from django.conf.urls import url, include
from . import views
from django.conf.urls.static import static
urlpatterns = [
url(r'^feedback/', include('speedy.net.feedback.urls', namespace='feedback'
)),
url(r'^', views.MainPageView.as_view(), name='main_page_view'),
]
if settings.DEBUG:
urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
+ urlpatterns
try:
import debug_toolbar
urlpatterns += [
url(r'^__debug__/', include(debug_toolbar.urls)),
]
except ImportError:
pass

Now I want to move the main page url & view to speedy/mail/main/urls.py and
views.py. Now the urls.py is like this:

from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls.static import static

urlpatterns = [
url(r'^feedback/', include('speedy.net.feedback.urls',
namespace='feedback')),
url(r'', include('speedy.mail.main.urls', namespace='main')),
]

if settings.DEBUG:
urlpatterns = static(settings.MEDIA_URL,
document_root=settings.MEDIA_ROOT) + urlpatterns

try:
import debug_toolbar
urlpatterns += [
url(r'^__debug__/', include(debug_toolbar.urls)),
]
except ImportError:
pass


And speedy/mail/main/urls.py is like this:


from django.conf.urls import url

from . import views

urlpatterns = [
url(r'', views.MainPageView.as_view(), name='main_page_view'),
]


But the problem is it doesn't work, I get this error message:

DoesNotExist at /

Site matching query does not exist.

I also tried with r'^' instead of r'' but it still doesn't work. What did I
do wrong?

Thanks,
Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGcTG1%3D%3D7z1z1Y1F9r-d6PggJeYJD63%3DzQe%3DDU%3DhSNW9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with views when I try to move urls to a new app (folder)

2016-12-14 Thread Uri Even-Chen
Hi,

I found the problem, I had a problem with the local database. Now it works.

Thanks,
Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

On Wed, Dec 14, 2016 at 4:31 PM, Uri Even-Chen  wrote:

> Dear Django Users,
>
> I'm trying to move the main view into a new main app (folder) inside
> speedy/mail. Currently the file urls.py is like this:
>
> from django.conf import settings
> from django.conf.urls import url, include
> from . import views
> from django.conf.urls.static import static
> urlpatterns = [
> url(r'^feedback/', include('speedy.net.feedback.urls', namespace='feedback
> ')),
> url(r'^', views.MainPageView.as_view(), name='main_page_view'),
> ]
> if settings.DEBUG:
> urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
> + urlpatterns
> try:
> import debug_toolbar
> urlpatterns += [
> url(r'^__debug__/', include(debug_toolbar.urls)),
> ]
> except ImportError:
> pass
>
> Now I want to move the main page url & view to speedy/mail/main/urls.py
> and views.py. Now the urls.py is like this:
>
> from django.conf import settings
> from django.conf.urls import url, include
> from django.conf.urls.static import static
>
> urlpatterns = [
> url(r'^feedback/', include('speedy.net.feedback.urls', 
> namespace='feedback')),
> url(r'', include('speedy.mail.main.urls', namespace='main')),
> ]
>
> if settings.DEBUG:
> urlpatterns = static(settings.MEDIA_URL, 
> document_root=settings.MEDIA_ROOT) + urlpatterns
>
> try:
> import debug_toolbar
> urlpatterns += [
> url(r'^__debug__/', include(debug_toolbar.urls)),
> ]
> except ImportError:
> pass
>
>
> And speedy/mail/main/urls.py is like this:
>
>
> from django.conf.urls import url
>
> from . import views
>
> urlpatterns = [
> url(r'', views.MainPageView.as_view(), name='main_page_view'),
> ]
>
>
> But the problem is it doesn't work, I get this error message:
>
> DoesNotExist at /
>
> Site matching query does not exist.
>
> I also tried with r'^' instead of r'' but it still doesn't work. What did
> I do wrong?
>
> Thanks,
> Uri.
>
>
> *Uri Even-Chen*
> [image: photo] Phone: +972-54-3995700
> Email: u...@speedy.net
> Website: http://www.speedysoftware.com/uri/en/
> <http://www.facebook.com/urievenchen>
> <http://plus.google.com/+urievenchen>
> <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
> <http://twitter.com/urievenchen>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsFwDWd%3DgeOLC%2Bm8hjgvM%3Dfoq39uoOrBZ%3DGmPiJmF5ouow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How do you recommend to use Hebrew gender-related translations?

2016-12-22 Thread Uri Even-Chen
Hi Django users,

How do you recommend to use Hebrew gender-related translations?

For example, here are the choices for diet in Speedy Net (notice it's
currently only used in Speedy Match, but it's part of the profile of Speedy
Net):

```
class User(Entity, PermissionsMixin, AbstractBaseUser):

GENDER_FEMALE = 1
GENDER_MALE = 2
GENDER_OTHER = 3
GENDER_CHOICES = (
(GENDER_FEMALE, _('Female')),
(GENDER_MALE, _('Male')),
(GENDER_OTHER, _('Other')),
)

DIET_UNKNOWN   = 0
DIET_VEGAN  = 1
DIET_VEGETARIAN = 2
DIET_CARNIST= 3
DIET_CHOICES = (
(DIET_UNKNOWN, _('Please select...')),
(DIET_VEGAN, _('Vegan (eats only plants and fungi)')),
(DIET_VEGETARIAN, _('Vegetarian (doesn\'t eat fish and meat)')),
(DIET_CARNIST, _('Carnist (eats animals)'))
)

gender = models.SmallIntegerField(verbose_name=_('I am'),
choices=GENDER_CHOICES)
diet = models.SmallIntegerField(verbose_name=_('diet'),
choices=DIET_CHOICES, default=DIET_UNKNOWN)
```

And here are the translations:
```
#: .\accounts\models.py:151
msgid "Vegan (eats only plants and fungi)"
msgstr "טבעוני/ת (אוכל/ת רק צמחים ופטריות)"

#: .\accounts\models.py:152
msgid "Vegetarian (doesn't eat fish and meat)"
msgstr "צמחוני/ת (לא אוכל/ת דגים ובשר)"

#: .\accounts\models.py:153
msgid "Carnist (eats animals)"
msgstr "קרניסט/ית (אוכל/ת חיות)"
```

The correct translations in Hebrew are per gender (female, male or other)
but in English they are the same. How do you recommend to program it? I
thought about adding " [female]", " [male]" or " [other]" suffixes to the
strings and then removing them in the English translations. But then
English would also require a translation. Is there a better approach? And
how do I write the model when this feature is gender-related?

The same question is related to any site which has a language where the
text is gender-related, and a language where it is not.

You can see the code on GitHub: https://github.com/urievenchen/speedy-net

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGv_fvj6ijM4rb-Y7XfQeGbPJvd38_7o_LYbiukuhxyrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How do I translate site.name to other languages?

2016-12-22 Thread Uri Even-Chen
Hi Django users,

We have our site.name and other site names (we have 4 sites in Django right
now) in templates such as base.html. The site is taken from model Site
(```from django.contrib.sites.models import Site```). In templates we just
use "{{ site.name }}" or "{{ other_site.name }}". How do we translate these
site names to other languages? What is the correct way? Currently I only
need the site names in English and Hebrew, but maybe later I will want
other languages too.

Our settings file translates the site title. Is it better to translate it
in the templates? Because we don't want to translate it twice. If the site
title is not defined, the default is the site name (which we want for 2 of
our sites). But we need it translated.

from django.conf import settings as dj_settings
from django.contrib.sites.models import Site


def sites(request):
site = Site.objects.get_current()
site_title = site.name
if hasattr(dj_settings, 'SITE_TITLE'):
site_title = dj_settings.SITE_TITLE
return {
'site': site,
'site_title': site_title,
'sites': Site.objects.all().order_by('pk'),
}


You can see the code on GitHub: https://github.com/urievenchen/speedy-net

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHRPzzdGVcQi1D0g%2BPe6GS0gjhbZaEOrUvH0-PMGq%3DdRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do you recommend to use Hebrew gender-related translations?

2016-12-25 Thread Uri Even-Chen
Thanks, I think contextual markers is a solution, where they can be either
"female", "male" or "other".


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

On Thu, Dec 22, 2016 at 10:10 PM, Avraham Serour  wrote:

> maybe translation context?
> https://docs.djangoproject.com/en/dev/topics/i18n/translation/#contextual-
> markers
>
>
> On Thu, Dec 22, 2016 at 9:29 PM, Fergus Cameron 
> wrote:
>
>> I personally try to use language agnostic message IDs and translate
>> everything (i.e. including English).  Your idea of appending the
>> gender is along the same lines and seems logical.
>>
>> On 22/12/2016, Uri Even-Chen  wrote:
>> > Hi Django users,
>> >
>> > How do you recommend to use Hebrew gender-related translations?
>> >
>> > For example, here are the choices for diet in Speedy Net (notice it's
>> > currently only used in Speedy Match, but it's part of the profile of
>> Speedy
>> > Net):
>> >
>> > ```
>> > class User(Entity, PermissionsMixin, AbstractBaseUser):
>> > 
>> > GENDER_FEMALE = 1
>> > GENDER_MALE = 2
>> > GENDER_OTHER = 3
>> > GENDER_CHOICES = (
>> > (GENDER_FEMALE, _('Female')),
>> > (GENDER_MALE, _('Male')),
>> > (GENDER_OTHER, _('Other')),
>> > )
>> >
>> > DIET_UNKNOWN   = 0
>> > DIET_VEGAN  = 1
>> > DIET_VEGETARIAN = 2
>> > DIET_CARNIST= 3
>> > DIET_CHOICES = (
>> > (DIET_UNKNOWN, _('Please select...')),
>> > (DIET_VEGAN, _('Vegan (eats only plants and fungi)')),
>> > (DIET_VEGETARIAN, _('Vegetarian (doesn\'t eat fish and meat)')),
>> > (DIET_CARNIST, _('Carnist (eats animals)'))
>> > )
>> > 
>> > gender = models.SmallIntegerField(verbose_name=_('I am'),
>> > choices=GENDER_CHOICES)
>> > diet = models.SmallIntegerField(verbose_name=_('diet'),
>> > choices=DIET_CHOICES, default=DIET_UNKNOWN)
>> > ```
>> >
>> > And here are the translations:
>> > ```
>> > #: .\accounts\models.py:151
>> > msgid "Vegan (eats only plants and fungi)"
>> > msgstr "טבעוני/ת (אוכל/ת רק צמחים ופטריות)"
>> >
>> > #: .\accounts\models.py:152
>> > msgid "Vegetarian (doesn't eat fish and meat)"
>> > msgstr "צמחוני/ת (לא אוכל/ת דגים ובשר)"
>> >
>> > #: .\accounts\models.py:153
>> > msgid "Carnist (eats animals)"
>> > msgstr "קרניסט/ית (אוכל/ת חיות)"
>> > ```
>> >
>> > The correct translations in Hebrew are per gender (female, male or
>> other)
>> > but in English they are the same. How do you recommend to program it? I
>> > thought about adding " [female]", " [male]" or " [other]" suffixes to
>> the
>> > strings and then removing them in the English translations. But then
>> > English would also require a translation. Is there a better approach?
>> And
>> > how do I write the model when this feature is gender-related?
>> >
>> > The same question is related to any site which has a language where the
>> > text is gender-related, and a language where it is not.
>> >
>> > You can see the code on GitHub: https://github.com/urievenchen
>> /speedy-net
>> >
>> > Thanks,
>> > Uri.
>> >
>> > *Uri Even-Chen*
>> > [image: photo] Phone: +972-54-3995700
>> > Email: u...@speedy.net
>> > Website: http://www.speedysoftware.com/uri/en/
>> > <http://www.facebook.com/urievenchen>
>> > <http://plus.google.com/+urievenchen>
>> >   <http://www.linkedin.com/in/urievenchen>  <
>> http://github.com/urievenchen>
>> > <http://twitter.com/urievenchen>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Django users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> > em

Re: How do I translate site.name to other languages?

2016-12-26 Thread Uri Even-Chen
Thank you!


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

On Mon, Dec 26, 2016 at 1:00 AM, Melvyn Sopacua 
wrote:

> Hi Uri,
>
>
>
> On Thursday 22 December 2016 19:40:15 Uri Even-Chen wrote:
>
>
>
> > We have our site.name and other site names (we have 4 sites in Django
>
> > right now) in templates such as base.html. The site is taken from
>
> > model Site (```from django.contrib.sites.models import Site```).
>
>
>
> Untested, but since Site is a Django Model, have a look at Django Model
> Translation
> <http://django-modeltranslation.readthedocs.io/en/stable/registration.html>.
> I suspect once you get the idea, you'll use it throughout the project.
>
> --
>
> Melvyn Sopacua
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/1672133.RzSWr4WvZz%40devstation
> <https://groups.google.com/d/msgid/django-users/1672133.RzSWr4WvZz%40devstation?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHW7MF%3D_r5_X69NpKYSw7KXsP6ohLaW1QZjLK1oGF0_UQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I translate site.name to other languages?

2016-12-29 Thread Uri Even-Chen
Hi,

with django-modeltranslation you can add translations to any model, even if
it's built-in in Django, but the problem is that migrations are being
created in site-packages, outside our git repo, and this would cause issues
upgrading Django itself.

(speedy_net)net$ ./manage.py makemigrations
Migrations for 'sites':

/Users/xtr/.virtualenvs/speedy_net/lib/python3.5/site-packages/django/contrib/sites/migrations/0003_auto_20161229_1018.py:
- Change managers on site
- Add field name_en to site
- Add field name_he to site

Is there a way to move the migrations to inside our git repo?

Thanks,
Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

On Mon, Dec 26, 2016 at 1:00 AM, Melvyn Sopacua 
wrote:

> Hi Uri,
>
>
>
> On Thursday 22 December 2016 19:40:15 Uri Even-Chen wrote:
>
>
>
> > We have our site.name and other site names (we have 4 sites in Django
>
> > right now) in templates such as base.html. The site is taken from
>
> > model Site (```from django.contrib.sites.models import Site```).
>
>
>
> Untested, but since Site is a Django Model, have a look at Django Model
> Translation
> <http://django-modeltranslation.readthedocs.io/en/stable/registration.html>.
> I suspect once you get the idea, you'll use it throughout the project.
>
> --
>
> Melvyn Sopacua
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/1672133.RzSWr4WvZz%40devstation
> <https://groups.google.com/d/msgid/django-users/1672133.RzSWr4WvZz%40devstation?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsH6ZqiK7voGAWhuQedzZPcLV7KX_Ri%3DJxwFmBhGZfosWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Subdomains

2017-02-09 Thread Uri Even-Chen
in Speedy Net we have a subdomain for each language, you can see how it
works. Only the domain (speedy.net) is defined in the database, any
subdomain redirects to one of the defined subdomains. You can check your
database for username and display data according to the user when the
subdomain is a username on your system (or any subdomain you define per
user).

https://github.com/urievenchen/speedy-net


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

On Thu, Feb 9, 2017 at 5:43 PM, Omar Sarmiento Rolo 
wrote:

> Hi, I need to make in my web dinamic subdomain, a subdomain for each user,
> but I have no idea how make it
>
> I am using the Site Framework but it does work for subdomain, just Domain,
> at least for me!, I am using Django 1.10 in Windows 7, I have been seing
> the django-subdomains but it does work for Django 1.10, some idea? I dont
> know what to do, grettings
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/eb2ae5f6-ca34-415c-8e6f-a7e094d080db%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/eb2ae5f6-ca34-415c-8e6f-a7e094d080db%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEy9QyN5vh43i44g3WUOzkz-K3nFcSBdjhiFeaHtZbreA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django context translations with dynamic variables

2017-03-02 Thread Uri Even-Chen
Hi,

I'm working with Gleb on Speedy Match [
https://github.com/urievenchen/speedy-net]. We need to translate to Hebrew
according to context of the user's gender. Gleb suggested that the code
will be something like this:

{% if user.gender == GENDER_FEMALE %}
{% trans 'This user blocked you.' context 'female' %}
{% elif user.gender == GENDER_MALE  %}
{% trans 'This user blocked you.' context 'male' %}
{% else %}
{% trans 'This user blocked you.' context 'other' %}
{% endif %}


But, is it possible to change it to something like this:

{% trans 'This user blocked you.' context user.gender %}

While still auto-generate the django.po files? Genders are always either
"female", "male" or "other". But some text may be related to genders of 2
users - the one using the site right now and another user. How do we do it
then? I was thinking about context like "female_female", "female_male" etc.
Anyway we don't want the templates to include many times the same text (3
or 9 times), we prefer that each text will appear only once.

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

On Wed, Mar 1, 2017 at 4:15 PM, Jani Tiainen  wrote:

> In theory you just define genders to your PO file with translations and it
> should work.
>
> Not sure will that disable autogeneration and update for your PO file
> after that.
> On 01.03.2017 14:59, Gleb Tocarenco wrote:
>
> Hello,
>
> I am running in with an issue with Django translation tag in case context
> is present as a dynamic variable.
>
> {% trans 'You have new message' context user.gender %}
>
>
> In this case django.po files doesn't contains words related to gender
> context.
>
> My question is if there is possibility to use context in translation tag
> as dynamic variable and generate django.po records based on it?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> <https://groups.google.com/d/msgid/django-users/5c01a596-23a2-418f-9045-44a947efde0d%40googlegroups.com?utm_medium=email&utm_source=footer>
> https://groups.google.com/d/msgid/django-users/5c01a596-
> 23a2-418f-9045-44a947efde0d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Jani Tiainen
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/269918e9-6e13-5967-3b8b-fc3ec8028a4c%40gmail.com
> <https://groups.google.com/d/msgid/django-users/269918e9-6e13-5967-3b8b-fc3ec8028a4c%40gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsG8J0aTnmGoqvVZhDQ9sE5YE3iuZmtqvtYPNgAPiuBPFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django context translations with dynamic variables

2017-03-02 Thread Uri Even-Chen
What if we "cheat" makemessages like this:

{% if 0 %}
{% trans 'This user blocked you.' context 'female' %}
{% trans 'This user blocked you.' context 'male' %}
{% trans 'This user blocked you.' context 'other' %}
{% endif %}

{% trans 'This user blocked you.' context user.gender %}

(or maybe we should filter user.gender with a filter that returns "female",
"male" or "other" (because they are integers).

It looks better to me and less work to "cheat" makemessages like this,
unless there is a better solution? Because translations which don't exist
in the code will be commented every time we run makemessages. Maybe this is
a feature we can add to the next Django release? And then we will not have
to "cheat"?

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

On Thu, Mar 2, 2017 at 4:00 PM, Jani Tiainen  wrote:

> Unfortunately makemessages can't guess what your context is if it's
> variable (I'm not sure would it even consider it as a translatable text at
> all)
> First version would guarantee you to have translatable strings with
> genders, latter one either generates one string (and you have to manually
> create missing ones) or it won't find it at all.
>
> You could test that very quickly with simple template with given fragments.
>
>
> On 02.03.2017 14:59, Uri Even-Chen wrote:
>
> Hi,
>
> I'm working with Gleb on Speedy Match [
> <https://github.com/urievenchen/speedy-net>https://github.com/
> urievenchen/speedy-net]. We need to translate to Hebrew according to
> context of the user's gender. Gleb suggested that the code will be
> something like this:
>
> {% if user.gender == GENDER_FEMALE %}
> {% trans 'This user blocked you.' context 'female' %}{% elif user.gender 
> == GENDER_MALE  %}
> {% trans 'This user blocked you.' context 'male' %}
> {% else %}
> {% trans 'This user blocked you.' context 'other' %}
> {% endif %}
>
>
> But, is it possible to change it to something like this:
>
> {% trans 'This user blocked you.' context user.gender %}
>
> While still auto-generate the django.po files? Genders are always either
> "female", "male" or "other". But some text may be related to genders of 2
> users - the one using the site right now and another user. How do we do it
> then? I was thinking about context like "female_female", "female_male" etc.
> Anyway we don't want the templates to include many times the same text (3
> or 9 times), we prefer that each text will appear only once.
>
> Thanks,
> Uri.
>
> *Uri Even-Chen*
> [image: photo] Phone: +972-54-3995700
> Email: u...@speedy.net
> Website: <http://www.speedysoftware.com/uri/en/>
> http://www.speedysoftware.com/uri/en/
> <http://www.facebook.com/urievenchen>
> <http://plus.google.com/+urievenchen>
> <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
> <http://twitter.com/urievenchen>
>
> On Wed, Mar 1, 2017 at 4:15 PM, Jani Tiainen  wrote:
>
>> In theory you just define genders to your PO file with translations and
>> it should work.
>>
>> Not sure will that disable autogeneration and update for your PO file
>> after that.
>> On 01.03.2017 14:59, Gleb Tocarenco wrote:
>>
>> Hello,
>>
>> I am running in with an issue with Django translation tag in case context
>> is present as a dynamic variable.
>>
>> {% trans 'You have new message' context user.gender %}
>>
>>
>> In this case django.po files doesn't contains words related to gender
>> context.
>>
>> My question is if there is possibility to use context in translation tag
>> as dynamic variable and generate django.po records based on it?
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to 
>> django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web vi

Re: Django context translations with dynamic variables

2017-03-02 Thread Uri Even-Chen
>
>
> Then makemessages should generate a string with msgctxt for each of the
> choices. You could do this already, by rolling your own "trans" tag and
> "makemessages" command.
>
>
> I don't understand, how can I do it already? I want makemessages to
generate a string with all the possible contexts (which may be for example
3 options or 9), and not to have to "cheat" it by {% if 0 %} etc. But how
do I do it? By the way where is the makemessages code?

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700 <+972-54-3995700>
Email: u...@speedy.net 
Website: http://www.speedysoftware.com/uri/en/
<http://www.speedysoftware.com/uri/en/>
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHFyBP1CJzojXFDKx_vUsNXsUq08nSNOVtLb6%2BM1EY-1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django context translations with dynamic variables

2017-03-03 Thread Uri Even-Chen
Thank you Melvyn and Jani!

Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEvLCP_sdfLtDuv8dW_ij_xqVZo3EWw3q0tn8E0gGHxqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Warning while upgrading Django to 1.11.3

2017-07-27 Thread Uri Even-Chen
Hi friends,

I upgraded Django from 1.10.7 to 1.11.3 and I got these warnings while
running tests:

speedy\match>manage.py test
Creating test database for alias 'default'...
System check identified some issues:

WARNINGS:
?: (urls.W005) URL namespace 'about' isn't unique. You may not be able to
reverse all URLs in this namespace
?: (urls.W005) URL namespace 'djdt' isn't unique. You may not be able to
reverse all URLs in this namespace
?: (urls.W005) URL namespace 'feedback' isn't unique. You may not be able
to reverse all URLs in this namespace
?: (urls.W005) URL namespace 'privacy' isn't unique. You may not be able to
reverse all URLs in this namespace
?: (urls.W005) URL namespace 'terms' isn't unique. You may not be able to
reverse all URLs in this namespace

System check identified 5 issues (0 silenced).
...
--
Ran 255 tests in 69.046s

OK
Destroying test database for alias 'default'...

What is the problem and how do I fix it?

The urls.py file is here:
https://github.com/urievenchen/speedy-net/blob/master/speedy/match/urls.py
and here:
https://github.com/urievenchen/speedy-net/blob/master/speedy/core/urls.py

I get this warning only in speedy.match. In speedy.net I don't get it.

https://travis-ci.org/urievenchen/speedy-net/jobs/258106853

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen> <http://plus.google.com/+urievenchen>
<http://www.linkedin.com/in/urievenchen> <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEn1UaJS_-s5kFTEDVavG7c6c6Sy%2B7ceSzOms6b%2B1VmYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Warning while upgrading Django to 1.11.3

2017-07-27 Thread Uri Even-Chen
Thank you Andréas, this is a bug! I didn't notice it. I'll remove it.

Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen> <http://plus.google.com/+urievenchen>
<http://www.linkedin.com/in/urievenchen> <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

On Thu, Jul 27, 2017 at 3:31 PM, Andréas Kühne 
wrote:

> Hi,
>
> In your match urls file, you include urlpatterns twice.
>
> urlpatterns += [
> url(r'^matches/', include('speedy.match.matches.urls',
> namespace='matches')),
> url(r'^', include('speedy.match.accounts.urls', namespace='accounts')),
> url(r'^admin/', admin.site.urls),
> url(r'^i18n/', include('django.conf.urls.i18n')),
> # always at the bottom
> url(r'^(?P[-\._\w]+)/friends/', include('speedy.core.friends.urls',
> namespace='friends')),
> url(r'^messages/', include('speedy.core.im.urls_private',
> namespace='im')),
> url(r'^messages/(?P[-\._\w]+)/', include('speedy.core.im.urls_public',
> namespace='im_entity')),
> url(r'^(?P[-\._\w]+)/blocks/', include('speedy.core.blocks.urls',
> namespace='blocks')),
> url(r'^(?P[-\._\w]+)/likes/', include('speedy.match.likes.urls',
> namespace='likes')),
> url(r'^uploads/', include('speedy.core.uploads.urls',
> namespace='uploads')),
> url(r'^', include('speedy.core.profiles.urls', namespace='profiles')),
> ] + urlpatterns
>
> You do "urlpatterns +=" and then add urlpatterns at the end as well. I
> would recommend that you remove the urlpatterns at the end.
>
> Regards,
>
> Andréas
>
> 2017-07-27 13:52 GMT+02:00 Uri Even-Chen :
>
>> Hi friends,
>>
>> I upgraded Django from 1.10.7 to 1.11.3 and I got these warnings while
>> running tests:
>>
>> speedy\match>manage.py test
>> Creating test database for alias 'default'...
>> System check identified some issues:
>>
>> WARNINGS:
>> ?: (urls.W005) URL namespace 'about' isn't unique. You may not be able to
>> reverse all URLs in this namespace
>> ?: (urls.W005) URL namespace 'djdt' isn't unique. You may not be able to
>> reverse all URLs in this namespace
>> ?: (urls.W005) URL namespace 'feedback' isn't unique. You may not be able
>> to reverse all URLs in this namespace
>> ?: (urls.W005) URL namespace 'privacy' isn't unique. You may not be able
>> to reverse all URLs in this namespace
>> ?: (urls.W005) URL namespace 'terms' isn't unique. You may not be able to
>> reverse all URLs in this namespace
>>
>> System check identified 5 issues (0 silenced).
>> 
>> 
>> ........
>> 
>> ...
>> --
>> Ran 255 tests in 69.046s
>>
>> OK
>> Destroying test database for alias 'default'...
>>
>> What is the problem and how do I fix it?
>>
>> The urls.py file is here: https://github.com/uriev
>> enchen/speedy-net/blob/master/speedy/match/urls.py and here:
>> https://github.com/urievenchen/speedy-net/blob/master/speedy/core/urls.py
>>
>> I get this warning only in speedy.match. In speedy.net I don't get it.
>>
>> https://travis-ci.org/urievenchen/speedy-net/jobs/258106853
>>
>> Thanks,
>> Uri.
>>
>> *Uri Even-Chen*
>> [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> <http://www.facebook.com/urievenchen>
>> <http://plus.google.com/+urievenchen>
>> <http://www.linkedin.com/in/urievenchen> <http://github.com/urievenchen>
>> <http://twitter.com/urievenchen>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>>

Problems with ModelForm which edits fields in 2 models

2017-07-28 Thread Uri Even-Chen
 _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\base.py", line 68, in
view
return self.dispatch(request, *args, **kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\contrib\auth\mixins.py", line 56,
in dispatch
return super(LoginRequiredMixin, self).dispatch(request, *args,
**kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\base.py", line 88, in
dispatch
return handler(request, *args, **kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\edit.py", line 236,
in get
return super(BaseUpdateView, self).get(request, *args, **kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\edit.py", line 174,
in get
return self.render_to_response(self.get_context_data())
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\edit.py", line 93, in
get_context_data
kwargs['form'] = self.get_form()
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\edit.py", line 45, in
get_form
return form_class(**self.get_form_kwargs())
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\speedy\core\accounts\forms.py", line 171, in __init__
for field in self._meta.profile_model._meta.fields:
AttributeError: 'ModelFormOptions' object has no attribute 'profile_model'

==
ERROR: test_user_can_save_his_settings
(speedy.core.accounts.tests.test_views.EditProfileNotificationsViewTestCase)
--
Traceback (most recent call last):
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\speedy\core\base\test.py", line 31, in inner
return method_or_class(*args, **kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\speedy\core\accounts\tests\test_views.py", line 303, in
test_user_can_save_his_settings
r = self.client.post(self.page_url, data)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\test\client.py", line 548, in post
secure=secure, **extra)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\test\client.py", line 350, in post
secure=secure, **extra)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\test\client.py", line 416, in
generic
return self.request(**r)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\test\client.py", line 501, in
request
six.reraise(*exc_info)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\utils\six.py", line 686, in reraise
raise value
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\core\handlers\exception.py", line
41, in inner
response = get_response(request)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\core\handlers\base.py", line 187,
in _get_response
response = self.process_exception_by_middleware(e, request)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\core\handlers\base.py", line 185,
in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\base.py", line 68, in
view
return self.dispatch(request, *args, **kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\contrib\auth\mixins.py", line 56,
in dispatch
return super(LoginRequiredMixin, self).dispatch(request, *args,
**kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\base.py", line 88, in
dispatch
return handler(request, *args, **kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\edit.py", line 240,
in post
return super(BaseUpdateView, self).post(request, *args, **kwargs)
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\edit.py", line 181,
in post
form = self.get_form()
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\.venv\lib\site-packages\django\views\generic\edit.py", line 45, in
get_form
return form_class(**self.get_form_kwargs())
  File "E:\Uri\Speedy Net\Git\speedy-net
[public]\speedy\core\accounts\forms.py", line 171, in __init__
for field in self._meta.profile_model._meta.fields:
Attrib

Speedy Mail Software

2015-08-01 Thread Uri Even-Chen
To Django users,

I'm interested in creating a new webmail platform based on Python and
Django (with jQuery and JavaScript), which will be free software & open
source - Speedy Mail Software. I created a project called Speedy Mail
Software <https://sourceforge.net/projects/speedy-mail-software/> on
sourceforge, and I'm looking for people who will participate in writing
code for this project. I renamed the project to Speedy Mail Software
because Speedy Mail will be the webmail itself, based on Speedy Mail
Software but with a domain and a mail server(s), so people will able to
create an account there and use the mail services of the website. I'm also
trying to convince computer science students from the college I graduated
(The academic college of Tel Aviv - Yaffo) to participate in this project.

I also have another idea - I want to create a Python Web Toolkit, which
will be similar to Google Web Toolkit - people will write code in Python,
and it will run on the server side, and on the client side with JavaScript
(it will compile Python code to JavaScript, like Google Web Toolkit from
Java to JavaScript). Please let me know if you want to participate in any
of these projects (I can also create a project for the second project in
sourceforge if there will be developers interested). I will also try to ask
in the main Python list (python-l...@python.org), let me know if there is
any other relevant list.

Thanks,
Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEbHDbi42AhNBweZOH14zNfP4fBi2HPLMuvk1ZMmJPJeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Speedy Mail Software

2015-08-06 Thread Uri Even-Chen
Hi Abdulhakim,

I'm sorry that only now I saw your message. You are welcome to contribute
to Speedy Mail Software. I only use Sourceforge to find more developers, I
think I prefer to use Github for Git. If you have any questions, contact me
at u...@speedy.net

Thanks,
Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Sat, Aug 1, 2015 at 4:20 PM, Abdulhakim Haliru 
wrote:

> Interesting. I have once contemplated building a webmail software that
> reads emails so customers don't lose emails upon switching webhosts. Hence,
> your Speedy Mail Software interests me. I'd love to be a part of the team.
>
> Great idea it's.
>
> Regards.
> Abdulhakim
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1eb6823e-387d-4731-9e98-9550dc55300c%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHAOYEhp54394QYJGA5YCF2hc9K2grmmM5QQny%3DpMiHbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Speedy Mail Software

2015-08-06 Thread Uri Even-Chen
Hi Stuart,

Are you interested in participating in writing code for Speedy Mail
Software? And thanks for the link to pyjs, I was not aware of this libraby.
So I guess we can just use it and we don't have to create it. I want to use
pyjs also for Speedy Mail Software. Please let me know if you can
participate in Speedy Mail Software.

Thanks,
Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Sun, Aug 2, 2015 at 11:29 AM, Stuart Longland <
stua...@longlandclan.yi.org> wrote:

> On 01/08/15 22:56, Uri Even-Chen wrote:
> > I'm interested in creating a new webmail platform based on Python and
> > Django (with jQuery and JavaScript), which will be free software & open
> > source - Speedy Mail Software. I created a project called Speedy Mail
> > Software <https://sourceforge.net/projects/speedy-mail-software/> on
> > sourceforge, and I'm looking for people who will participate in writing
> > code for this project. I renamed the project to Speedy Mail Software
> > because Speedy Mail will be the webmail itself, based on Speedy Mail
> > Software but with a domain and a mail server(s), so people will able to
> > create an account there and use the mail services of the website. I'm
> > also trying to convince computer science students from the college I
> > graduated (The academic college of Tel Aviv - Yaffo) to participate in
> > this project.
>
> Well, there are lots of webmail systems out there today, from classical
> ones like SqurrelMail and Horde to more modern ones like RoundCube.
>
> One possibility that might be interesting to explore, and could perhaps
> make a JavaScript front-end easier to develop would be to expose the
> email via a WebDAV-based interface, much as we have CalDAV and CardDAV
> for calendaring and contacts, you'd have "MailDAV" which would
> facilitate IMAP-like functionality over WebDAV.
>
> I think a similar scheme is used with Outlook Web Access, although you
> probably want to avoid the insanity that is MAPI, the email should be
> stored in the form it was received.  I've seen what happens when mail
> systems try to be "clever": Zarafa is one such system and it's a hideous
> mess.
>
> > I also have another idea - I want to create a Python Web Toolkit, which
> > will be similar to Google Web Toolkit - people will write code in
> > Python, and it will run on the server side, and on the client side with
> > JavaScript (it will compile Python code to JavaScript, like Google Web
> > Toolkit from Java to JavaScript).
>
> That sounds an awful lot like the Pyjamas (now called PyJS) framework.
> http://pyjs.org/
> --
> Stuart Longland (aka Redhatter, VK4MSL)
>
> I haven't lost my mind...
>   ...it's backed up on a tape somewhere.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/55BDD4E3.7060801%40longlandclan.yi.org
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsE3%3D0VSFUcxjE6CwgrvBf0Xy%3DMsGExbC5VVVX63_xJBbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


pyjs - a compiler from Python to JavaScript

2015-08-07 Thread Uri Even-Chen
To Django users,

Are you familiar with pyjs <http://pyjs.org/>? I saw the website and I see
that the latest stable release is from May 2012. Is it possible to use pyjs
to compile Python to JavaScript? Which versions of Python are supported?
Are versions 2.7 and 3.4 supported? And is it possible to use Django (in
the client side) and JavaScript frameworks such as jQuery, jQuery UI and
jQuery plugins together with pyjs?

Thanks,
Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHy4hwdxgZ8uXo36LtZrKZC_0GgjsGybcdbwpAP14AN5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pyjs - a compiler from Python to JavaScript

2015-08-08 Thread Uri Even-Chen
Hi Russ,

Thanks for the information. Yes, I'm looking for software that is ready for
production, or at least works well in most platforms. I also know
JavaScript, but I was thinking about programming in Python for the client
side too. I will check the projects you mentioned, thank you!

Uri.


*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Sat, Aug 8, 2015 at 4:18 AM, Russell Keith-Magee  wrote:

> Hi Uri,
>
> There are multiple projects out there trying to bridge the gap between
> Python and Javascript. PyJS was one of the first I was aware of, but to the
> best of my knowledge, it hasn't been very active for the last couple of
> years. Brython and Skulpt are two other projects - those two *have* been
> kept up to date. There's also PyPy.js, which is the full PyPy interpreter
> running in browser - which means you get CPython like performance inside
> your browser.
>
> Are they ready for production? That's another story. At the moment, I
> wouldn't recommend it, especially if you're a beginner - but it's certainly
> possible. However, you'd need to have a pretty good reason. You're going to
> experience a lot of friction in the interface between the two languages, so
> there would need to be a good reason for taking on that overhead.
>
> Yours,
> Russ Magee %-)
>
> On Fri, Aug 7, 2015 at 7:00 PM, Uri Even-Chen  wrote:
>
>> To Django users,
>>
>> Are you familiar with pyjs <http://pyjs.org/>? I saw the website and I
>> see that the latest stable release is from May 2012. Is it possible to use
>> pyjs to compile Python to JavaScript? Which versions of Python are
>> supported? Are versions 2.7 and 3.4 supported? And is it possible to use
>> Django (in the client side) and JavaScript frameworks such as jQuery,
>> jQuery UI and jQuery plugins together with pyjs?
>>
>> Thanks,
>> Uri.
>>
>> *Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> <http://www.facebook.com/urievenchen>
>> <http://plus.google.com/+urievenchen>
>> <http://www.linkedin.com/in/urievenchen>
>> <http://twitter.com/urievenchen>
>> > Speedypedia in Hebrew and English
>> <http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMQ2MsHy4hwdxgZ8uXo36LtZrKZC_0GgjsGybcdbwpAP14AN5g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMQ2MsHy4hwdxgZ8uXo36LtZrKZC_0GgjsGybcdbwpAP14AN5g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJxq84-KiCdRYtaVY_%3DFuuCSpb77GuG4P3vsyMSb083c7YWrZQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJxq84-KiCdRYtaVY_%3DFuuCSpb77GuG4P3vsyMSb083c7YWrZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHnz1qest_mwkFq0u-U8Z9mC%3DONXpF6742c7bY%3DK_sx4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pyjs - a compiler from Python to JavaScript

2015-08-08 Thread Uri Even-Chen
Hi Russ,

I checked the projects you mentioned, but is it possible to communicate
with other JavaScript scripts such as jQuery, jQuery UI and plugins for
jQuery? I would like to have a way to communicate from Python to JavaScript
in the client side, otherwise I really think we will not be able to use
these projects in production.

Thanks,
Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Sat, Aug 8, 2015 at 4:18 AM, Russell Keith-Magee  wrote:

> Hi Uri,
>
> There are multiple projects out there trying to bridge the gap between
> Python and Javascript. PyJS was one of the first I was aware of, but to the
> best of my knowledge, it hasn't been very active for the last couple of
> years. Brython and Skulpt are two other projects - those two *have* been
> kept up to date. There's also PyPy.js, which is the full PyPy interpreter
> running in browser - which means you get CPython like performance inside
> your browser.
>
> Are they ready for production? That's another story. At the moment, I
> wouldn't recommend it, especially if you're a beginner - but it's certainly
> possible. However, you'd need to have a pretty good reason. You're going to
> experience a lot of friction in the interface between the two languages, so
> there would need to be a good reason for taking on that overhead.
>
> Yours,
> Russ Magee %-)
>
> On Fri, Aug 7, 2015 at 7:00 PM, Uri Even-Chen  wrote:
>
>> To Django users,
>>
>> Are you familiar with pyjs <http://pyjs.org/>? I saw the website and I
>> see that the latest stable release is from May 2012. Is it possible to use
>> pyjs to compile Python to JavaScript? Which versions of Python are
>> supported? Are versions 2.7 and 3.4 supported? And is it possible to use
>> Django (in the client side) and JavaScript frameworks such as jQuery,
>> jQuery UI and jQuery plugins together with pyjs?
>>
>> Thanks,
>> Uri.
>>
>> *Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> <http://www.facebook.com/urievenchen>
>> <http://plus.google.com/+urievenchen>
>> <http://www.linkedin.com/in/urievenchen>
>> <http://twitter.com/urievenchen>
>> > Speedypedia in Hebrew and English
>> <http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMQ2MsHy4hwdxgZ8uXo36LtZrKZC_0GgjsGybcdbwpAP14AN5g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMQ2MsHy4hwdxgZ8uXo36LtZrKZC_0GgjsGybcdbwpAP14AN5g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJxq84-KiCdRYtaVY_%3DFuuCSpb77GuG4P3vsyMSb083c7YWrZQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJxq84-KiCdRYtaVY_%3DFuuCSpb77GuG4P3vsyMSb083c7YWrZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEdn%3DUPBbH2GiZLGXQS4QCMzWh9LPczW0%3DZQrhRSdpd7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thank you Russ. If it's not possible to do it easily in production then I
guess we are stuck with JavaScript, although I prefer Python. But without
jQuery, jQuery UI and other jQuery plugins I find it very difficult to
write client side scripts in Python. So I think we will write client side
scripts in JavaScript in Speedy Mail Software and other projects we will
have.

Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Sun, Aug 9, 2015 at 4:05 AM, Russell Keith-Magee  wrote:

> On Sat, Aug 8, 2015 at 4:27 PM, Uri Even-Chen  wrote:
>
>> Hi Russ,
>>
>> I checked the projects you mentioned, but is it possible to communicate
>> with other JavaScript scripts such as jQuery, jQuery UI and plugins for
>> jQuery? I would like to have a way to communicate from Python to JavaScript
>> in the client side, otherwise I really think we will not be able to use
>> these projects in production.
>>
>> Hi Uri,
>
> It's possible - but it depends on the project and the tooling they
> provide. I know PyPy.js, for example, provides a JS/DOM bridge.
>
> However, as I said in my last email, at the moment, this isn't the easy
> path. Essentially, if you're asking the question "Is it possible", the
> answer for all practical purposes is effectively "no". Technically, it's
> possible, but you have to know what you're doing.
>
> Yours
> Russ Magee %-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsF-D5Kb5ge-%2BeJrTjCgTL9p11fH0sN4ZA8rnyU3Sr5niw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thanks for the feedback. Actually I asked this question also in the
django-users mailing list and Russell Keith-Magee told me about
Brython, Skulpt and PyPy.js (I hope it's OK that I reply to these 3 mailing
lists) but I also asked if I can use JavaScript scripts such as jQuery,
jQuery UI and other jQuery plugins from the scripts in Python and Russell
said it's possible but not practical for production. And I'm thinking about
developing Speedy Mail Software or other projects for production (of course
after the alpha & beta are over) so I guess we are stuck with JavaScript
for the client side programming. And I don't mind if they use a compiler or
an interpreter or any other method to run Python in the client side, as
long as it works. But without using jQuery and other plugins it would be
very hard to use these projects in production.

Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Mon, Aug 10, 2015 at 7:40 PM, Ian Kelly  wrote:

> On Fri, Aug 7, 2015 at 5:00 AM, Uri Even-Chen  wrote:
> >
> > Are you familiar with pyjs? I saw the website and I see that the latest
> stable release is from May 2012. Is it possible to use pyjs to compile
> Python to JavaScript? Which versions of Python are supported? Are versions
> 2.7 and 3.4 supported? And is it possible to use Django (in the client
> side) and JavaScript frameworks such as jQuery, jQuery UI and jQuery
> plugins together with pyjs?
>
> And if you check the commit history on GitHub, there are only two
> commits in the past year. The project was hijacked (i.e. forked plus
> "we're taking the domain name and the mailing list too") a few years
> ago (also in May 2012, I think not coincidentally), and that sadly
> seems to have slowly killed the development momentum on the project.
>
> I'm not really familiar with the space, but I tend to hear good things
> about Brython. PyPy.js and Skulpt are other alternatives. However, I
> think that all of these are implementations of Python in Javascript,
> not Python to Javascript compilers.
> --
> https://mail.python.org/mailman/listinfo/python-list
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEuk4Ow%3DDiU_WbSEHJEeBrkKDmhTK5AH8c0dckcBQdfiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thanks Fabio, it's very interesting. Are you related to Pyjeon Software? Do
we have to pay to use RapydScript? Is it ready for production?


*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Tue, Aug 11, 2015 at 8:54 PM, Fabio Zadrozny  wrote:

>
> On Tue, Aug 11, 2015 at 8:55 AM, Uri Even-Chen  wrote:
>
>> Thanks for the feedback. Actually I asked this question also in the
>> django-users mailing list and Russell Keith-Magee told me about
>> Brython, Skulpt and PyPy.js (I hope it's OK that I reply to these 3 mailing
>> lists) but I also asked if I can use JavaScript scripts such as jQuery,
>> jQuery UI and other jQuery plugins from the scripts in Python and Russell
>> said it's possible but not practical for production. And I'm thinking about
>> developing Speedy Mail Software or other projects for production (of course
>> after the alpha & beta are over) so I guess we are stuck with JavaScript
>> for the client side programming. And I don't mind if they use a compiler or
>> an interpreter or any other method to run Python in the client side, as
>> long as it works. But without using jQuery and other plugins it would be
>> very hard to use these projects in production.
>>
>> Uri.
>>
>
>
> ​I think that you could try RapydScript: http://rapydscript.pyjeon.com/
>
> Cheers,
>
> Fabio
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsFPEapmwTbCg2EH8W7KhK%2BBZyu_USHuWBJTSmgA00Renw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thanks Fabio, we'll check RapydScript and we might use it for Speedy Mail
Software as well! I will check with the other developers (which are on
the speedy-mail-software list). In the past I had Speedy Mail online from
2000 to 2005 and it was based on a Perl script (Perl was popular in 2000).
But since it didn't support Unicode/UTF-8 encoding and didn't have a spam
filter I decided to close it in 2005 (after Google introduced Gmail). But I
think today it's easier to create software than it was in 2005, and I hope
next year we can launch Speedy Mail again, based on the Speedy Mail
Software we are developing (which will be free software & open source). I'm
looking forward to launching Speedy Mail as an alternative to Gmail.


*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Tue, Aug 11, 2015 at 10:08 PM, Fabio Zadrozny  wrote:

> Hi Uri,
>
> No, I'm not related to it. -- I'm the PyDev/Eclipse maintainer... that
> already takes a lot of my time ;)
>
> It's license is BSD (so, no need to pay). As it's just a way to convert
> from a Python-like syntax to JavaScript syntax you can even switch to plain
> JavaScript later on if you want -- in fact, when you debug the code you'll
> be debugging JavaScript and not Python (it's like CoffeScript but with a
> Python-like syntax).
>
> Cheers,
>
> Fabio
>
> On Tue, Aug 11, 2015 at 3:48 PM, Uri Even-Chen  wrote:
>
>> Thanks Fabio, it's very interesting. Are you related to Pyjeon Software?
>> Do we have to pay to use RapydScript? Is it ready for production?
>>
>>
>> *Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> <http://www.facebook.com/urievenchen>
>> <http://plus.google.com/+urievenchen>
>> <http://www.linkedin.com/in/urievenchen>
>> <http://twitter.com/urievenchen>
>> > Speedypedia in Hebrew and English
>> <http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>
>>
>> On Tue, Aug 11, 2015 at 8:54 PM, Fabio Zadrozny 
>> wrote:
>>
>>>
>>> On Tue, Aug 11, 2015 at 8:55 AM, Uri Even-Chen  wrote:
>>>
>>>> Thanks for the feedback. Actually I asked this question also in the
>>>> django-users mailing list and Russell Keith-Magee told me about
>>>> Brython, Skulpt and PyPy.js (I hope it's OK that I reply to these 3 mailing
>>>> lists) but I also asked if I can use JavaScript scripts such as jQuery,
>>>> jQuery UI and other jQuery plugins from the scripts in Python and Russell
>>>> said it's possible but not practical for production. And I'm thinking about
>>>> developing Speedy Mail Software or other projects for production (of course
>>>> after the alpha & beta are over) so I guess we are stuck with JavaScript
>>>> for the client side programming. And I don't mind if they use a compiler or
>>>> an interpreter or any other method to run Python in the client side, as
>>>> long as it works. But without using jQuery and other plugins it would be
>>>> very hard to use these projects in production.
>>>>
>>>> Uri.
>>>>
>>>
>>>
>>> ​I think that you could try RapydScript: http://rapydscript.pyjeon.com/
>>>
>>> Cheers,
>>>
>>> Fabio
>>>
>>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsFRQ0vsFYMpkAN2VHxzKz5Rvm7CRAQiXjtCdpbtaymA5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Encrypted web mail

2015-08-15 Thread Uri Even-Chen
To Python, Django and Speedy Mail Software developers,

Is it possible to make Speedy Mail encrypted? I want mail to be encrypted
on the server, and only the user will be able to read his/her mail. The
user's password will be encrypted on the server and nobody will be able to
read the user's mail except the user himself. Is it possible? When  I had
Speedy Mail from 2000 to 2005 I received a court order by a court in Tel
Aviv once from two policemen to give a specific user's password to the
Israeli police, and the password and mail were not encrypted then. And I
was not allowed to tell anyone about this court order, except my lawyer.
But I refused to give the user's password to the police. So if I receive a
court order again, I don't want to be able to give the user's password or
mail to anyone, and I don't want it to be on the servers unless it's
encrypted. That's why I want it to be encrypted. If I receive a court order
again I want to be able to tell the police that the mail and password are
encrypted, and only the user knows the password and is able to read his
mail. Is it possible?

I believe a user's mail is something personal, like his thoughts. I don't
want the police to read my mail and it's similar to reading my thoughts.

Thanks,
Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHDNLRuth59FRAtXwMXY14LyMUibxHCFxZswdD7Jw4oyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Encrypted web mail

2015-08-15 Thread Uri Even-Chen
Thanks Pedro, actually I understand cryptography and I agree with you.
Sonebody replied to me off-list and wrote me about ProtonMail
<https://protonmail.ch/>, actually they are doing exactly what I wanted (I
think), so maybe I will try to cooperate with them and/or use their open
source source code. Anyway thanks for the feedback!

Uri.


*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Sat, Aug 15, 2015 at 3:32 PM, Pedro  wrote:

> Hello Uri,
>
> what you want is completely possible, but demands you to understand some
> concepts of cryptography. To make your server completely safe against court
> orders or anyone that have access to it, including yourself, you need to
> encrypt and decrypt the emails at client side. For this you may use some
> public-key cryptosystem and store all user's public keys at your server
> (they are not secret). Probably the best option for you is to use PGP. If
> the clients run in Javascript you can use OpenPGP.js for this. It is very
> easy to use and you won't need to know anything about how to implement a
> secure cipher.
>
>
>
> --
> Pedro Alves
>
> *Mestrando em Ciência da Computação*
> *Universidade Estadual de Campinas*
>
> 2015-08-15 6:47 GMT-03:00 Uri Even-Chen :
>
>> To Python, Django and Speedy Mail Software developers,
>>
>> Is it possible to make Speedy Mail encrypted? I want mail to be encrypted
>> on the server, and only the user will be able to read his/her mail. The
>> user's password will be encrypted on the server and nobody will be able to
>> read the user's mail except the user himself. Is it possible? When  I had
>> Speedy Mail from 2000 to 2005 I received a court order by a court in Tel
>> Aviv once from two policemen to give a specific user's password to the
>> Israeli police, and the password and mail were not encrypted then. And I
>> was not allowed to tell anyone about this court order, except my lawyer.
>> But I refused to give the user's password to the police. So if I receive a
>> court order again, I don't want to be able to give the user's password or
>> mail to anyone, and I don't want it to be on the servers unless it's
>> encrypted. That's why I want it to be encrypted. If I receive a court order
>> again I want to be able to tell the police that the mail and password are
>> encrypted, and only the user knows the password and is able to read his
>> mail. Is it possible?
>>
>> I believe a user's mail is something personal, like his thoughts. I don't
>> want the police to read my mail and it's similar to reading my thoughts.
>>
>> Thanks,
>> Uri.
>>
>> *Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> <http://www.facebook.com/urievenchen>
>> <http://plus.google.com/+urievenchen>
>> <http://www.linkedin.com/in/urievenchen>
>> <http://twitter.com/urievenchen>
>> > Speedypedia in Hebrew and English
>> <http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMQ2MsHDNLRuth59FRAtXwMXY14LyMUibxHCFxZswdD7Jw4oyg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMQ2MsHDNLRuth59FRAtXwMXY14LyMUibxHCFxZswdD7Jw4oyg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/

Re: Encrypted web mail

2015-08-15 Thread Uri Even-Chen
Hi Dennis,



On Sat, Aug 15, 2015 at 7:35 PM, Dennis Lee Bieber 
wrote:

> On Sat, 15 Aug 2015 12:47:17 +0300, Uri Even-Chen 
> declaimed the following:
>
> >To Python, Django and Speedy Mail Software developers,
> >
> >Is it possible to make Speedy Mail encrypted? I want mail to be encrypted
> >on the server, and only the user will be able to read his/her mail. The
> >user's password will be encrypted on the server and nobody will be able to
>
> Most systems I know of don't store the password on the server in
> the
> first place. They store a one-way hash generated from the password
> (possibly using a randomly generated salt that is also saved with the hash
> -- that is, rather than just hash "password" into "hashstring", they hash
> "saltpassword" into "otherhash" and prepend the "salt" -> "saltotherhash".
> When user comes to connect later, they match the user name in the password
> database, extract the "salt" from "saltotherhash", attach it to the
> password given by the user, generate the hash, and see if it matches the
> rest of the saved hash). The hash value is only used for matching purposes,
> not for any subsequent processing -- it is not a cryptography key, nor is
> any cryptography key used to produce it.
>
>
Thanks for the feedback. Actually the passwords on my webmail in 2000 to
2005 were not encrypted, but I agree with you that passwords should be
always encrypted.



> >read the user's mail except the user himself. Is it possible? When  I had
>
> How do you intend to handle new inbound email? After all, the
> sender of
> the email sure won't know about any user encryption key -- that means you
> have to have the encryption key stored on your server associated with the
> recipient username, so that you can encrypt inbound email before putting it
> into the user's mailbox... Do you also intend to encrypt the header
> information or just the body of the message?
>
> A public key system MIGHT support that, in that the public key --
> used
> to "send to" the recipient is only used to encrypt the data, and can be
> stored on your server (in the same username/password account file). The
> private (decryption) key would have to be stored on the user's computer and
> never provided to your server machine -- and you'd need some way to send
> individual encrypted messages to the user where they are decrypted on their
> computer, NOT ON the server. You'd also need to be able to identify which
> messages are new, read, deleted -- if the mailbox is encrypted, this likely
> means each message is a file within the mailbox, since you can't do things
> like mark and compress an MBOX (all mail is in one file with a special
> header marking the start of a message) file without corrupting the
> encryption stream.
>
> If, at anytime, the decryption key is on the server, you have lost
> the
> security you claim to be striving for -- as any court ordered system could
> just patch in a packet sniffer and wait for your user to connect, capture
> the password, and capture the decryption key if it is sent to the server to
> retrieve mail (though they don't even need it at that point -- they could
> just capture the decrypted contents being sent to the user... TLS/SSL
> sessions may alleviate that problem, but it does mean having certificates
> to initiate the TLS session keys). If the packets are TLS encrypted, they
> can require one to patch into the server at the point where the contents
> are converted back to plain text and capture the traffic.
>
> Of course, this now means the user has to carry around a "keyring"
> that
> can be accessed by any computer used to read the email (since the
> decryption key can not be on the server, if they read email from an android
> tablet they need to have the key installed on the tablet; they also need it
> on their desktop if they use it to access the server; on their phone if it
> has a browser, etc.).
>
> A Javascript client is probably going to be rather slow at
> decrypting
> the emails -- but you may not be able to install a compiled Java encryption
> package on all the clients out there (you'd have to have something for iOS,
> something for Android, for Linux, Macintosh, and Windows -- though the
> latter three might be able to use the same core Java code).
>
> We've taken care of inbound email. What were your plans for
> outgoing
> email? You can't encrypt that as it is going to other systems and other
> users who are not part of your server and don't expect to see encrypted
> stuff. You co

Re: Encrypted web mail

2015-08-16 Thread Uri Even-Chen
On Sun, Aug 16, 2015 at 11:18 AM, Avraham Serour  wrote:

> no, passwords shouldn't be encrypted, you should store hashes, just use
> the django default auth app
>
> Yes, I meant storing the hash in the database and not the password.

Uri.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEn4ZeUjNVoXOX0AEe67_q_SLH-bz57_nrPS%3DwgFhz2Pg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Converting Speedy Net to Python/Django

2015-09-10 Thread Uri Even-Chen
To Django Users,

I want to convert my open source social network, Speedy Net
<http://en.speedy.net/>, from PHP to Python and Django. Which Django
packages do you recommend using? I prefer to start with Python 3. I saw the
list of apps on https://www.djangopackages.com/grids/g/social/ , and I
found that django-allauth is the most popular app that supports Python 3.
Do you recommend using it? I think I will change the authentication
functions, to preserve backwards compatibility with Speedy Net - to let
current users log in with their current password, which is saved
hashed/encrypted on the database (with salt). I also want users to be able
to edit their profile, create groups and pages, like pages, join groups and
send messages to each other. I'm also thinking about creating an optional
matching/dating service for Speedy Net users. Which apps/platforms do you
recommend me to use?

Thanks,
Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEPh1Exyf3Dvyq5h2WUAFfsvLEun5kp5DPxz79iqNeTrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 <http://en.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 file is System Requirements Specification - Speedy Net.txt). The old
code is in PHP and can be found on
https://www.assembla.com/spaces/speedynet/subversion/source (all the Speedy
Net projects are free software and open source). According to my
specification, each user will have a unique ID of 15 digits (a
number between 100,000,000,000,000 and 999,999,999,999,999, randomly
generated), which will be unique over the system (of users, pages, groups,
causes and events). And each user will have a username, and pages, groups
and causes may also have an optional username (it's called "username" also
on Facebook).

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 have
the same ID. And a Username model to prevent them from having the same
username. Is it possible to do it with Django 1.9.2?

By the way, if you want to help me develop Speedy Net, Speedy Composer,
Speedy Match or Speedy Mail, please let me know. If you want you can also
join Speedy Net and grab yourself a username at Speedy Net. I'm also
sending a copy of this message to speedy-mail-softw...@googlegroups.com,
the list of developers of the Speedy Net projects.

I have another, off-topic question. Anyone knows how I can create a company
in Switzerland, and how much does it cost? Any links to lawyers who can do
it for me? I decided to host Speedy Net in Switzerland, because of the
privacy laws there, and I prefer a Swiss company for the same reason
(Israel is much less advanced in privacy than Europe and Switzerland). I'm
a resident and citizen of Israel, with an option to become a Spanish
citizen too. And I don't want to host private information of people in
Israel.

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGBvowwy%3DrroJ%2B6vSetWYm1BxWLAnOHNCCsfXDf2%2B%2B_bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 generates a
slug which contains a 15-digits number. I found out that Facebook redirects
to this url when entering the url with only the number (for example
https://www.facebook.com/342076035998592/ - with or without the trailing
slash, even with several slashes). So the UUID will be too long for this,
unless I generate it with 15 digits (decimal). And how do I make it a
primary key of model User? Is there a way to change the primary keys of
Django models and how? I think we will use PostgreSQL anyway, thanks!

Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

On Thu, Feb 4, 2016 at 6:52 PM, James Schneider 
wrote:

>
> >
> > 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 have
> the same ID. And a Username model to prevent them from having the same
> username. Is it possible to do it with Django 1.9.2?
> >
>
> Rather than coming up with some arbitrary numbering scheme that will be
> difficult to manage, you should really just be using a UUID field, which
> provides the same benefits and can be used as the PK quite easily. Projects
> with large numbers of rows often go this route, since there is effectively
> an unlimited number of UUID's.
>
> https://docs.djangoproject.com/en/1.9/ref/models/fields/#uuidfield
>
> If you can, use Postgres as your backend DB, since it has native support
> for UUID's, other DB's will simply treat them as CharFields, which will
> still work but is slightly less efficient.
>
> -James
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2Be%2BciV-O_LLcZ86rpT3_VbHM8aLXDLjocVw92SHtUuCg43wAA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2Be%2BciV-O_LLcZ86rpT3_VbHM8aLXDLjocVw92SHtUuCg43wAA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsE9%3DjUH%2BNNjzG-kxKo6PWX4Z8upUyz9Aj0Vc28HhVmziQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 any
logic in using auto-increment, I don't want the id/primary key to be short
(such as zuck's id on Facebook - https://www.facebook.com/messages/4) but
15-digits long. And by the way, users who already signed up to Speedy Net
already have a 15-digits id (randomly generated) and I want to preserve
this id when converting Speedy Net from PHP/MySQL to Django and PostgreSQL.

I hope I clarified my question now.

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

On Fri, Feb 5, 2016 at 8:22 PM, James Schneider 
wrote:

>
> 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 who
> don't have a username (Facebook calls it a username), Facebook generates a
> slug which contains a 15-digits number. I found out that Facebook
> redirects to this url when entering the url with only the number (for
> example https://www.facebook.com/342076035998592/ - with or without the
> trailing slash, even with several slashes). So the UUID will be too long
> for this, unless I generate it with 15 digits (decimal). And how do I make
> it a primary key of model User? Is there a way to change the primary keys
> of Django models and how? I think we will use PostgreSQL anyway, thanks!
> >
>
> You have total control over what field is used as the primary key.
>
> https://docs.djangoproject.com/en/1.9/ref/models/fields/#primary-key
>
> The model.id field that is automatically generated is for convenience and
> convention. It is not generated/available when a different primary key is
> specified, unless of course you name the field 'id'.
>
> This is also why it is important to use model.ok when referring to the
> primary key for a model, rather than model.I'd, since model.pk is always
> made available as an alias to whatever primary key that the model it's
> using (be it an integer or a UUID).
>
> Unless your code performs some operation on a model's primary key that is
> specific to an integer data type (ie using \d+ to look for primary keys in
> your urls.py), using model.pk is pretty universal and shouldn't require
> many changes to move from an integer to something else as your PK.
>
> As far as the number that FB generates for their URL's, I'm sure it is
> some type of account number that is assigned upon creation, probably along
> the lines of what you were mentioning.
>
> I suppose you could have the same ID between the two systems, but I
> wouldn't necessarily make that a hard requirement. It's pretty easy to add
> an extra correlation table that would keep track of the user in each system
> with a different PK. While this could incur an extra join or extra queries,
> it does make the system much more flexible, with the possibility to
> integrate with other authentication systems such as LDAP or Shibboleth
> where the customer may not be able to easily modify/add the DB attribute to
> match your account number/PK.
>
> Also keep in mind that the PK and account number can, and probably should
> be, separate. Changing an account number (due to a typo, perhaps) could be
> disastrous if it were the PK, but there is little, if any, reason to
> manually update a true PK.
>
> You could potential do some trickery with the PK to derive the account
> number, such as taking the existing PK and adding 1,284,386,269,433 to it,
> and using that value as the 'account' number. Using a nice even number like
> 1,000,000,000,000 makes the account number much more obvious, such as the
> first account being 1,000,000,000,001. Users will 'feel' better if they
> have a random-looking account number, although someone is bound to get
> 2,000,000,000,000 at some point.
>
> You could also construct the account number through a series of
> organizational character positions to give the developer immediate
> information about the account just by looking at it, say all accounts
> created in 2016 will start with 16, with the numbers after that containi

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/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>

On Sat, Feb 6, 2016 at 12:00 AM, Remco Gerlich  wrote:

> 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.
>
> It's key to do this at the beginning of the project, since it's really
> hard to migrate to this later. You can always change your custom model, but
> switching from the default to a custom model is nontrivial.
>
> Remco Gerlich
>
>
> On Fri, Feb 5, 2016 at 9:22 PM, Uri Even-Chen  wrote:
>
>> 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 any
>> logic in using auto-increment, I don't want the id/primary key to be short
>> (such as zuck's id on Facebook - https://www.facebook.com/messages/4)
>> but 15-digits long. And by the way, users who already signed up to Speedy
>> Net already have a 15-digits id (randomly generated) and I want to preserve
>> this id when converting Speedy Net from PHP/MySQL to Django and PostgreSQL.
>>
>> I hope I clarified my question now.
>>
>> Thanks,
>> Uri.
>>
>> *Uri Even-Chen*
>> [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> <http://www.facebook.com/urievenchen>
>> <http://plus.google.com/+urievenchen>
>> <http://www.linkedin.com/in/urievenchen>
>> <http://twitter.com/urievenchen>
>>
>> On Fri, Feb 5, 2016 at 8:22 PM, James Schneider 
>> wrote:
>>
>>>
>>> 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 who
>>> don't have a username (Facebook calls it a username), Facebook generates a
>>> slug which contains a 15-digits number. I found out that Facebook
>>> redirects to this url when entering the url with only the number (for
>>> example https://www.facebook.com/342076035998592/ - with or without the
>>> trailing slash, even with several slashes). So the UUID will be too long
>>> for this, unless I generate it with 15 digits (decimal). And how do I make
>>> it a primary key of model User? Is there a way to change the primary keys
>>> of Django models and how? I think we will use PostgreSQL anyway, thanks!
>>> >
>>>
>>> You have total control over what field is used as the primary key.
>>>
>>> https://docs.djangoproject.com/en/1.9/ref/models/fields/#primary-key
>>>
>>> The model.id field that is automatically generated is for convenience
>>> and convention. It is not generated/available when a different primary key
>>> is specified, unless of course you name the field 'id'.
>>>
>>> This is also why it is important to use model.ok when referring to the
>>> primary key for a model, rather than model.I'd, since model.pk is
>>> always made available as an alias to whatever primary key that the model
>>> it's using (be it an integer or a UUID).
>>>
>>> Unless your code performs some operation on a model's primary key that
>>> is specific to an integer data type (ie using \d+ to look for primary keys
>>> in your urls.py), using model.pk is pretty universal and shouldn't
>>> require many changes to move from an integer to something else as your PK.
>>>
>>> As far as the number that FB generates for their URL's, I'm sure it is
>>> some type of account number that is assigned upon creation, probably along
>>> the lines of what you were mentioning.
&g

django-modeltranslation latest stable release not supporting Django 2.0

2018-07-31 Thread Uri Even-Chen
Hi,

We are using django-modeltranslation for Speedy Net and Speedy Match (
https://github.com/urievenchen/speedy-net). We are
using django-modeltranslation as well as other packages. I noticed
that django-modeltranslation latest stable release (0.12.2, from Jan. 26,
2018, see https://pypi.org/project/django-modeltranslation/#history) still
doesn't support Django 2.0. There is a beta release which supports Django
2.0 but we don't want to use beta releases in our project. I opened an
issue on GitHub (
https://github.com/deschler/django-modeltranslation/issues/472) and I'm
waiting for a stable release of django-modeltranslation which supports
Django 2.0. This is the only package we use which still doesn't support
Django 2.0 with a stable release. Can you help / join the project and
release a stable release which supports Django 2.0? We want to upgrade our
project to Django 2.0 and we can't do it due to this issue.

Thanks,
Uri.

*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen> <http://plus.google.com/+urievenchen>
<http://www.linkedin.com/in/urievenchen> <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsH%2B95Vai_hLDBMOXx8Eb5KEUGL7HyPC0c9C5K_s8SEVBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


django.db.models.Model save method doesn't call full_clean (Django 1.11.14)

2018-08-01 Thread Uri Even-Chen
Hi,

I noticed that django.db.models.Model save method doesn't
call self.full_clean(). Is it a good practice to call self.full_clean() in
my own models (which subclass django.db.models.Model) save method before
calling "super().save(*args, **kwargs)"? I tried to add it in my models but
I received many errors in tests:

==
ERROR: test_user_gets_redirected_to_his_profile
(speedy.net.accounts.tests.test_views.IndexViewTestCase)
--
Traceback (most recent call last):
  File "speedy\net\accounts\tests\test_views.py", line 8, in setUp
self.user = ActiveUserFactory()
  File "VENV~1\lib\site-packages\factory\base.py", line 46, in __call__
return cls.create(**kwargs)
  File "VENV~1\lib\site-packages\factory\base.py", line 563, in create
return cls._generate(enums.CREATE_STRATEGY, kwargs)
  File "VENV~1\lib\site-packages\factory\base.py", line 500, in _generate
return step.build()
  File "VENV~1\lib\site-packages\factory\builder.py", line 279, in build
kwargs=kwargs,
  File "VENV~1\lib\site-packages\factory\base.py", line 314, in instantiate
return self.factory._create(model, *args, **kwargs)
  File "VENV~1\lib\site-packages\factory\django.py", line 165, in _create
return manager.create(*args, **kwargs)
  File "VENV~1\lib\site-packages\django\db\models\manager.py", line 85, in
manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "VENV~1\lib\site-packages\modeltranslation\manager.py", line 405, in
create
return super(MultilingualQuerySet, self).create(**kwargs)
  File "VENV~1\lib\site-packages\django\db\models\query.py", line 394, in
create
obj.save(force_insert=True, using=self.db)
  File "speedy\core\accounts\models.py", line 52, in save
return super().save(*args, **kwargs)
  File "speedy\core\base\models.py", line 19, in save
self.full_clean()
  File "VENV~1\lib\site-packages\django\db\models\base.py", line 1250, in
full_clean
raise ValidationError(errors)
django.core.exceptions.ValidationError: {'password': ['This field cannot be
blank.']}

--

This is due to how we defined class DefaultUserFactory:

class DefaultUserFactory(factory.DjangoModelFactory):
first_name = factory.Faker('first_name')
last_name = factory.Faker('last_name')
date_of_birth = factory.fuzzy.FuzzyDate(start_date=date(1900, 1, 1))
gender = User.GENDER_OTHER
slug = factory.fuzzy.FuzzyText(chars=string.ascii_lowercase)
username = factory.LazyAttribute(lambda o:
normalize_username(slug=o.slug))
password = factory.PostGenerationMethodCall(method_name='set_password',
raw_password=USER_PASSWORD)

class Meta:
model = User

Formerly the password defined there was invalid (too short, '111', see
https://github.com/urievenchen/speedy-net/blob/master/speedy/core/accounts/tests/test_factories.py)
and I want all fields to be validated before they are saved to the
database. What is the best method to achieve this?

Thanks,
Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen> <http://plus.google.com/+urievenchen>
<http://www.linkedin.com/in/urievenchen> <http://github.com/urievenchen>
<http://twitter.com/urievenchen>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHdGt1GbKTK2BGmhLDfo7zkh0n3BE9dyPhyL_QxvGEgPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.