Re: Django channels on IIS

2017-01-25 Thread Алексей Кузуб
Thank you for your answers and advices. I have no possibility to use *nix platform, my employer wants it on IIS. I'll try to build it, thank you very much! среда, 25 января 2017 г., 21:14:22 UTC+3 пользователь Jani Tiainen написал: > > There exists 3rd party ASGI handler for IIS: > https://gith

Comparing two lists

2017-01-25 Thread Richard Hall
Hello, I've only just started with Django and need a bit of help steering myself in the right direction. I want to create a page that has a list of possible forms that could be filled in for a patient in a medical study and differentiate between those forms which have already been completed and

file fields

2017-01-25 Thread ايهاب توفيق
I am new in django and to know how to use multiple file field in the same model can any one help me -- 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

Re: Mocking date and time in LiveServerTestCase?

2017-01-25 Thread Adam Stein
When I need to set the date to a known day for tests, I use forbiddenfruit (https://github.com/clarete/forbiddenfruit). On Wed, 2017-01-25 at 20:46 +0100, Carsten Fuchs wrote: > Dear Django fellows, > > I'm using LiveServerTestCase with Selenium. The application code run > by  > LiveServerTestCase

Mocking date and time in LiveServerTestCase?

2017-01-25 Thread Carsten Fuchs
Dear Django fellows, I'm using LiveServerTestCase with Selenium. The application code run by LiveServerTestCase's live server works well and a view's call to date.today() returns the current date. For the tests, however, it would be helpful if we could fix the time and date at which the test

Re: Django channels on IIS

2017-01-25 Thread Jani Tiainen
There exists 3rd party ASGI handler for IIS: https://github.com/mjkillough/iis-asgi-handler/ It also requires at least IIS 8 and websocket protocol installed. More details at https://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-websocket-protocol-support Note, you need to build that ha

Re: Django channels on IIS

2017-01-25 Thread Andrew Godwin
Hi, I am afraid I don't have experience using IIS - I don't know if it even supports HTTP/1.1 proxying, which is needed for WebSockets. Hopefully someone else can help. Andrew On Wed, Jan 25, 2017 at 6:35 AM, Алексей Кузуб wrote: > I have a project in Django and i want to use django channels f

Re: Extended user model to add Profile class want to slugify first_name last_name in profile class

2017-01-25 Thread David
Thank you Melvyn. You've been very helpful! -- 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, sen

Re: Extended user model to add Profile class want to slugify first_name last_name in profile class

2017-01-25 Thread Melvyn Sopacua
On Wednesday 25 January 2017 07:43:50 David wrote: > Thank you. That's very helpful. Now just need to work out how to make > it a mandatory field in django admin, such that it is always created > when a user is. That can be done[1]: These profile models are not special in any way - they are just D

Re: Validating and cleaning related models ...

2017-01-25 Thread Melvyn Sopacua
On Tuesday 24 January 2017 17:50:39 Bernd Wechner wrote: > I find myself in a conundrum with related models and related formsets. > I'll try and simplify a rather complex set of relations to illustrate > the bare bones gist of my issue. Imagine the standard Djnago docs > example: > > class Musicia

Re: Extended user model to add Profile class want to slugify first_name last_name in profile class

2017-01-25 Thread David
Thank you. That's very helpful. Now just need to work out how to make it a mandatory field in django admin, such that it is always created when a user is. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Extended user model to add Profile class want to slugify first_name last_name in profile class

2017-01-25 Thread Melvyn Sopacua
On Wednesday 25 January 2017 03:50:12 David wrote: > I have extended Django's default user model to add a Profile model; > bio etc. > > I want to slugify the users first_name last_name in profile class, so > I can search for all X entities written by a specific user in the url > form: > > /blog/

Django channels on IIS

2017-01-25 Thread Алексей Кузуб
I have a project in Django and i want to use django channels for support websockets in my project, but i have a problem with IIS configuration. Could somebody helps me with configuration daphne in IIS or configuration IIS to support channels and daphne. Has somebody any expierence in it? And ma

Re: interaction between two django app

2017-01-25 Thread Bojan Nišević
Daniele Procida is completely right. Just ask "the "seminar" app" team to provide you with a REST API and define which endpoints and responses on them you need. Django REST Framework will well fit into the seminar app. On your side you define views in which you make requests to seminar API endp

Re: [ANNOUNCE] Django 1.11 alpha 1 released

2017-01-25 Thread Tim Graham
For me, testing involves updating tests of third-party apps and my own Django projects to run against the new version. On Wednesday, January 25, 2017 at 7:37:48 AM UTC-5, Vimarsh Chaturvedi wrote: > > Hey, > > I have recently started trying to contribute to Django. > Wanted to know how can one

Re: [ANNOUNCE] Django 1.11 alpha 1 released

2017-01-25 Thread Vimarsh Chaturvedi
Hey, I have recently started trying to contribute to Django. Wanted to know how can one help in testing for the final release? Using the new features in small projects or is there a formal procedure for testing? On Wednesday, January 18, 2017 at 6:48:18 AM UTC+5:30, Tim Graham wrote: > > We

Re: Extended user model to add Profile class want to slugify first_name last_name in profile class

2017-01-25 Thread David
: (admin.E030) The value of 'prepopulated_fields["slug"][0]' refers to 'profile__first_name', which is not an attribute of 'accounts.Profile'. : (admin.E030) The value of 'prepopulated_fields["slug"][1]' refers to 'profile__last_name', which is not an attribute of 'accounts.Profile'. -- You r

Extended user model to add Profile class want to slugify first_name last_name in profile class

2017-01-25 Thread David
Hi I have extended Django's default user model to add a Profile model; bio etc. I want to slugify the users first_name last_name in profile class, so I can search for all X entities written by a specific user in the url form: /blog/authors/bob-smith When I try to add the slug field to my profi

Re: Multiple forms in the same template

2017-01-25 Thread Melvyn Sopacua
On Tuesday 24 January 2017 05:07:25 schaf...@gmail.com wrote: > sorry I wanted to shorten the code before, to not post too much. > Here the code: > > views.py > class MFormsView(LoginRequiredMixin, StaffuserRequiredMixin, > UpdateView, MFView): And there you have it: MFormsView uses UpdateView[1]

Re: Django-channels and JSON-RPC

2017-01-25 Thread Alexander Prokhorov
Colleagues, you are really fast :) How can I help you? For our project we will definitely need a JavaScript client. Quick googling led me to https://github.com/JsCommunity/jsonrpc-websocket-client it does not look mature, but such client is quite easy to implement. Do you have plans to include

Re: interaction between two django app

2017-01-25 Thread Daniele Procida
On Tue, Jan 24, 2017, Lorenzo Bernardi wrote: > I don't know what is the best approach for the communication between >two django applications. > > We have a website using django and django-cms. We have another >application, the "seminar" app for managing some informations like >seminars, n

Re: Edx LDAP Auth setting

2017-01-25 Thread Pierre-Philippe Fady
Sorry, i was wrong, you need to write : if not db_profile: Le mercredi 18 janvier 2017 21:10:56 UTC+1, Faruk D. a écrit : > > Hi Yip, > > Thanks for your Instruction. > > While trying to update the database record like you explained on step 16. > I got some error messages. > Im not so familar w

Re: Django-channels and JSON-RPC

2017-01-25 Thread Fabien Millerand
Fair enough. I understand that in distributed system. But maybe you should add a note about that, as if the whole system is not distributed over network(s), it is highly unlikely to lose frames :D > On 25 Jan 2017, at 09:08, Andrew Godwin wrote: > > Yes, it's a bit alarmist if you don't come

Re: Django-channels and JSON-RPC

2017-01-25 Thread Andrew Godwin
Yes, it's a bit alarmist if you don't come from the background of writing distributed systems. I just don't like to hide the truth one bit! All your software and hardware can fail in myriad ways; I have a talk I need to give about it at some point. Knowing how it fails is half the battle! Andrew

Re: Django-channels and JSON-RPC

2017-01-25 Thread Fabien Millerand
Ok, I start to understand now. To be frank the docs are a bit alarming :) Le mercredi 25 janvier 2017 08:47:06 UTC+1, Andrew Godwin a écrit : > > >>> I am not sure to understand. In which case can there be messages/frames >> lost?! Where does that happen? Between the server interface and the D