channels v2.0.0 disconnect function not triggering

2018-02-05 Thread Ahmed Magdy
It seems like I cannot get the disconnect function in the consumer to get called at all. class ChatConsumer(WebsocketConsumer): def connect(self): self.accept() def disconnect(self): print('disconnected') Using self.close from the consumer, or closing the javascript

chemistry character set

2018-02-05 Thread Mike Dewhirst
Chemical names start with both upper and lower case as well as Greek characters. Chemical names also exist in multiple non-western non-latin languages. To get lists of chemicals sorting more or less "correctly" I currently slugify with allow_unicode=True. This for example gets tert-Butyl...

I hope to increase OneToOne mode GenericForeignKey

2018-02-05 Thread Ma Mars
I hope to increase OneToOne mode GenericForeignKey, For example, a passport (one user has only one passport, but there are many user roles, such as staff, drivers, customers, but they are one to one) -- You received this message because you are subscribed to the Google Groups "Django users"

Re: javascript transpilers

2018-02-05 Thread Mike Dewhirst
Much appreciated. I'll definitely take your advice. Cheers M On 6/02/2018 2:26 AM, Matemática A3K wrote: On Thu, Feb 1, 2018 at 8:27 PM, Mike Dewhirst > wrote: On 2/02/2018 12:54 AM, Jason wrote:

Re: import eror views

2018-02-05 Thread sum abiut
shows us your url.py On Tue, Feb 6, 2018 at 12:11 AM, sarvit sarvit wrote: > hello > please help for dibog > Traceback (most recent call last): > File "c:\Users\saeid\Desktop\sade\env\Post\Post\urls.py", line 20, in > > from . import views > ImportError:

Re: django-channels 2.0 websocket connection problem (error 500)

2018-02-05 Thread Andrew Godwin
Have you upgraded to the most recent version of Daphne? There was a bug where tracebacks weren't printing sometimes that I fixed over the weekend. Andrew On Mon, Feb 5, 2018 at 9:21 AM, Alberto Buratti < alberthohenstau...@gmail.com> wrote: > Hello, > I've just installed django-channels 2 and

django-channels 2.0 websocket connection problem (error 500)

2018-02-05 Thread Alberto Buratti
Hello, I've just installed django-channels 2 and followed the installation instructions. I've got this error while trying to connect a websocket to my application: Browser console: websocketbridge.js:118 WebSocket connection to 'ws://127.0.0.1:8000/userlocation/' failed: Error during WebSocket

Re: Travis Problem

2018-02-05 Thread Andy Grabow
Thx i will test those versions myself. -- 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

Re: Travis Problem

2018-02-05 Thread Matemática A3K
(.env) rodrigo@enoch:~/code/django-secrets$ python --version Python 3.5.2 (.env) rodrigo@enoch:~/code/django-secrets$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS" (.env) rodrigo@enoch:~/code/django-secrets$ On Mon,

Re: Travis Problem

2018-02-05 Thread Andy
which python version did you use and which operating system? Am Montag, 5. Februar 2018 16:49:26 UTC+1 schrieb Matemática A3K: > > rodrigo@enoch:~/code$ git clone g...@github.com:kakulukia/django-secrets.git > Clonar en «django-secrets»... > remote: Counting objects: 157, done. > remote:

Re: Django 2.0.2 not work with Jinja 2 (admin side)

2018-02-05 Thread Tim Graham
The admin doesn't support Jinja2. If you're using Jinja2, you must also have a DjangoTemplates backend defined in your TEMPLATES to use the admin. On Saturday, February 3, 2018 at 7:26:33 PM UTC-5, Николай Инкогнито wrote: > > /admin/ > - raise error > -- You received this message because you

Re: Travis Problem

2018-02-05 Thread Matemática A3K
rodrigo@enoch:~/code$ git clone g...@github.com:kakulukia/django-secrets.git Clonar en «django-secrets»... remote: Counting objects: 157, done. remote: Compressing objects: 100% (58/58), done. remote: Total 157 (delta 48), reused 66 (delta 30), pack-reused 67 Receiving objects: 100% (157/157),

Re: Travis Problem

2018-02-05 Thread Andy
No, the actual problem is, that the secrets modules was not reloaded correctly and thus the tested SECOND_SECRET could not be found. BUT the question is, why this is happening, because testing the same thing locally (under the same python version failing at travis) works like it should. If you

Re: Travis Problem

2018-02-05 Thread Matemática A3K
On Mon, Feb 5, 2018 at 12:23 PM, Andy wrote: > Which line number are you referring to? > i didnt notice missing vars. > got secret from environment variable (SECOND_SECRET) E Use these lines to initialize your secrets .. export SECRET_KEY="travis" E ...

Re: javascript transpilers

2018-02-05 Thread Matemática A3K
On Thu, Feb 1, 2018 at 8:27 PM, Mike Dewhirst wrote: > On 2/02/2018 12:54 AM, Jason wrote: > >> https://caniuse.com/#feat=wasm >> >> >> IIRC wasm is not polyfillable or transpilable, so if you're targeting >> users on any of those red cells, then wasm is not for you. >> >

Re: Travis Problem

2018-02-05 Thread Andy
Which line number are you referring to? i didnt notice missing vars. Am Montag, 5. Februar 2018 15:50:14 UTC+1 schrieb Matemática A3K: > > > > On Thu, Feb 1, 2018 at 9:58 AM, Andy > wrote: > >> Hi, >> >> im trying to convince Travis to test my app: >>

Re: Django Login Popup forms.

2018-02-05 Thread Matemática A3K
On Wed, Jan 31, 2018 at 8:36 PM, Udit Vashisht wrote: > Hi, I want to create a popup form for login. I have implemented the same > for signup by creating jsonresponse from signup view. But i could not do > the same for the login form. Can anyone help. > > Popus are

Re: Customizable Invoice

2018-02-05 Thread Matemática A3K
On Thu, Feb 1, 2018 at 7:46 AM, Rakhee Menon wrote: > Hi Andreas, > > Yeah you are right I want to create a backend solution for storing the > information about the invoices once any changes are done in the invoice > format. > For instance a customer might change the

Re: Travis Problem

2018-02-05 Thread Matemática A3K
On Thu, Feb 1, 2018 at 9:58 AM, Andy wrote: > Hi, > > im trying to convince Travis to test my app: > https://github.com/kakulukia/django-secrets > > But its failing for all python3 versions. Because my system python 3 is > 3.6.4 i just installed pyenv, created a 3.6.3

Re: In the Admin, Is it possible to make filters on foreign keys usable with lots of related objects?

2018-02-05 Thread Matemática A3K
On Fri, Feb 2, 2018 at 3:23 PM, Paul Tiplady wrote: > Currently it's simple to configure a filter on a foreign key in the admin: > > `list_filter = ['theforeignkeyfield']` > > However in practice this is barely usable in most cases that I've > encountered, since the admin uses

Re: Django 2.0.2 not work with Jinja 2 (admin side)

2018-02-05 Thread Matemática A3K
You have to provide a traceback in order to get some help On Sat, Feb 3, 2018 at 9:26 PM, Николай Инкогнито wrote: > /admin/ > - raise error > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this

Re: import error

2018-02-05 Thread Matemática A3K
On Mon, Feb 5, 2018 at 10:59 AM, sarvit sarvit wrote: > is not app > views.py > from django.http import HttpRequest > > def index(request): >return HttpRequest("Hello World.") > > urls.py > > from django.shortcuts import render > from django.conf.urls import url >

Re: import error

2018-02-05 Thread sarvit sarvit
is not app views.py from django.http import HttpRequest def index(request): return HttpRequest("Hello World.") urls.py from django.shortcuts import render from django.conf.urls import url from django.contrib import admin from django.urls import path from views.py import views urlpatterns =

Re: import error

2018-02-05 Thread pradam
Bro, do it like this: from *your_app_name* import views On Mon, Feb 5, 2018 at 6:54 PM, sarvit sarvit wrote: > Hello > I importing error > Please help me > from django.shortcuts import render > from django.conf.urls import url > from django.contrib import admin >

import error

2018-02-05 Thread sarvit sarvit
Hello I importing error Please help me from django.shortcuts import render from django.conf.urls import url from django.contrib import admin from django.urls import path from . import views Traceback (most recent call last): File "c:\Users\saeid\Desktop\sade\env\Post\Post\urls.py", line 20,

import eror views

2018-02-05 Thread sarvit sarvit
hello please help for dibog Traceback (most recent call last): File "c:\Users\saeid\Desktop\sade\env\Post\Post\urls.py", line 20, in from . import views ImportError: cannot import name 'views' -- You received this message because you are subscribed to the Google Groups "Django users"