Re: Meta class completely missing.

2017-03-20 Thread chris rose
hi brandon try removing (object) from your meta class declaration -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

Re: new to Django

2017-03-06 Thread chris rose
+1 ludovic -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: new to Django

2017-03-06 Thread chris rose
+1 ludovic -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: new to Django

2017-03-06 Thread chris rose
+1 ludovic -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: USING graphs in django admin

2017-03-06 Thread chris rose
i have used d3.js in a template and past it data when answering a http request with a view i found d3.js a little interesting to wrap my head around but it is a good tool not used it with the admin though -- You received this message because you are subscribed to the Google Groups "Django

Re: Issue using django-admin

2017-03-05 Thread chris rose
if you are new to django you don't want to download the development edition, this is more for contributing firstly you need pip. secondly, do your self a huge favour and install virtualenv and read the getting started docs now rather than later once you have made a virtualenv directory and

Re: Iframe'd page in Django template can't find it's Javascript or CSS files, 404 error

2017-03-05 Thread chris rose
there is a lack of information here, though you last post suggests maybe you missed a couple of template tags at the start of you index.html add: {% load staticfiles %} and then when adding you scripts use: -- You received this message because you are subscribed to the Google Groups

Re: group by 3 fields

2017-02-26 Thread chris rose
there is a model meta option called ordering. you can specify a list of fields to order by docs found at: https://docs.djangoproject.com/en/1.10/ref/models/options/#ordering i have only used this in the admin -- You received this message because you are subscribed to the Google Groups

Re: Daphne does not handle wss requests

2017-02-24 Thread chris rose
I too experience this in my local development environment I find secure web sockets throwing an error in the browser console when attempting to send a message: InvalidStateError: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable. I had attributed this

Re: import error: no module named viewflow.frontend

2017-02-23 Thread chris rose
did you add 'viewflow.frontend' to installed_apps? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Re: django channels in the shell

2017-02-23 Thread chris rose
thank you. i completely overlooked that function -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Re: django channels in the shell

2017-02-22 Thread chris rose
solved it.. I had to explicitly add the hosts parameter from django.conf import settings > from django.utils.module_loading import import_string config = getattr(settings, "CHANNEL_LAYERS", {}) > hosts = config['default']['CONFIG']['hosts'] backend_class =

Re: Django template language resolve url

2017-02-22 Thread chris rose
sorry i typed an s in there, here is that code amended > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

Re: Django template language resolve url

2017-02-22 Thread chris rose
hey xyron.. i replied to your other thread your namespace should actually just be links so the answer should be: -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Error using url in django template language

2017-02-20 Thread chris rose
hey you tried: you app name is links rather than myapp, so try: -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

django channels in the shell

2017-02-19 Thread chris rose
I'm trying to implement a custom management command into my app. its purpose would be to check the database for a poll which fits time parameters and update clients via channels. I want to get a list of the clients in a group, then decide whether or not to send them new information based on

Re: Newforms 'preferred practice'

2007-01-12 Thread Chris Rose
Felix Ingram wrote: > 3. Binding data - I'd like the form to handle editing of an instance. > I could construct a dictionary of values and pass it to the form as > per the docs but I'd like to just pass a model instance and have the > form sort things out. Is this advisable? If so then does