Re: Web and mobile app with Django? Kivy? sth else?

2015-07-09 Thread djangocharm2020
Hi Gra I noticed your comment Im using django but want to used Kivy do you have any tips on how to install it on windows its a pain in the butt thanks Robert On Saturday, December 6, 2014 at 10:19:18 AM UTC-6, graeme wrote: > > If you want to do everything in Python (which I like to) my choice

Re: django dynamic serializers

2015-07-09 Thread Shekar Tippur
James, Thanks for the response. The data is latter. I dont know the structure of incoming message. It can be a simple json or a nested json. I dont have a persistance store. I have a pipeline where a random json comes in and I would like to model the pipeline based on its structure. I need to r

Re: Email Middleware

2015-07-09 Thread Stefano Probst
I implement the software now as a custom email backend . My backend manipulate the content of the message and act as wrapper for the real mail backend. -- You received this message because you are subscribed

Re: Installing Django [Again]

2015-07-09 Thread gahuber
Hi Steve, I've just gone thru the steps in the link below and it was very helpful. At least the first 3 videos were really good and got me up and running. https://codingforentrepreneurs.com/projects/start-with-windows/ Thanks, Andy On Thursday, July 9, 2015 at 12:38:52 PM UTC-4, Steve Burrus

Re: django dynamic serializers

2015-07-09 Thread James Schneider
When you mention dynamic, do you mean that the data has a known set of possible fields, but may only populate a subset of them? Or will it just have random fields that you may not know about ahead of time? If you have a way to articulate all of the possible fields that the data source may use, then

Re: Error when checking owner in REST API CreateAPIView

2015-07-09 Thread James Schneider
Also check out this thread where I answered a similar question: https://groups.google.com/d/msg/django-users/W5uCKzWOnuE/Ang4RFK0BCYJ -James On Thu, Jul 9, 2015 at 1:16 PM, Carlton Gibson wrote: > Hi Daniel, > > The call to get_object won't work, since Create views don't yet have an > object to

django dynamic serializers

2015-07-09 Thread Shekar Tippur
Hello, I have a source of data that can have a dynamic json structure. Is there a way to dynamically create models based on this? - Shekar -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Error when checking owner in REST API CreateAPIView

2015-07-09 Thread Carlton Gibson
Hi Daniel, The call to get_object won't work, since Create views don't yet have an object to fetch. The correct approach is override perform_create and pass the user to your serialiser's save method. There's a section in the tutorial that covers this exact use case: http://www.dja

loop a ChoiceField SelectMultiple form in the view as post

2015-07-09 Thread dk
i made a from lista = (("1","one"), ("2", "two")) pending = forms.ChoiceField(widget=forms.SelectMultiple, choices=lista) I do get it as post method. I do get true with is_valid() it renders properly in the website. but when I press the submit button. and I am printing the form.cleaned_data[

Error when checking owner in REST API CreateAPIView

2015-07-09 Thread Daniel Grace
With CreateAPIView from the REST API I am trying to stop users from creating data in another users name. In models.py: class UserData(models.Model): user = models.OneToOneField(User, db_index=True, related_name='userdata', blank=False, null=False) textdata = models.TextField(blank=True,

Django 1.8 feature in 1.7.9?

2015-07-09 Thread Luis Zárate
Maybe you need to uninstall django first, clear pip cache and install again. pip uninstall django==1.7.9 rm ~/.cache/pip/*# or wherever it is pip cache folder pip install django==1.7.9 El jueves, 9 de julio de 2015, Tim Graham escribió: > The consequences of replacing the bad wheel fi

Re: Installing Django [Again]

2015-07-09 Thread Fred Chevitarese
Well Steve, i will try to help you! 1 - Make sure to put Python at the system path. I mean, you can run python at prompt? 2 - After that, make sure C:\PythonXX\Scripts is on system path as well. 3 - Now, you need to create your project. Try to run django-admin.py to see if there's any information

Installing Django [Again]

2015-07-09 Thread Steve Burrus
*I know thrat I have appealed for help about this before but I am having problems aGAIN with installing Django. Well I was able to run "pip install django" okay but then I don't know where to go from there! Here is where I am now : (myenv)C:\Users\SteveB\Desktop\myenv>* -- You received this

Re: Django 1.8 feature in 1.7.9?

2015-07-09 Thread Tim Graham
The consequences of replacing the bad wheel file weren't entirely clear. Knowing what we know now, I guess next time (hopefully there won't be one) I will just roll a new version. If you think I should do that at this point, let me know. On Thursday, July 9, 2015 at 10:56:07 AM UTC-4, Rebecca

Re: Django 1.8 feature in 1.7.9?

2015-07-09 Thread Rebecca Muraya
I had this error. Pip caches things in a few places, maybe more: ~/.pip/ /tmp/ ~/.cache/pip/ On Thursday, July 9, 2015 at 10:21:45 AM UTC-4, Karen Tracey wrote: > > On Thu, Jul 9, 2015 at 9:17 AM, Tim Graham > wrote: > >> The 1.7.9 wheel file that was first uploaded to PyPI was corrupted.

Re: Django 1.8 feature in 1.7.9?

2015-07-09 Thread Karen Tracey
On Thu, Jul 9, 2015 at 9:17 AM, Tim Graham wrote: > The 1.7.9 wheel file that was first uploaded to PyPI was corrupted. I > uploaded a corrected file about 2 hours after the initial release. Sorry > for inconvenience and confusion! > > Any guidance on how to recover from a "cached" corrupted whee

Re: Django 1.8 feature in 1.7.9?

2015-07-09 Thread Ben Cail
I am seeing the same issue when I try to upgrade my project to 1.7.9... On Thursday, July 9, 2015 at 7:25:02 AM UTC-4, lois...@polyconseil.fr wrote: > > Hi, > > I updated one of my project to Django 1.7.9, and a migration was added in > `django/contrib/contenttypes/migrations/`, namely > `0002_r

Re: Django 1.8 feature in 1.7.9?

2015-07-09 Thread Tim Graham
The 1.7.9 wheel file that was first uploaded to PyPI was corrupted. I uploaded a corrected file about 2 hours after the initial release. Sorry for inconvenience and confusion! On Thursday, July 9, 2015 at 7:25:02 AM UTC-4, lois...@polyconseil.fr wrote: > > Hi, > > I updated one of my project to

Re: Strange prefetch_related Issue. Is this a bug?

2015-07-09 Thread Lyle Pratt
It appears that the issue is because if the first item in the list is of a type "sms", then prefetch_related looks up the related items using the "sms_id" foreign key. How can I get around this? Is there a way to specify the column that prefetch_related should use for look ups? On Thursday, J

Strange prefetch_related Issue. Is this a bug?

2015-07-09 Thread Lyle Pratt
I have a strange issue where prefetch_related sometimes fails to populate related objects when using Proxy models. I believe it is a bug, but I'd like some second opinions on what might be going on. *Here is my example filter:* my_filter = Activity.objects.all().prefetch_related("recording_set"

Django 1.8 feature in 1.7.9?

2015-07-09 Thread lois . burg
Hi, I updated one of my project to Django 1.7.9, and a migration was added in `django/contrib/contenttypes/migrations/`, namely `0002_remove_content_type_name.py`. This migration uses `RunPython.noop`, which my version of Django cannot find. It's specified in the doc