Re: Django and Fullcalendar.

2018-04-27 Thread Andy
What kind of error are you getting? -- 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

Architecting a Crypto Market Data Feed using Django Channels

2018-04-27 Thread Michael
Hi, What is the best way to architect a Django Channels app that provides a very fast infinite stream of market data? This is what I have so far, but I think it's not the best solution. This data is updated every millisecond so I would prefer to not persist it (unless there is a way of using r

It looks as if you see all contents of you index.html while also missing all dependencies .. check the network tab of your browser to confirm this. The report created by gephi is probably an html page

2018-04-27 Thread Agent Smith
It looks as if you see all contents of you index.html while also missing all dependencies .. check the network tab of your browser to confirm this. The report created by gephi is probably an html page that is soppused to be opened via the browser directly or served with a webserver. Just renderin

Re: django does not open html file properly

2018-04-27 Thread Andy
It looks as if you see all contents of you index.html while also missing all dependencies .. check the network tab of your browser to confirm this. The report created by gephi is probably an html page that is soppused to be opened via the browser directly or served with a webserver. Just renderin

is that really not possible with the Django ORM?

2018-04-27 Thread Andy
In my 10 years playing with Django i found a few bugs, but i never had to fall back to a raw SQL query. Fiddling with Django for almost a full day now im out of ideas except of asking for help here: I have an organizer app with days containing shifts and people working those shifts (M2M). There

RE: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Matthew Pava
Well, Jim, my first message should have addressed your issue with the UpdateView. Your URL keyword argument should be pk by default. If it’s not, you have to set pk_url_kwarg in UpdateView. Example: /checkin/update/(?) https://ccbv.co.uk/projects/Django/2.0/django.views.generic.edit/UpdateView

Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Jim Illback
Absolutely agree. The “instance” (your note) is for Checkin and it includes a ForeignKey field to ChoreTime, which is a selection (choice field). But, I want that choice field to be limited for the forms to be only what has been not assigned yet. That way the user on the page will know that any

RE: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Matthew Pava
That ID in the URL should be taken care of in the view, not the form. You pass the object in as keyword instance to instantiate the form. How are you defining your form in the view? Typically, you would do something like this: instance = CheckIn.objects.get(pk=self.kwargs.get(‘pk’)) form = Ch

Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Jim Illback
I also need to have the specific ID specified in the URL, so that is the other part needed. I’ve successfully done your suggestion for CreateView. Now, I just can’t seem to get UpdateView to work properly. Thanks much! Jim On Apr 27, 2018, at 9:20 AM, Matthew Pava mailto:matthew.p...@iss.com>>

django does not open html file properly

2018-04-27 Thread qop
Hi guys! I've created some graphics with gephi using the sigma exporter plugin which creates a project like this one , for use the interactive graphic it's just needed open the index.html Now i've created a little site with django and i'd lik

RE: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Matthew Pava
In the form’s __init__ method, you’ll have to modify the queryset of the field. def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields[‘choretime’].queryset |= ChoiceTime.objects.filter(pk=self.instance.pk) I hope that helps! From: dja

Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Jim Illback
To make this easier, here is just a simple the question. Does Django give a method that can be overridden while processing a form which has access to the incoming URL parameters and precedes the display of the form’s fields, specifically being able to alter the fields’s query set before it is d

Re: django-admin list in readonly

2018-04-27 Thread Hervé Edorh
Yes it is what i have done but i if i remove the modify rules in the admin, the simple user will not have the list appear in his session. i want him to just make the select without modify Le vendredi 27 avril 2018 14:11:14 UTC, James Farris a écrit : > > In Django admin I would create a group an

Django ODBC connect to DB2 IBM(AKA AS400) how to?

2018-04-27 Thread Jose Perez
Guys need an example how to use DJANGO with an ODBC that get connected to an IBM(AKA AS400). -- 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+unsubs

Re: Current user ip address on form.py

2018-04-27 Thread Andréas Kühne
If you want the request in a form, you need to supply it. You can use the code you posted - but then when you create the form - you need to add the request. Something like: form = Form(request=request) every time you init the form - then it will work for you. Regards, Andréas 2018-04-27 16:0

Re: django-admin list in readonly

2018-04-27 Thread James Farris
In Django admin I would create a group and give it permissions and add users to that group. On Fri, Apr 27, 2018 at 2:58 AM Hervé Edorh wrote: > > In django admin, we have 3 rules that we can attribute to a table we can > add, modify and delete. when you choose for an user the rule of modify, he

Re: Current user ip address on form.py

2018-04-27 Thread James Farris
This should work https://github.com/un33k/django-ipware/blob/master/README.md On Fri, Apr 27, 2018 at 5:45 AM lakshitha kumara wrote: > Hello Andréas > > Thank for your reply. but unfortunately i need get user ip on form.py or > custom py file in django. is there way to to that ? > > Some one

Re: Current user ip address on form.py

2018-04-27 Thread lakshitha kumara
Hello Andréas Thank for your reply. but unfortunately i need get user ip on form.py or custom py file in django. is there way to to that ? Some one post on this example can be work but its also doesn't work class RegistrationForm(UserCreationForm): def __init__(self, *args, **kwargs):

Re: Current user ip address on form.py

2018-04-27 Thread Andréas Kühne
Hi, You can get the IP address from the request. See here: https://stackoverflow.com/questions/4581789/how-do-i-get-user-ip-address-in-django Regards, Andréas 2018-04-27 14:28 GMT+02:00 lakshitha kumara : > Hello Guys > > Is there way to get current user ip address on form.py > > Thanks > > --

Current user ip address on form.py

2018-04-27 Thread lakshitha kumara
Hello Guys Is there way to get current user ip address on form.py Thanks -- 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

Re: The sending of an attachment in pdf format under django.

2018-04-27 Thread Jason
That suggests its an issue with your email reader. What are you using, gmail or something else? On Thursday, April 26, 2018 at 7:09:34 AM UTC-4, Bienvenue Emmanuel wrote: > > Hello ! I hope you are well... > I am working on project of registration in a school where I must recover, > put the inf

django-admin list in readonly

2018-04-27 Thread Hervé Edorh
In django admin, we have 3 rules that we can attribute to a table we can add, modify and delete. when you choose for an user the rule of modify, he can't add and delete, My problem is that a have list of object and i don't want that the user modify but can select it. how disable it?