Re: Chart library for django

2017-03-05 Thread Lachlan Musicman
Hi Luvpreet, There's nothing built into Django. Django is a web framework and charts are outside of that. Django is written in Python and uses the standard web technologies like HTML, CSS and JS. You will need to find a charting package that can be used with any of those and work out how you

Chart library for django

2017-03-05 Thread Luvpreet Singh

Re: Channels - slow with limited number of connections

2017-03-05 Thread Andrew Godwin
If your channels get full it means your workers aren't draining the channels fast enough - you should spin up more workers. At some point you also need to increase the channel capacity as well to smooth out bumps, but the channel capacity only needs to be about the same as the number of requests

Re: Channels - slow with limited number of connections

2017-03-05 Thread Lada B
I just tried to run workers in separate processes and it works great! it's awesome and it fails only because of redis channel memory being full. Dont know how to increase it tho. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Channels vs serverless: how much they are alike

2017-03-05 Thread Виталик Абеткин
>From what I know serverless architectures use message queues and distribute tasks that handle various events to workers pretty much in the same way django channels do. How much they are really alike? For instance, let's take openwhisk.org implementation -- You received this message because

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

2017-03-05 Thread Melvyn Sopacua
On Sunday 05 March 2017 13:40:44 Michael Chenetz wrote: > Thanks Melvyn... I am not having issues with a generic update form. The important stuff is in the last line. I was explaining how you can do it and where to look for inspiration. > The problem is when using it in a Bootstrap Modal. I

Re: Channels - slow with limited number of connections

2017-03-05 Thread Lada B
Also i havent tried running workers in separate processes Is the client and server running on the same computer? No And i just realized that expiry=5 is wrong because it disconnects users. Thats why it feels "better" now :D -- You received this message because you are subscribed to the Google

Re: Channels - slow with limited number of connections

2017-03-05 Thread Lada B
im using asgi_redis, and somehow it's better since i changed settings to: channel_layer = RedisChannelLayer( capacity=1000, expiry=5, ) but i still dont have idea whats correct. I would like to explain what im trying to achiev. I have website for matchmaking of dota 2 lobby games. When

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

2017-03-05 Thread Michael Chenetz
Thanks Melvyn... I am not having issues with a generic update form. The problem is when using it in a Bootstrap Modal. I think it is a javascript/ajax issue. That is the piece I need to figure out. Mike On Sunday, March 5, 2017 at 10:48:22 AM UTC-5, Melvyn Sopacua wrote: > > Hi Michael, > >

Re: Channels - slow with limited number of connections

2017-03-05 Thread Andrew Godwin
Python threads are not that great at sharing I/O - I'd recommend you run at most one or two per physical CPU core in your machine. 500 is just going to suffocate Python in context switching. We have loadtests that definitely got above 10 messages a second - what ASGI backend are you using? What

Re: new to Django

2017-03-05 Thread ludovic coues
If you haven't done so, you should do the django tutorial. It will give you a good view of what is available to django user. Then there is a few page in the documentation about contributing. https://docs.djangoproject.com/en/dev/internals/contributing/ What you'll need to learn depend on what

new to Django

2017-03-05 Thread jayant jain
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 start contributing to Django and how to *start contributing.Example if *i do need to know about networking, GUI ,etc. -- You received this message because you

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

2017-03-05 Thread Melvyn Sopacua
Hi Michael, Disclaimer: leaving the Javascript side of things out of scope. On Friday 03 March 2017 12:07:16 Michael Chenetz wrote: > I am trying to figure out how to populate the update model form in a > Bootstrap Modal. I can add to a form no problem but update does not > seem to pre-populate

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

2017-03-05 Thread Melvyn Sopacua
On Friday 03 March 2017 20:37:29 Tom Tanner wrote: > When the iframe requests > `/interactive`, it loads `interactive-1/index.html`. But the iframe still loads /interactive. So it's base url is /interactive and a request for scripts/main.js is /interactive/scripts/main.js. Unless you either: 1/

Re: Writing your first Django app, part 4

2017-03-05 Thread ludovic coues
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. Try using this form: {{ question.question_text }} {% if error_message %}{{ error_message }}{% endif %} {% csrf_token %} {% for choice in

Re: Hello I am new to django

2017-03-05 Thread ludovic coues
Sorry, I forget to mention it is to replace email = models.OneToOneField in UserProfile. Or more exactly, add the related_name argument to the email field. 2017-03-05 11:51 GMT+01:00 sarfaraz ahmed : > Where to include > models.OneToOneField(CustomUser,

Writing your first Django app, part 4

2017-03-05 Thread friscosoftware
I'm in the process of learning Django and working throught the tutorial, Writing your first Django app . I'm getting stuck on part 4. The form n detail.html doesn't display radio buttons. Thus there is nothing to select and when I submit the

Re: How to unsubscribe?

2017-03-05 Thread Andréas Kühne
It's managed by google groups. Go your google groups settings and remove you subscription there. Regards, Andréas 2017-03-05 8:17 GMT+01:00 Marco Miani : > Hi. > > can anyone please explain how I get off this list? > > I have tried to click the link at the jottom of

Re: can i use the listview which the django-admin used im my tempate

2017-03-05 Thread Andréas Kühne
Hi, I don't really understand what you mean, but there is a ListView in the generic views package. To use that all you really need to do is to tell the listview class what model you are using. For example: class UserList(ListView): model = User You can see the information about the view

Re: Channels - slow with limited number of connections

2017-03-05 Thread Avraham Serour
I don't think you need 500 workers, the number of workers depends on how long will message will take to be processed not the number of concurrent connections. The worker job is to get a message and send to a bunch of clients, the ASGI server, meaning the process actually holding the websocket, in

Re: Having trouble with Django tutorial

2017-03-05 Thread Yves S. Garret
Yes, that did it. I placed the file into learning_python/learning_python and everything just worked. Thank you -- 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

Re: Channels - slow with limited number of connections

2017-03-05 Thread Lada B
HW performance with 1 user sending message every 100ms: https://i.imgur.com/5F4mKAI.png Yesterday i tried to use it in production and when there were 15 clients connected (each one pinging server every 2 seconds) nobody else could connect. I have default settings and I followed Getting

Re: Hello I am new to django

2017-03-05 Thread sarfaraz ahmed
Where to include models.OneToOneField(CustomUser, related_name='profile') I tried including this in customuser model it does not understand. On 5 March 2017 at 14:24, ludovic coues wrote: > You should look at the related_name argument of relationship. Using ` >

can i use the listview which the django-admin used im my tempate

2017-03-05 Thread 刘夏
can i use the listview which the django-admin used im my tempate? 发自我的小米手机 -- 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

templatetags for easy to edit content

2017-03-05 Thread John Wieland
Hi Everyone, I've written a template tag that looks up an object and returns a field. For instance: @register.simple_tag def content(name): return mark_safe(Content.objects.get(name=name).content) These tags are used to make it easier to edit content on the site. I just need to add a {%

Channels - slow with limited number of connections

2017-03-05 Thread Lada B
Hi, im using django-1.10 + channels + asgi_redis + daphne + uwsgi + nginx but i have problem with workers+daphne being slow. Im developing chat and I tried how fast its by holding ENTER button (spamming messages one after one and it doesn't even respond until i stop sending messages. When i

How to unsubscribe?

2017-03-05 Thread Marco Miani
Hi.  can anyone please explain how I get off this list?  I have tried to click the link at the jottom of this mail, where it says 'unsubscribe' but the reply i got was that I couldnt be unsubscribe because myemail address would not belong to the list (unknown). Who is the owner of this list? who

Re: Hello I am new to django

2017-03-05 Thread ludovic coues
You should look at the related_name argument of relationship. Using ` models.OneToOneField(CustomUser, related_name='profile')` will add a profile property to your custom user object. Then your function became something like that : def get_full_name(self): full_name = '%s %s'

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