Re: Trouble deploying csrf in Django 1.6

2017-05-15 Thread Antonis Christofides
Hi, as you probably know, support for Django 1.6 ended a long time ago, so you'd better upgrade to 1.11 (1.8 is still supported but it's getting old). It might not affect this particular problem, but eventually you'll need to do it. As to what you are asking, I guess that without some more inform

Re: django channels failed to load resources

2017-05-15 Thread djangorobert
Uncaught ReferenceError: channels is not defined at HTMLDocument. ((index):51) at j (jquery.min.js:2) at k (jquery.min.js:2) Thinking part of the problem is in this scripts not sure

FilePathField intialized with an object implementing __str__ works as model field but not the corresponding form field

2017-05-15 Thread jgomo3
I set a models.FilePathField with the path attribute as an instance of an object implementing __str__. I works well until I needed to get the corresponding Form Field. It caused the following error: TypeError: listdir: path should be string, bytes, os.PathLike, integer or None, not StringSe

Trouble deploying csrf in Django 1.6

2017-05-15 Thread NoviceSortOf
I'm having trouble deploying csrf in Django 1.6 When I enable csrf in settings either we get a Django error or accounts can't login. Are there any special considerations for deploying csrf protection in 1.6? I heard there was a utility for checking csrf in Django, where can I get that utilit

django channels failed to load resources

2017-05-15 Thread djangorobert
When I run the code my website runs but is not doing anything with channels my address is www.openchat.us nothing happens on the page but when you right click with Google browser in developer tools I see failed to load resources is this a static issue I did do python manage.py collectstatic and

what on earth is this and how do I access 2 particular values to 2 keys

2017-05-15 Thread MikeKJ
(cardInfo){ ShellData = (ShellData){ availableShellActions[] = "CHANGE_SHELL_ITERATION_NUMBER", None, "IPE_FULFILMENT", "LIST_SHELL", None, isrn = "" products[] = (Product){

Re: CPU usage by workers

2017-05-15 Thread qnub
Thanks for suggestions but i have found nothing suspicious. But i've installed pyinotify and switch to running workers in separate processes manually instead of using --threads option. Not sure which of this actions helps more but now CPU usage floating around 15-25% On Wednesday, May 10, 2017

Re: Model representation with FK, exceeding queries

2017-05-15 Thread Cleiton Lima
I just found the problem. The plugin I use to render this select is breaking in django 1.11. I really did not see this problem. Em sexta-feira, 12 de maio de 2017 14:03:23 UTC-3, Cleiton Lima escreveu: > > I do not know if it is a bug or ha

Email conformation problem

2017-05-15 Thread Ismail Sarenkapic
from django.conf import settings from django.contrib.auth.models import ( BaseUserManager, AbstractBaseUser ) from django.contrib import messages from django.core.mail import send_mail from django.conf import settings from django.core.validators import RegexValidator from django.db import mod