Re: importError: Count Not import Django inside Virtualenv

2018-02-13 Thread tango ward
Hi Eric, I tried what you suggested and it works! I was just wondering why my existing pet projects have the same problem? On Wed, Feb 14, 2018 at 10:13 AM, tango ward wrote: > Hi, > > The error message that I am getting is: > > Traceback (most recent call last): >

Re: importError: Count Not import Django inside Virtualenv

2018-02-13 Thread tango ward
Hi, The error message that I am getting is: Traceback (most recent call last): File "manage.py", line 8, in from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django' The above exception was the direct cause of the following exception:

Re: How many live websocket connection can django channels handle?

2018-02-13 Thread Andrew Godwin
What it can handle depends on your setup. If you're using Channels 1, there's potential bottlenecking in the Redis channel layer. Channels 2 is much easier to scale and you can just add more servers as your load demands. I would suggest reducing your websocket load, but it's your call which is

Re: importError: Count Not import Django inside Virtualenv

2018-02-13 Thread PASCUAL Eric
Hi Jarvis, Can you provide the error messages trace ? It can greatly help understanding what's happening. If you haven't already done this, try to restart from a fresh new virtualenv inside which you'll install Django and the additional packages you've added (if any). Then restore a copy of

Syntax Error when trying to migrate to Postgresql

2018-02-13 Thread Joe
I have installed django, Postgresql, and psycopg2 and went to migrate a project to a new database I created on postgresql, This is the error message I got. Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File

How many live websocket connection can django channels handle?

2018-02-13 Thread John Conner
I'm working on a project where a user could have up to 10 websocket open at the same time. 2 of the connections will need to send and receive every min or seconds while the rest are not very intensive(one send and receive every 5min to 10 hour). user base could range from 10,000 to 10,000,000.

Django-hotsauce 1.0 commercial edition looking for beta testers!

2018-02-13 Thread Etienne Robillard
Hello everyone, Django-hotsauce 1.0 commercial edition (LTS) is now available for preorder :) Checkout: https://www.livestore.ca/product/django-hotsauce/ I'm also looking for expert Django and Python programmers to test and review the design and API of Django-hotsauce 1.0 commercial edition

Re: importError: Count Not import Django inside Virtualenv

2018-02-13 Thread Jason
if pip freeze doesn't include django in the output, then the django package is not installed in the virtualenv. are you sure the virtualenv was active when you installed django? also, remember that if you installed latest django, eg *pip install django*, it won't install for python2 venvs.

Migrating into Django 1.9; question about autoescape

2018-02-13 Thread Daniel Roseman
autoescape has defaulted to on since before Django 1.0; it was a massive change at the time. The only change in escaping behaviour in 1.9 was around the output of simple tags, see https://docs.djangoproject.com/en/2.0/releases/1.9/#simple-tag-now-wraps-tag-output-in-conditional-escape - this

importError: Count Not import Django inside Virtualenv

2018-02-13 Thread tango ward
Hi, I want to seek some advice about the error. All of my pet projects in my desktop are getting the same error even though virtualenv is activated. I can confirm that when I started playing around with the projects, I have installed Django inside virtualenv without using "sudo". Now, I can't run

Re: Where use JSON in Django?

2018-02-13 Thread M Hashmi
JSON is parsing in and out information from JS to Python or Django in your case directly. For instance let's suppose you have a JS script in your template and you need to pass your context variables into JS code as variables. You can jsonify your request/response to get or post data. A good

RE: Migrating into Django 1.9; question about autoescape

2018-02-13 Thread Matthew Pava
At first, I would do your step 1. I would check for any other errors in Django 1.8, and then proceed with updating to 1.9 -> 1.10 -> 1.11 -> 2.0. You are probably going to find other issues that need to be resolved in those upgrades. Ultimately, you will probably have to do step 3. I

Where use JSON in Django?

2018-02-13 Thread Hayk Manukyan
Maybe my question is stupid but I want understand where and why developer need use json. project on github this is my project. In templates used

Migrating into Django 1.9; question about autoescape

2018-02-13 Thread Bill Torcaso
Hello all, I have the task of migrating a very old website from Django 1.7 to either Django 1.11 or 2.0, depending on the effort. My plan is to go from 1.7 --> 1.8 --> 1.9 -->1.10 --> 1.11, adapting the codebase as I go. It's been easy enough until I arrive at 1.9, and the change in

Re: Basic note/trello app - how to link model object IDs

2018-02-13 Thread Gonzalo Delgado
Hi Lylio, On 12/2/18 16:20, Lylio wrote: > 1. To click on a card so it opens up and displays the details, am I right > to say I should create a card.html file in the templates folder for this? It isn't necessary, but it is a good idea What you need is to create a view that renders such template.

Re: Saving Json data from javascript

2018-02-13 Thread Etienne Robillard
I'm not really sure what you meant here. Anyways, there's plenty of good JS frameworks like jQuery to allow you to write Ajax functions to send a JSON array for post-processing in Django. Etienne Le 2018-02-13 à 08:34, Shazia Nusrat a écrit : Can you please show me any example about the

Re: Saving Json data from javascript

2018-02-13 Thread Shazia Nusrat
Can you please show me any example about the structure of code I've provided? Thanks On Tue, Feb 13, 2018 at 2:27 AM, Etienne Robillard wrote: > Hi Shazia, > > You can make a XHR (Ajax) request in javascript to send the data to a > django callback. > > HTH, > > Etienne > >

Re: How to fetch data from sql server and display on django web pages

2018-02-13 Thread PASCUAL Eric
Hi, > You may want to check out sqlalchemy they provide a pretty good documentation > on what you are aftering For my understanding, why are you suggesting to use SQLAlchemy while Django provides an ORM out of the box ? SQLAlchemy is required for frameworks such as Flask, which do nothing

i need to highlight the current page in navbar.!!its work!! but i extends new html page the navigation bar can't show ????

2018-02-13 Thread varun kishore Ravi
DASHBOARD EVENT LOBBIES MARKET ONLINE PLAYERS SUBSCRIBE $(function () { setNavigation(); }); function setNavigation() { var path = window.location.pathname; path = path.replace(/\/$/, ""); path = decodeURIComponent(path);

Re: Saving Json data from javascript

2018-02-13 Thread Etienne Robillard
Hi Shazia, You can make a XHR (Ajax) request in javascript to send the data to a django callback. HTH, Etienne Le 2018-02-12 à 18:04, Shazia Nusrat a écrit : Hi, Below is the code for Javascript from Django template Google Maps API. I need to be able to save this in my Django models

Re: BooleanField ignored by makemigrations Django 2.0

2018-02-13 Thread Andy
Your app is most likely not listed in installed_apps when makemigrations is not picking up anything. Or its just because you named it model.py instead of models.py? Is any other model of that app picked up by makemigrations? Am Donnerstag, 8. Februar 2018 23:28:19 UTC+1 schrieb Gary Mumford: >