Re: Help: 'django.utils.six.moves' is not a package

2018-04-10 Thread Babatunde Akinyanmi
Do you have any module making use of six? Also is there any change in the story if you do `python3 manage.py [command]` On Tue, 10 Apr 2018, 18:57 Julio Biason, wrote: > Six is self-contained it does look anywhere, it has its own list of “how > it was before and how it is

Re: A first time programmer

2018-04-10 Thread FranzOC
be sure about that you have installed django typing $pip freeze in your console -- 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

Re: Suggest any document to learn below syntax?

2018-04-10 Thread Mike Dewhirst
On 11/04/2018 7:51 AM, Utpal Brahma wrote: {{ question.question_text }} {% for choice in question.choice_set.all %} {{ choice.choice_text }} {% endfor %} Try this ... https://docs.djangoproject.com/en/2.0/#the-template-layer I got this syntax in Writing your first Django

Re: Django and Live Chat

2018-04-10 Thread Daniel Ash
If I was going to tackle this, I would use XMPP as the protocol. If it's internal only it will be easier than if there is a requirement to federate external to your environment. Someone already did some of the work for you. https://github.com/fpytloun/django-xmpp On Tuesday, April 10, 2018

Re: [ANN]: django-todo 2.0

2018-04-10 Thread katuramu henry
This is awesome work Scot On Tue, Apr 10, 2018 at 6:50 PM, Scot Hacker wrote: > “django-todo is a *pluggable*, multi-user, multi-group, multi-list todo > and ticketing system - a reusable app designed to be dropped into any > existing Django project. Users can create

Suggest any document to learn below syntax?

2018-04-10 Thread Utpal Brahma
{{ question.question_text }}{% for choice in question.choice_set.all %} {{ choice.choice_text }}{% endfor %} I got this syntax in Writing your first Django app, part 3. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

How to achieve wildcard search using haystack in django

2018-04-10 Thread shawnmhy
I am currently working on haystack search in django. I met 2 problems, first, when I use 'Whoosh' engine, the search can only return the result that match exactly the same with my search key, for example if I type 'ABC', it cannot match 'ABCD' Secondly, how can I achieve wildcard search

Re: Help: 'django.utils.six.moves' is not a package

2018-04-10 Thread Julio Biason
Six is self-contained it does look anywhere, it has its own list of "how it was before and how it is now". In the case of moves, it has conditions of "module urlparse is urlparse in python 2 and urllib.parse in python 3" and then sets its own move module to point to one of those, based on

Re: Help: 'django.utils.six.moves' is not a package

2018-04-10 Thread Derek Zeng
On Tue, Apr 10, 2018, 1:39 AM Babatunde Akinyanmi wrote: > > > On Tue, 10 Apr 2018, 02:47 Derek Zeng, wrote: > >> I'm using django 2.0. >> What exactly is the purpose of django.utils.six.moves module? >> > Allowing a code base to be able to run on both

[ANN]: django-todo 2.0

2018-04-10 Thread Scot Hacker
“django-todo is a *pluggable*, multi-user, multi-group, multi-list todo and ticketing system - a reusable app designed to be dropped into any existing Django project. Users can create tasks for themselves or for others, or create ”assigned tasks” that will be filed into a specific list

Re: Django blocking on writing logs

2018-04-10 Thread Avraham Serour
it doesn't seem to have any relation to a synchronous logger On Tue, Apr 10, 2018 at 1:16 AM, Ameni Bejaoui wrote: > I face this problem when i want to test the django interface in the web > browser local domain :/ what should i do ? i change even the port to 8080 >

Re: username and allowed alphanumeric, why?

2018-04-10 Thread Avraham Serour
It seems you read that wrong, usernames may contain alphanumeric and other characters. On Tue, Apr 10, 2018 at 12:10 PM, Stefano Tranquillini < stefano.tranquill...@gmail.com> wrote: > Hi all, > > mostly curiosity, why does the username https://docs.djangoproject. >

Re: How to restrict Model.objects.all() to data pertaining to one organization

2018-04-10 Thread Gabriel - Iulian Dumbrava
I think django-multitenant gives you the best answer. marți, 10 aprilie 2018, 14:04:03 UTC+3, Mauro Crociara a scris: > > Hi everyone, > > I posted this question >

Re: How to restrict Model.objects.all() to data pertaining to one organization

2018-04-10 Thread Gabriel - Iulian Dumbrava
Please take a look at this comparison grid. At least one of those packages allows automatic filtering of queries if you set it up properly. For example, each table must have that 'organisation' field to filter on it. marți, 10 aprilie 2018,

Re: Django and Live Chat

2018-04-10 Thread Jason
check out django-channels. but this is a pretty big feature you're looking into with lots of extra required infrastructure. On Tuesday, April 10, 2018 at 1:53:29 AM UTC-4, Haroon Ahmed wrote: > > Hi, > > I am using Django 1.9.8 and Python 3.4.4, will upgrade my django to > 1.11, > I

Re: How to restrict Model.objects.all() to data pertaining to one organization

2018-04-10 Thread Jason
Looking at your SO question, seems to me you're expecting some magic to happen without any pertinent information available to execute that filter. There are a couple things I can think of to add more information to the incoming request to help you use the custom model manager. For example,

Re: How to restrict Model.objects.all() to data pertaining to one organization

2018-04-10 Thread Jani Tiainen
Hi. Model.objects.filter (organization=organization) Or did you mean something else? ti 10. huhtikuuta 2018 klo 14.03 Mauro Crociara kirjoitti: > Hi everyone, > > I posted this question >

How to restrict Model.objects.all() to data pertaining to one organization

2018-04-10 Thread Mauro Crociara
Hi everyone, I posted this question on Stackoverflow almost 4 months ago and asked a couple of times on #django IRC channel on Freenode, but none gave me a suggestion about

username and allowed alphanumeric, why?

2018-04-10 Thread Stefano Tranquillini
Hi all, mostly curiosity, why does the username https://docs.djangoproject.com/en/1.11/ref/contrib/auth/#django.contrib.auth.models.User.username allow only _, @, +, . and - characters? is there a reason for that? -- You received this message because you are subscribed to the Google Groups