Migrations File too Large preventing Migrate

2019-05-19 Thread Yoo
In Django 2.2, I run makemigrations then migrate. I wait approx. 5-7 minutes and then I get "Fatal Python error: Cannot recover from stack overflow." "Current thread 0x0002094 (most recent call first):" yada yada "File "manage.py", line 17 in main "File manage.py line 21 in " End. I check

LookupError: No installed app with label 'admin'.

2019-05-19 Thread This is a test message
Hi, I am new to django and am trying out the tutorial. Get the following error: 1. Create a virtual environment using anaconda 2. Activate the virtual environment 3. Create the project 4. Get the following error when trying to start the server: Directory of C:\Users\bradl\Documents\web

Re: Implementing multiple session support in a chatbot

2019-05-19 Thread Chetan Ganji
Hi Parth, There is only one solution. It has two parts in which you will implement 2 design patterns for the chatbot. *Singleton* and *Observer*. RE : Where would you use it? nikola = Chatbot() # it is called instantiating the chatbot Wherever it is required :P The idea is to create one and

Re: Implementing multiple session support in a chatbot

2019-05-19 Thread Parth Sharma
Thanks a lot for your reply ! In the first part of your reply. I didn't really understand where exactly would I actually use this nikola = Chatbot() and in which files would I import it? Can you please elaborate on the second solution a bit? On Sunday, 19 May 2019 02:59:30 UTC+5:30, Chetan

Re: Porting Django app

2019-05-19 Thread PASCUAL Eric
Hi, You can avoid dealing with IPs directly, considering that mDNS is available by default on Debian based distros (hence Ubuntu). Thanks to this, the server is published as ".local". mDNS is not installed by default in Windows, but it seems that it changed with Windows 10. Best Eric

Customising django user model

2019-05-19 Thread Sipum
Hello Friends, I want to customise django default user table and which should consist of name,phone, email and gender. And after that when every time a user logs in, he/she should able to log in through an OTP to phone or email. can anyone guide me What to do here.?? Thanks. Sipum -- You

Re: Porting Django app

2019-05-19 Thread Chetan Ganji
Python is said to be interpreted language. But the c python implementation is exactly like java i.e. is compiled + interpreted and runs on a virtual machine. Maybe that how Java got their idea :P Pypy is another python implementation which has a JIT compiler, please check if it helps your