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
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,
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"
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:
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:
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
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
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
(.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,
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:
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
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),
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
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
...
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.
>>
>
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:
>>
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
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
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
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
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
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
>
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 =
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
>
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,
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"
26 matches
Mail list logo