Re: Django attempting to connect to mysql without password even when password has been provided

2018-05-27 Thread Coder Dude
I tried that. Still Doesn't work. I am using django 2.0. I found a stackoverflow thread which suggests that it might be a bug with pymysql along with mysql8. It works properly when i create a user without password and provide it's credentials. https://stackoverflow.com/questions/50336458/pymys

Re: Authenticate with mobile number(duplicate mobile number)

2018-05-27 Thread lakshitha kumara
Hello Jason, Thank you fro your suggestion. but thing is im getting mobile number like this . user can enter the email or mobile number. if user enter mobile numbe

Re: Need help

2018-05-27 Thread Umar Kambala
Thank u will try it On May 27, 2018 7:01 PM, "Dheeraj Singh" wrote: > I will encourage you to use pyCharm for same it will give you kick start > > On Sun, May 27, 2018 at 7:14 PM, Umar Kambala > wrote: > >> I wans to start a new project on de django web development but wen I type >> >django-admi

How to update Django 2 JSON FIeld?

2018-05-27 Thread Mark Phillips
I have a model called Document with a field called metadata defined as JSONField(blank=True). I want to be able to search the Document model for a certain key in the metadata field, and change that key. For example, there is a key 'People' in some of the Document objects, and I want to change that

Re: Django attempting to connect to mysql without password even when password has been provided

2018-05-27 Thread Daniel Germano Travieso
Hello! What version of Django are you running? You may need to provide extra info such as host and port DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mydatabase', 'USER': 'mydatabaseuser', 'PASSWORD': 'mypassword', 'HOST': '1

Re: Need help

2018-05-27 Thread Dheeraj Singh
I will encourage you to use pyCharm for same it will give you kick start On Sun, May 27, 2018 at 7:14 PM, Umar Kambala wrote: > I wans to start a new project on de django web development but wen I type > >django-admin startproject mysite I get this error > CouldNotFoundError:No module name 'djan

Re: help me out

2018-05-27 Thread Aristeidis Almpanis
Good day, Please be more careful when asking a question and provide more details. For example include in your email all the python traceback info. >From the error you described: "NameError: name 'template' is not defined" it seems that you are referring to a "template" variable in your code that

Re: Need help

2018-05-27 Thread Zahid Hossain
Install django latest version On Sun, May 27, 2018 at 7:44 PM, Umar Kambala wrote: > I wans to start a new project on de django web development but wen I type > >django-admin startproject mysite I get this error > CouldNotFoundError:No module name 'django.template' plz help me out > > -- > You r

Re: Authenticate with mobile number(duplicate mobile number)

2018-05-27 Thread Jason
from my perspective: you can do two things. First and easiest, is to have the user include the country code when registering. So if they get a duplicate phone number, that's not your fault. Second, and more complicated, is to use a pre-save db signal to execute the user country lookup by IP

Need help

2018-05-27 Thread Umar Kambala
I wans to start a new project on de django web development but wen I type >django-admin startproject mysite I get this error CouldNotFoundError:No module name 'django.template' plz help me out -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

Authenticate with mobile number(duplicate mobile number)

2018-05-27 Thread lakshitha kumara
Hello guys I have some issue in user Authenticate System for example there are tow country called X and Y this two country phone code is +9 and +10 (this is only for example) . this two country have two people name called R and M. R person mobile is +9123456789 and M person mobile number is +10

Django attempting to connect to mysql without password even when password has been provided

2018-05-27 Thread Coder Dude
This is the code in my settings.py : import pymysql pymysql.install_as_MySQLdb() DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'learn001', 'USER': 'test01', 'PASSWORD': 'test01', #Password is also test01 } } Yet , it is thro

Re: Django channels with python background tasks

2018-05-27 Thread Roger Gammans
Jaiswal, Either my solution 1 or 2 will solve your problem, or rewriting your scripts as management commands (which is probably the easiest route). If you want to keep them separate :- For solution 1; I would look at using the requests library (see https:/ /pypi.org/project/requests/ ) in your back

Re: Django channels with python background tasks

2018-05-27 Thread Umar Kambala
Please when I runserver I gets this error, NameError:name 'template' is not defined. My templates are in this dir mysite/personal/templates/personal. What's my problem? On May 27, 2018 9:04 AM, "Roger Gammans" wrote: > I think there is a little bit of confusion in this thread,a s we keep talk > a

Re: help me out

2018-05-27 Thread Umar Kambala
Good day Plz I have a problem, on mysite I have the following mysite/personal/templates/personal but wen I runserver it gives me "NameError: name 'template' is not define.. Please can u help me locate the problem? Thank u On May 24, 2018 4:56 PM, "Melvyn Sopacua" wrote: > On donderdag 24 mei 2018

Re: Django channels with python background tasks

2018-05-27 Thread Sourabh Jaiswal
Hi Roger, Thanks for your reply. Yes you are correct. There are actually 2 modules of this project:- 1. Django front end which is totally isolated in itself if I talk about it with back-end reference. And currently it has no mechanism whatsoever to communicate with back-end. 2. python based bac

Re: Django channels with python background tasks

2018-05-27 Thread Roger Gammans
I think there is a little bit of confusion in this thread,a s we keep talk about django and the deamon process and ignoring the frontend. So to clarify; there we are talking about a system with at least 3 execution environments: 1 The Browser2 Django backend processes3 The backend daemon/cli -proce

Re: Django channels with python background tasks

2018-05-27 Thread Sourabh Jaiswal
HI Ryan, The back-end script in this case is not only doing telnet. Its getting data from multiple network elements using telnet and multi-threading. There are multiple threads started when I start the backend script which takes monitoring data from diff-diff network elements at the same time.

Re: Django channels with python background tasks

2018-05-27 Thread Sourabh Jaiswal
Hi Andrew, Thanks a lot for your reply. For a fast and easy approach I need the backend to be able to tell its status when asked by Django and be able to act when django sends some activity events. The back end will be a long running program which will run in an infinite loop once started by d