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

Postgres (sqlmigrate) FK to M2M without RunPython

2017-03-06 Thread Maksym Mospanenko
Hello! I want to migrate data with schema migrations but I can't run any python code on database server - only raw sql (postgres). How can I move fk column data to m2m table's fk column? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Django Channels - Delay server for Group messages

2017-03-06 Thread Adrián Cuesta
Hi Is there any way to send delayed messages to Group instead of a Channel? The delay server example here gives this example: from channels import Channel delayed_message = { 'channel': 'example_channel',

Re: stop backgroundworker

2017-03-06 Thread Melvyn Sopacua
On Monday 06 March 2017 12:11:04 Shawn Milochik wrote: > You'll have to send something from the browser (submit a form, AXAX, > or websockets) to a Django view and update something somewhere -- in > Redis or your database, probably. Then have your infinite loop check > that location for an

Re: Chart library for django

2017-03-06 Thread Fabio C. Barrionuevo da Luz
another option: https://github.com/agiliq/django-graphos https://github.com/agiliq/django-graphos#charting-api-supported live sample: http://agiliq.com/demo/graphos/ On Mon, Mar 6, 2017 at 2:15 PM, acheraime . wrote: > In one of my project I've used django-nvd3

Re: Chart library for django

2017-03-06 Thread acheraime .
In one of my project I've used django-nvd3 ( https://github.com/areski/django-nvd3). It's a python/django abstraction layer to d3.js. On Mon, Mar 6, 2017 at 12:03 PM, Melvyn Sopacua wrote: > On Monday 06 March 2017 12:04:16 Vijay Khemlani wrote: > > > Rendering

Re: new to Django

2017-03-06 Thread Shawn Milochik
Go here: https://code.djangoproject.com/ You'll find instructions on how to contribute, and also the bug tracker, where you can search for easy bugs to fix. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: stop backgroundworker

2017-03-06 Thread Shawn Milochik
You'll have to send something from the browser (submit a form, AXAX, or websockets) to a Django view and update something somewhere -- in Redis or your database, probably. Then have your infinite loop check that location for an updated value. I recommend Redis for this purpose. -- You received

Re: Chart library for django

2017-03-06 Thread Melvyn Sopacua
On Monday 06 March 2017 12:04:16 Vijay Khemlani wrote: > Rendering server-side charts is usually a mess, and the result > (usually a static image) is not as good as using a JS library. Well first - I count 10 of that grid without looking at details that use JS to render. So that's the majority.

Django Permissions

2017-03-06 Thread Jim Lamb
I am trying to give add to the django permissions when you add a Type to a Source with the following models.py I would like it to be from __future__ import unicode_literals from django.db import models """Class for Data Sources""" class Source(models.Model): display_name =

Django Permissions

2017-03-06 Thread Jim Lamb
I am trying to add django permissions when a type add a source iusing the following model from __future__ import unicode_literals from django.db import models """Class for Data Sources""" class DataSource(models.Model): display_name = models.CharField(max_length=20) code_name =

stop backgroundworker

2017-03-06 Thread Tommy
Hi, I'm new to Django and would need some advice. I've got a process launched with a command: python manage.py myprocess. I've got an infinite loop there where i use Group("mygroup").send({'text': state_text}). Everything is well displayed on my html page. However i'd like to use buttons on

Re: new to Django

2017-03-06 Thread 'Anoosha Masood Keen' via Django users
Hi I am new to Django and I don't know where to start or what to do for contribution? On Sunday, March 5, 2017 at 10:58:09 PM UTC+5, jayant jain wrote: > > Hi all users, > I am a new user of* Django* > with a basic knowledge of * Python* language .Please recommend *me what > more to learn* to

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Mark Phillips
I echo Vijay's comment. Lists like this are really great for very specific questions and short code segments or error message that a more experienced person can answer off the top of their head. Your question is very broad and requires a large time commitment from the reader to respond. With that

Re: Chart library for django

2017-03-06 Thread Vijay Khemlani
Rendering server-side charts is usually a mess, and the result (usually a static image) is not as good as using a JS library. I use Highcharts, just had to make a little layer on top of it to make it compatible with the JSON django was generating. It also encourages separation of concerns

Re: Multiple Users

2017-03-06 Thread Lekan Wahab
##This is one approach. You can have a single user profile and a number of other users tied to the user profile via ForeignKey. class UserProfile(models.Model): user = models.ForeignKey(User) #define general fields class Freelancer(models.Model): profile =

Multiple Users

2017-03-06 Thread Focus Ifeanyi
I am new to Django and trying to create an App with two User Types (Freelancers and Customers). I understand how to create a User profile Class and it works well for me: class UserProfile(models.Model): user = models.OneToOneField(User) description = models.CharField(max_length=100,

Re: Issue with Django-axes

2017-03-06 Thread Melvyn Sopacua
On Monday 06 March 2017 01:51:13 Arun S wrote: > i am using django-axes package and want to lock out a user based on > userid. If you want to deactivate the account, then do so. "The login_required decorator does NOT check the is_active flag on a user, but the default AUTHENTICATION_BACKENDS[1]

Re: Chart library for django

2017-03-06 Thread Melvyn Sopacua
On Sunday 05 March 2017 22:10:07 Luvpreet Singh wrote: > I am looking for some solution to display django database queryset to > django admin over graphs. https://djangopackages.org/grids/g/charts/ Problem is, the majority is abandonware. -- Melvyn Sopacua -- You received this message

Re: How do you populate an update form in a Bootstrap Modal?

2017-03-06 Thread Michael Chenetz
Melvyn, Thanks... I will take a look through your code and see if i can figure it out. Mike On Sunday, March 5, 2017 at 5:59:51 PM UTC-5, Melvyn Sopacua wrote: > > On Sunday 05 March 2017 13:40:44 Michael Chenetz wrote: > > > Thanks Melvyn... I am not having issues with a generic update form.

Re: Writing your first Django app, part 4

2017-03-06 Thread friscosoftware
Duh, thanks, I must have missed that step in the tutorial. Works great now. On Sunday, March 5, 2017 at 8:02:44 AM UTC-7, ludovic coues wrote: > > You didn't share your code, so all we can do is guess. > My guess is that your poll don't have any answer so there is nothing to > render. > >

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Vijay Khemlani
Also, this type mailing lists are usually for specific questions about the framework "How do I make this particular query with the ORM" "Why isn't this variable getting rendered in the template" etc Your question is kinda broad On 3/6/17, Bob Haugen wrote: > Antonis,

Re: Chart library for django

2017-03-06 Thread Larry Martell
On Mon, Mar 6, 2017 at 1:10 AM, Luvpreet Singh wrote: > > Hi everyone, > > I am looking for some solution to display django database queryset to django > admin over graphs. > I had used highcharts to do that earlier, but to use highcharts, I have to > write too much

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Bob Haugen
Antonis, thank you very much for the feedback! You are absolutely correct! I apologize to you and the list, and will strive to follow your suggestions in the future. I suspect, however, that the very long explanation that would have been required to avoid the links would have been offputting,

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Vinicius Assef
+1 On 6 March 2017 at 08:45, Antonis Christofides wrote: > Hi, > > I, like many people, am busy. I will generally not spend too much time on > the messages of this list. I delete most of them after only reading the > subject line. If I do choose to read the body, I

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Antonis Christofides
Hi, I, like many people, am busy. I will generally not spend too much time on the messages of this list. I delete most of them after only reading the subject line. If I do choose to read the body, I expect to understand what it is about after a few seconds of reading. But all I can see in your

Re: Issue with Django-axes

2017-03-06 Thread Babatunde Akinyanmi
I think the only way you will be able to uniquely identify a computer is by using a "permanent" cookie. I find such practice very very intrusive and it's something I will personally not do. Meanwhile, IP addresses, cookies and the likes are good to identify computers not users. If you really

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread bobhaugen
I was disappointed to get no response on this topic, and would be grateful for any feedback on why that might have been. Too big? Big ball of mud? Stupid project? ? (I have very little touchiness...) I hope people did not think we wanted to get them to do all or even very much work for

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

Issue with Django-axes

2017-03-06 Thread Arun S
Hi, i am using django-axes package and want to lock out a user based on userid. Now there is an issue that the user gets locked out from one IP, but the same user can still login from a different IP successfully. Which negates the whole use of a security requirement of locking a particular

Re: Channels vs serverless: how much they are alike

2017-03-06 Thread Andrew Godwin
Channels' message queue is designed for a much lower latency than most "serverless" solutions, which are more often for non-interactive processing. There's a whole host of other differences too, around design, deployment, etc. that are all tradeoffs; at some point, a lot of distributed systems