Is it possible to swap 1.8 and 1.10/1.11 Admin static files

2017-05-16 Thread Mike Dewhirst
I have a user who is keen to revert to the "old" 1.8 look and feel for his company now that we have upgraded to 1.10. First question is it even possible? I have tested this using blunt force and at first glance it *seems* possible in both directions. However I have a suspicion there might be

Re: vs {{ form }}

2017-05-16 Thread guettli
Am Mittwoch, 10. Mai 2017 10:56:56 UTC+2 schrieb Melvyn Sopacua: > > On Tuesday 09 May 2017 14:08:44 Jani Tiainen wrote: > > > > > And to use bootstrap you don't need any special package, you can do it > > > without it just fine. > > > > To render a webpage, you don't need Django you can do j

Re: vs {{ form }}

2017-05-16 Thread Jani Tiainen
Hi, "rightway" to do things is to keep rendering (html) in the place where it belongs to - in templates. That's the main functionality of templates. Unfortunately traditionally Django forms have been doing things wrong and pushed HTML rendering to Python code - bascially to change your HTML

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

2017-05-16 Thread James Schneider
On May 15, 2017 2:02 PM, "jgomo3" wrote: 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

Email conformation system-how to set submited emails to recipient_list in signal

2017-05-16 Thread Ismail Sarenkapic
I successfully,manually sent an email to specific email address and activated the user but I cannot figure out how to: *1* Set submitted emails into recipient_list in my *post_save_activation_receiver* signal,since email field itself is defined in other model(if it is possible)? *2* Make thi

Re: Trouble deploying csrf in Django 1.6

2017-05-16 Thread NoviceSortOf
Thanks for the reply. Upgrading to 1.11 is beyond the budget according to management. So I'm stuck with 1.6 for now. The upgrade from 1.1 to 1.6 took much more time that expected. Anyhow after a reboot today csrf is working as expected. I'm still mystified as to what the problem may of been. My

Is an upgrade from 1.6 to 1.11 as complicated as migrating from 1.1 to 1.6?

2017-05-16 Thread NoviceSortOf
It's said here 1.11 is the recommended version of Django. Our upgrade from 1.1 to 1.6 took much more time that expected, and management does not want to upgrade again. In terms of best practice though I'd like to push for it. * Is an upgrade from 1.6 to 1.11 as complicated as migrating from 1.1

Re: Is an upgrade from 1.6 to 1.11 as complicated as migrating from 1.1 to 1.6?

2017-05-16 Thread Mike Dewhirst
Go from 1.6 to 1.8.18 which is still supported and is easy. Buy some time. Actually all the upgrades are easy. Well up to 1.10. I skipped 1.9 and haven't tried to go to 1.11. Good luck Connected by Motorola NoviceSortOf wrote: > > >It's said here 1.11 is the recommended version of Django. >

TemplatedDoesNotExist

2017-05-16 Thread Nathan Lea
hi guys, Im a new otree user and Im trying to practice myself with "public good". Im currently facing a troubleshoot when it's time to launch the game. In fact when i click on a link provided after starting a new session, it shows me a message telling me that my templates aren't quietly

Re: Is an upgrade from 1.6 to 1.11 as complicated as migrating from 1.1 to 1.6?

2017-05-16 Thread Andréas Kühne
I upgraded from 1.3 to 1.5. That was the hard part I think. We are currently running version 1.10 and the updates to that version have been without a problem. That being said - it all depends on what your application does. If you do a lot of things that are specific for your application. The main p

Re: TemplatedDoesNotExist

2017-05-16 Thread Andréas Kühne
Hi, Are you getting a TemplateDoesNotExist error when using the runserver command? That PROBABLY doesn't have anything to do with your PyCharm setup - but rather with how you have included the templates in your settings. But to be able to help you, we need more information: 1. Which version of D

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

2017-05-16 Thread Derek
That does not appear to be a valid Python structure; I assume its generated by some third-party process - perhaps try and get it from them as a valid JSON file? On Monday, 15 May 2017 17:06:09 UTC+2, MikeKJ wrote: > > (cardInfo){ >ShellData = > (ShellData){ > availableShellAc

Re: Is an upgrade from 1.6 to 1.11 as complicated as migrating from 1.1 to 1.6?

2017-05-16 Thread Darrell Jonsson
Thanks Andreas, Looking at the docs its seems upgrading to 1.11 LTS would give us the longest future in terms of updates. Is there any reason we should consider 1.10 over 1.11? Thanks On 5/16/2017 3:11 PM, Andréas Kühne wrote: I upgraded from 1.3 to 1.5. That was the hard part I think. We

Re: Is an upgrade from 1.6 to 1.11 as complicated as migrating from 1.1 to 1.6?

2017-05-16 Thread NoviceSortOf
Thanks Mike, I might take you up on the 1.6 to 1.8.18 upgrade idea. On Tuesday, May 16, 2017 at 2:29:43 PM UTC+2, Mike Dewhirst wrote: > > Go from 1.6 to 1.8.18 which is still supported and is easy. Buy some time. > Actually all the upgrades are easy. Well up to 1.10. I skipped 1.9 and > haven'

Re: Is an upgrade from 1.6 to 1.11 as complicated as migrating from 1.1 to 1.6?

2017-05-16 Thread Andréas Kühne
The main problem is as I said earlier your implementation. There COULD be things that you use (like packages that aren't upgraded or code that doesn't work) which make the upgrade to 1.11 harder. But it should absolutely be possible. I would consider trying to get to 1.11 as it's like you said an

Subquery - Expression | Django 1.11.1

2017-05-16 Thread Алексей Широков
Guys help me figure it out. I use an example from the documentation https://docs.djangoproject.com/en/1.11/ref/models/expressions/#limiting-a-subquery-to-a-single-column >>> from datetime import timedelta >>> from django.utils import timezone >>> one_day_ago = timezone.now() - timedelta(days=1) >

Re: Django Channels: Multiple 'send' calls in the same consumer

2017-05-16 Thread Tristan Barry
Thank you very much for clarifying - I wasn't exactly sure how to approach this, but your response makes sense. Cheers! On Saturday, May 13, 2017 at 6:09:14 PM UTC-7, Andrew Godwin wrote: > > Hi Tristan, > > All messages sent from a consumer are delayed for sending until the > consumer exits to

Re: Django Channels: Multiple 'send' calls in the same consumer

2017-05-16 Thread djangorobert
Are you using this in production if so what service as in was or webfaction or azure u ask because I'm trying to use it but can't figure out what I'm doing wrong I'm using Andrew Godwin's multichat example from git hub -- You received this message because you are subscribed to the Google Groups

Re: vs {{ form }}

2017-05-16 Thread Russell Keith-Magee
On 16 May 2017, 12:51 AM -0700, guettli , wrote: > > I know that real super heroes prefer the hard way. I don't like the hard way. > Call me wuss, pussy, weenie if you want to. That kind of language is completely unnecessary. I don’t care how frustrated you are - the Django community code of c

Re: vs {{ form }}

2017-05-16 Thread knbk
On Tuesday, May 16, 2017 at 9:51:07 AM UTC+2, guettli wrote: > > > This is a basic fact, and AFAIK this basic question is not solved yet. > > {{ form }} * vs * {{ form }} > That question is actually answered by the documentation

Re: Subquery - Expression | Django 1.11.1

2017-05-16 Thread Simon Charette
Hello there, This is a bug, there's an open Django issue for it [0]. I suggest you don't rely on Subquery for simple pk lookups. Django supported direct query passing for as long as I can remember. See https://groups.google.com/d/msg/django-users/aq7mL9Opd-s/z2LZ1jXlCAAJ for more details. Chee

Django MultipleChoiceField and Multiple Checkbox

2017-05-16 Thread mukulmantosh91
If i select 5 checkboxes then 5 rows should be inserted in DB. I don't want to represent this form's selection in my database as comma separated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Django MultipleChoiceField

2017-05-16 Thread mukulmantosh91
If i select 5 checkboxes then 5 rows should be inserted in DB. I don't want to represent this form's selection in my database as comma separated values. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Re: Subquery - Expression | Django 1.11.1

2017-05-16 Thread Алексей Широков
Thanks Simon, I use `OuterRef` when building a queryset so` Subquery` is necessary for me. For myself, I solved the problem as follows: ... uuid__in=Subquery(queryset, output_field=models.IntegerField()) ... -- You received this message because you are subscribed to the Google Groups "Django

Re: Django MultipleChoiceField

2017-05-16 Thread carlos
maybe this thrird party app help you https://github.com/goinnn/django-multiselectfield or read the code and gives you an idea On Tue, May 16, 2017 at 9:39 AM, wrote: > If i select 5 checkboxes then 5 rows should be inserted in DB. I > don't want to represent this form's selection in my database

Re: Django MultipleChoiceField and Multiple Checkbox

2017-05-16 Thread carlos
maybe this thrird party app help you https://github.com/goinnn/django-multiselectfield or read the code and gives you an idea On Tue, May 16, 2017 at 9:44 AM, wrote: > If i select 5 checkboxes then 5 rows should be inserted in DB. I > don't want to represent this form's selection in my database

Matching query does not exist after a post_data signal, but in fact does exist when visiting the url sent by the query

2017-05-16 Thread François-Xavier Cao
Hi everone, I started to code a two-apps django project. ModelA belongs to appone and ModelB belongs to apptwo. My purpose is to create a ModelA instance everytime that the user creates a ModelB instance. And the value of a ModelA CharField (that is ckeditor widgeted) must be the source co

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

2017-05-16 Thread James Schneider
On May 15, 2017 8:06 AM, "MikeKJ" wrote: (cardInfo){ ShellData = (ShellData){ availableShellActions[] = "CHANGE_SHELL_ITERATION_NUMBER", None, "IPE_FULFILMENT", "LIST_SHELL", None, isrn = "" products[]

Re: TemplatedDoesNotExist

2017-05-16 Thread Nathan Lea
Hi, thanks a lot for answering. - Yes I have the TemplateDoesNotExist when using the runserver command -My Django version is 1.8.8 - This is the link Im trying to running : http://127.0.0.1:8000/p/8kkqcfqk/my_public_goods/Contribute/1/ On Tuesday, May 16, 2017 at 9:14:37 AM UTC-4, Andréas K

Django Channels error : (index):173 Disconnected from chat socket websocketbridge.js:118 WebSocket connection to 'ws://www.openchat.us/chat/stream/' failed: Error during WebSocket handshake: Unexpect

2017-05-16 Thread djangorobert
working on the Django channels example : multi chat on Github but am getting this error (index):173 Disconnected from chat socket websocketbridge.js:118 WebSocket connection to 'ws://www.openchat.us/chat/stream/' failed: Error during WebSocket handshake: Unexpected response code: 404 connect @

Re: Django Channels error : (index):173 Disconnected from chat socket websocketbridge.js:118 WebSocket connection to 'ws://www.openchat.us/chat/stream/' failed: Error during WebSocket handshake: Unexp

2017-05-16 Thread Dylan Reinhold
How are you running the web server? Looks like your web socket traffic is not being set to daphene. Probably hitting the regular django listener and its returning a 404. Dylan On Tue, May 16, 2017 at 3:39 PM, djangorobert wrote: > working on the Django channels example : multi chat on Github >

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

2017-05-16 Thread jgomo3
El martes, 16 de mayo de 2017, 5:41:20 (UTC-4), James Schneider escribió: James. Thank you a lot for your guidance ... > TBH, you may want to rethink your approach to this problem. If you are > generating paths relative to a variable, then simple concatenate the given > path and variable acc

Transferring away from website host/designer - Retain Django

2017-05-16 Thread Joel McLaughlin
Hi, I have a website that is currently hosted on the Django platform using a Wagtail template. I didn't design the website, however; I am trying to transfer because my hosting is like $500 a month and the designers aren't being helpful. I told them I need all the files to transfer the website

Re: Transferring away from website host/designer - Retain Django

2017-05-16 Thread Mark Phillips
One suggestion would be for you to read through the django tutorial (or actually do the tutorial) so you get a feel for what a django site needs to run. Then ask for those files, build up the site and test it. At a minimum you need the database files (Psotgres, MySQL, SQLite), the templates, t

Re: Django Channels error : (index):173 Disconnected from chat socket websocketbridge.js:118 WebSocket connection to 'ws://www.openchat.us/chat/stream/' failed: Error during WebSocket handshake: Unexp

2017-05-16 Thread djangorobert
hi Dylan Im usingWebfaction Im kind of new to django channels my website is www.openchat.us do you mean redisserver ? or are you refering to the commands python mange.py runserver or runworkder? because with those commancds im kind of confused when ussing webfaction im using putty to enter t

Re: Transferring away from website host/designer - Retain Django

2017-05-16 Thread James Schneider
On May 16, 2017 4:58 PM, "Joel McLaughlin" wrote: Hi, I have a website that is currently hosted on the Django platform using a Wagtail template. I didn't design the website, however; I am trying to transfer because my hosting is like $500 a month and the designers aren't being helpful. I told t

Re: Django Channels error : (index):173 Disconnected from chat socket websocketbridge.js:118 WebSocket connection to 'ws://www.openchat.us/chat/stream/' failed: Error during WebSocket handshake: Unexp

2017-05-16 Thread Dylan Reinhold
Sorry sounds like you will need to configure somting in your webfaction controll panel. Here is another person with same issue, they said it fixed it for them. https://github.com/django/channels/issues/445 On Tue, May 16, 2017 at 5:46 PM, djangorobert wrote: > hi Dylan Im usingWebfaction Im kin

Re: Django Channels error : (index):173 Disconnected from chat socket websocketbridge.js:118 WebSocket connection to 'ws://www.openchat.us/chat/stream/' failed: Error during WebSocket handshake: Unexp

2017-05-16 Thread djangorobert
thanks ya that seemed to help a little now im running into a new error: WebSocket connection to 'ws://www.openchat.us/griper' failed: WebSocket is closed before the connection is established. (index):173 Disconnected from chat socket websocketbridge.js:118 WebSocket connection to 'ws://www.open

Re: Transferring away from website host/designer - Retain Django

2017-05-16 Thread Antonis Christofides
Hi, When you say the website is hosted on the Django platform using a Wagtail template, I understand that you mean it's made with Django and Wagtail? It's probably hosted on a hosting service. All the files you need should be at the hoster, meaning that if you login you could probably get them fro

Re: Matching query does not exist after a post_data signal, but in fact does exist when visiting the url sent by the query

2017-05-16 Thread Constantine Covtushenko
Hi, François-Xavier I believe that the reason of that is a transaction that is not committed yet when your code reaches 'post_save' listener. And when you use 'requests' library there is nothing in the DB yet. And I am just curios why there is a need of saving 'admin view' in the DB? Regards, C

Re: Email conformation problem

2017-05-16 Thread Constantine Covtushenko
Hi, Ismail Did you try: *instance.user.email*? I hope it should be what you need. Regards, Constantine C. On Mon, May 15, 2017 at 3:47 PM, Ismail Sarenkapic wrote: > from django.conf import settings > from django.contrib.auth.models import ( > BaseUserManager, AbstractBaseUser > ) > from

Re: Email conformation problem

2017-05-16 Thread Ismail Sarenkapic
I already fixed the problem tnx. but i still dont know why are my emails treated like potential fishing content, can you help me with that? On Wednesday, May 17, 2017 at 8:21:22 AM UTC+2, Constantine Covtushenko wrote: > > Hi, Ismail > > Did you try: > > *instance.user.email*? > > I hope it sho

Re: Email conformation problem

2017-05-16 Thread Constantine Covtushenko
It is not a Django related question, sorry. I can just suggest to look in 'SPAM' filters in you mailing agent. On Wed, May 17, 2017 at 9:24 AM, Ismail Sarenkapic wrote: > I already fixed the problem tnx. > but i still dont know why are my emails treated like potential fishing > content, can you

Re: Email conformation problem

2017-05-16 Thread Ismail Sarenkapic
lol, It is Django related question and can be solved with some of third party libraries like allauth, scoialauth etc. Please don't replay to the posts when you don't know what it is about.tnx again On Wednesday, May 17, 2017 at 8:41:05 AM UTC+2, Constantine Covtushenko wrote: > > It is not a D