Re: Multiple websocket connection vs single websocket connection when using django channels

2018-04-07 Thread Robin Lery
Yes, I guess that's how to work around per connection for a user. Thank you for your input! On Fri, Apr 6, 2018 at 9:49 PM, Ken Whitesell wrote: > Hi Robin, > > I can't speak to any generalized situations, or what might be considered > "best practices" or most optimal.

Re: A first time programmer

2018-04-07 Thread Andréas Kühne
I would also recommend you start with a tutorial. The django tutorial on the docs page is ok, but the djangogirls tutorial is pretty extensive - try that and you should get some of your answers at least : https://tutorial.djangogirls.org/en/ Best regards, Andréas 2018-04-07 18:19 GMT+02:00

Re: FOREIGN KEY constraint failed

2018-04-07 Thread Christophe Pettus
> On Apr 7, 2018, at 12:27, DIlIMBEK TURANOV wrote: > File "/home/den/HTML_Projects/HTML5/test_project/orders/views.py" in checkout > 59. order = Order.objects.create(user=user, customer_name=name, > customer_phone=phone, status_id=1) You're most likely

FOREIGN KEY constraint failed

2018-04-07 Thread DIlIMBEK TURANOV
Environment:Request Method: POSTRequest URL: http://127.0.0.1:8000/checkout/Django Version: 2.0.3Python Version: 3.5.2Installed Applications:['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',

Re: Using channels, how to send a notification to single user by model changed trigger event?

2018-04-07 Thread Andrew Godwin
Make a Group per user, and then send to that group. You should treat a user as a group as they may have multiple windows or tabs open. Andrew On Sat, Apr 7, 2018 at 7:02 AM, wrote: > This example showed > in django

I'm trying to edit address form for Saleor ecommerce platform

2018-04-07 Thread ruslan.aldar
hello. I'm trying to build an local merchant website. So I don't know how to edit address form for Saleor. It uses google i18n address form. and when i'm trying to delete some fields like company_name, city city_area, postal_code, country, country_area, i'm having problem. on the page :

Using channels, how to send a notification to single user by model changed trigger event?

2018-04-07 Thread mickey102644
This example showed in django project how to use channels package (channel 2). But here I can't find out sending data to a single user. I'm trying to send notification to user by using channels package. If someone know, pls tell me. -- You

Re: Verify Emails

2018-04-07 Thread 'Anthony Flury' via Django users
why not use an email validator provided by Django ? https://docs.djangoproject.com/en/2.0/ref/validators/#emailvalidator The problem with the pypi module is that to validate that an email exists it simply looks for server in DNS (which is slightly better than the Django validator), but that

Re:how to create Django administration

2018-04-07 Thread PRADEEP SINGH
Sent from RediffmailNG on Android From: ansh srivastav ansh.srivastav...@gmail.com Sent: Sat, 7 Apr 2018 21:49:20 GMT+0530 To: django-users@googlegroups.com Subject: Re: A first time programmer First check the version of python, then type :django-admin startproject projectname. On 7 Apr

Re: A first time programmer

2018-04-07 Thread ansh srivastav
First check the version of python, then type :django-admin startproject projectname. On 7 Apr 2018 04:03, "Paul Baforh" wrote: Please programmers, how do I engage django because i get syntax error i type in this code - $ django-admin startproject mySite ---

Re: A first time programmer

2018-04-07 Thread James Farris
No one can walk you through how to use Django in this group. That is too much to explain. I recommend choosing a plain text editor like Sublime Text or many others that are free in order to start working on any coding project. Then once you have that, read the documentation and follow this

Re: new Feature: yay or neigh?

2018-04-07 Thread Jani Tiainen
Hi, If you want to prove your idea useful write a template tag and try ti get people to use it. la 7. huhtikuuta 2018 klo 10.04 Samuel Muiruri kirjoitti: > Hey guys, > Think this would be a neat feature to add to django. > > {% if request.connection %} > #if

Re: new Feature: yay or neigh?

2018-04-07 Thread Julio Biason
My 2 cents: 1. Django )and it's template system) runs on server. When I'll the serve not have a connection? If the sever doesn't have a connection, it will not sis anyway. 2. What you want is probably develop a PWA with offline support. This is kinda built in in most browse using

Re: Using other schema in PostgeSQL

2018-04-07 Thread john fabiani`
https://stackoverflow.com/questions/1160598/how-to-use-schemas-in-django?utm_medium=organic_source=google_rich_qa_campaign=google_rich_qa Johnf On 04/06/2018 05:28 PM, Michel Vega Fuenzalida wrote: Hello people, I'm using PostgeSQL not using the public schema but a different one named:

Re: A first time programmer

2018-04-07 Thread Sherine Tresa
i am a first time user.and i don't know how to open and type code in it. the error corrected when i typed the pip install statement in commandprompt outside. i need to know how to start using django? On Sat, Apr 7, 2018 at 9:57 AM, James Farris wrote: > Hi, > > If you type

Re: Verify Emails

2018-04-07 Thread Jani Tiainen
Hi, Nothing prevents you to create django validator that does use that package. Including functionality that package provides would add more dependencies to Django (pyDNS) which greatly reduces chances to get existence verification into Django itself. And Django already has email validator

Re: new Feature: yay or neigh?

2018-04-07 Thread Melvyn Sopacua
On zaterdag 7 april 2018 09:02:52 CEST Samuel Muiruri wrote: > Hey guys, > Think this would be a neat feature to add to django. > > {% if request.connection %} > #if there's a connection to the internet returns True, by default tries > to connect to google > {% else %} > #could for

Verify Emails

2018-04-07 Thread Samuel Muiruri
There's a python package for validating emails exists "validate_emails" https://pypi.python.org/pypi/validate_email think it would be useful to include it's features inside django so you can parse if emails exists before sending so you only send emails to those emails that *do *exists and also use

new Feature: yay or neigh?

2018-04-07 Thread Samuel Muiruri
Hey guys, Think this would be a neat feature to add to django. {% if request.connection %} #if there's a connection to the internet returns True, by default tries to connect to google {% else %} #could for example load local js/css files instead of from cdn {% endif %} primarily could be

Re: How to use Graphviz/Networkx in django?

2018-04-07 Thread Jani Tiainen
Hi, You could take a look at django-extensions how it generates graphs from models as an inspiration. pe 6. huhtikuuta 2018 klo 21.17 kirjoitti: > Thanks a lot for your help! > But since the data that needed to be visualized is already shown in the > page, generate input

Re: Using other schema in PostgeSQL

2018-04-07 Thread Jani Tiainen
You can give search path in database options which IMO is cleanest option you can have now. See https://stackoverflow.com/questions/31726064/how-to-connect-to-multiple-postgresql-schemas-from-django For example how to do that. la 7. huhtikuuta 2018 klo 4.15 Michel Vega Fuenzalida