Re: Trying to upgrade Django using pip on CentOS results in segmentation fault

2016-02-17 Thread Tanuka Dutta
Thanks for the suggestions. I had stopped Apache, and I also tried a fresh install in a new virtualenv. That actually helped me discover the root cause of the problem because I got a different traceback during a fresh install. Pasting it here in case others run into the same problem someday:

Re: null datetime field and json fixtures

2016-02-17 Thread James Schneider
> > > Last night before posting I hacked serializers/python.py to make an > exception for sunsetdate, and that apparently worked, but now I have this: > Yeah...don't do that. Fix your data. > File > "/home/malikarumi/Projects/cannon/local/lib/python2.7/site-packages/django/db/models/fields/__ini

Re: Error(after updating to django 1.9

2016-02-17 Thread James Schneider
On Wed, Feb 17, 2016 at 8:34 AM, Deepak Gupta wrote: > > I am trying to create a project > CommandError: /home/shaastr/bnms/manage.py already exists, overlaying a > project or app into an existing directory won't replace conflicting files > Are you trying to create a project with the same name i

Re: Missing button image

2016-02-17 Thread James Schneider
On Wed, Feb 17, 2016 at 3:03 PM, WST wrote: > Hi All, > > > I would appreciate if someone could tell me why the view components will > not load? Thank you! > Without more information, there's no way to tell. It's likely that you are not correctly serving your static files. Are you running the Dj

Re: Missing button image

2016-02-17 Thread Nikolas Stevenson-Molnar
More information would be helpful here. Where are the missing images being loaded from? Are they static files related to your project? Are they static files hosted elsewhere? Are they images dynamically generated by a view? Do the images ever display correctly? (e.g., do they display in developm

Re: var1 = var2 = var3

2016-02-17 Thread Nikolas Stevenson-Molnar
The term is "chained assignment" (applied to other languages as well). https://en.wikipedia.org/wiki/Assignment_(computer_science)#Chained_assignment _Nik On Tuesday, February 16, 2016 at 12:06:10 PM UTC-8, anotherdjangonewby wrote: > > Hi, > > this may be a bit off-topic, but: > > How are ex

Missing button image

2016-02-17 Thread WST
Hi All, I would appreciate if someone could tell me why the view components will not load? Thank you! -- You received this message because you are subscribed to the Go

Re: Learning Django resources

2016-02-17 Thread Robert Dumitru
Thank you so much! I think I'll go with the official tutorial miercuri, 17 februarie 2016, 18:54:17 UTC+2, Robert Dumitru a scris: > > Hi! Is there any "complete" resource I could use for learning Django, > other than "The Django Book"? *I do not like video tutorials* > -- You received this mes

Declare REST clients in django project

2016-02-17 Thread Горобец Дмитрий
Hello! How do you declare different REST clients in settings of django project? Is it a right way to declare clients directly in settings.py? MAILCHIMP_CLIENT = mailchimp.Mailchimp(MAILCHIMP_API_KEY) TWILIO_CLIENT = TwilioRestClient(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN) -- You received this m

Re: M2M: How to order by a field from the `through` table?

2016-02-17 Thread 'Brutus Schraiber' via Django users
Am Dienstag, 16. Februar 2016 10:00:43 UTC+1 schrieb Brutus Schraiber: > > Any hints on how to archive this (prefetch + ordering on `trough` table)? > Prefetch( 'notes', Note.objects.order_by('pinboard_pins__position'), ) -- You received this message because you are subscribed to the Goo

Re: Learning Django resources

2016-02-17 Thread Andrew Pinkham
Hi Robert, You may be interested in my response to this question in another thread: https://groups.google.com/d/msg/django-users/-iTZB7K1QI4/TTVXd9Y6EwAJ Hope that helps, Andrew -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Error(after updating to django 1.9

2016-02-17 Thread Deepak Gupta
I am trying to create a project CommandError: /home/shaastr/bnms/manage.py already exists, overlaying a project or app into an existing directory won't replace conflicting files -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Show error messages with verbose field names instead field names

2016-02-17 Thread Francisco Lopes
Hi, I'm creating an update form. I want to show error messages using verbose field names instead field names itself. Source code: http://dpaste.com/3DC214G http://dpaste.com/2TB8SCD When, for example, I leave the field 'estado_civil' empty, the message is 'estado_civil: this field is requir

Learning Django resources

2016-02-17 Thread Robert Dumitru
Hi! Is there any "complete" resource I could use for learning Django, other than "The Django Book"? *I do not like video tutorials* -- 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

Re: Trying to upgrade Django using pip on CentOS results in segmentation fault

2016-02-17 Thread Bill Freeman
Or clone into a new virtualenv (you are using virtualenv, aren't you, and you are using requires.txt and pip, and your code is in revision control, right?), then change the Apache configuration to use the new VE and restart. On Wed, Feb 17, 2016 at 7:00 AM, Mike Dewhirst wrote: > Try stopping Ap

Re: django: drop down menu not displaying on template despite correct syntax

2016-02-17 Thread jorrit787
Have you tried using just {{ form }} instead of {{ form.mismatch }} ? Also, (not sure if this is related) in your MISMATCH_CHOICES tuple you are giving strings instead of integers for the key value. Try using (0, '0') instead of ('0','0') On Tuesday, February 16, 2016 at 2:16:17 PM UTC+1, clar

Re: null datetime field and json fixtures

2016-02-17 Thread Malik Rumi
First, thank you to both Avraham and James. In my view, it isn't said often enough on the internet, and I've had many questions go without a response at all. So please understand that I mean it very much when I say I deeply appreciate the time you took to help me. Now as to the matter at hand: The

creating temporary storage file in django-media from drop down input

2016-02-17 Thread clarksonchris81
I have managed to configure a system, using django, that allows me to upload a file to my media-folder. I have (using simple-html) included a drop-down menu that will specify parameters that will be considered when processing the uploaded file in a pipeline. {% csrf_token %}

Re: Trying to upgrade Django using pip on CentOS results in segmentation fault

2016-02-17 Thread Mike Dewhirst
Try stopping Apache during the upgrade. I need to do that on Ubuntu. Good luck Connected by Motorola Tanuka Dutta wrote: > > > > >down votefavorite > >Hello, > >I have a Linux CentOS 6.7 installation on a VM. A few months ago, I had - >compiled and installed Python 2.7.8 on it - installed vi

Re: Trying to upgrade Django using pip on CentOS results in segmentation fault

2016-02-17 Thread Mike Dewhirst
Try sto Connected by Motorola Tanuka Dutta wrote: > > > > >down votefavorite > >Hello, > >I have a Linux CentOS 6.7 installation on a VM. A few months ago, I had - >compiled and installed Python 2.7.8 on it - installed virtualenv-13.1.2 in >/usr/lib/python2.7/site-packages - installed Django

- Broken pipe from ('127.0.0.1', 50977) When doing POST calls from the Ajax code residing the same server for Django application

2016-02-17 Thread sairam . bandaru09
Hi, I am getting this error [15/Feb/2016 01:38:58] "POST /api/survey/updateSurveyTitle/ HTTP/1.1" 200 44 - Broken pipe from ('127.0.0.1', 50977) Please help out Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Trying to upgrade Django using pip on CentOS results in segmentation fault

2016-02-17 Thread Tanuka Dutta
down votefavorite Hello, I have a Linux CentOS 6.7 installation on a VM. A few months ago, I had - compiled and installed Python 2.7.8 on it - installed virtualenv-13.1.2 in /usr/

Re: var1 = var2 = var3

2016-02-17 Thread srinivas devaki
what a coincidence, i just asked a similar question 7 hours before you, at python-l...@python.org here's the link, you can extend the discussion there to get more answers, as it is more related to the language rather than django. link: https://mail.python.org/pipermail/python-list/2016-February/7

Re: file upload fails with slow network bandwith in django

2016-02-17 Thread Pablo Conesa
El martes, 16 de febrero de 2016, 21:12:32 (UTC+1), James Schneider escribió: > > How long does the file upload work before receiving the error? > There is no response from the server (fiddler returns -1, whatever this means) >>> >>> Well, no response from the server d

Re: null datetime field and json fixtures

2016-02-17 Thread James Schneider
On Tue, Feb 16, 2016 at 4:35 PM, Malik Rumi wrote: > There are a ton of answers to this question out there - if you can wade > through all the ones that refer to forms and not models. The consensus > seems to be that datetime has to be set to both blank=true and null=true. > And when I put in one

Re: null datetime field and json fixtures

2016-02-17 Thread Avraham Serour
Try not setting any value to the field, it should be saved with the default value On Wed, Feb 17, 2016, 2:35 AM Malik Rumi wrote: > There are a ton of answers to this question out there - if you can wade > through all the ones that refer to forms and not models. The consensus > seems to be that