Re: reading CSV file with non ASCII characters

2016-02-05 Thread Bill Blanchard
Try this: https://github.com/jdunck/python-unicodecsv On Fri, Feb 5, 2016 at 9:14 PM, elcaiaimar wrote: > Hello, > > I have a CSV File and I want read it. The problem is that it has non ASCII > characters such as 'Ñ' and accents and I need that they are recognised to > save

Re: Scaling Django

2016-02-03 Thread Bill Blanchard
Let's try to adress some of their concerns: - We need to move to a service-oriented infrastructure because Django is > too monolithic It depends on what your application does and what you're planning to do with it in the future. People are quick prescribe SOA as the end all way to scale, but

Re: pip install django

2015-12-24 Thread Bill Blanchard
I am experiencing this as well. On Thu, Dec 24, 2015 at 9:08 AM, wrote: > Is failing from several machines this morning. > > >pip install django --upgrade > Collecting django > Could not find a version that satisfies the requirement django (from > versions: ) > No matching

Re: What I need to know to be a Django full stack developer?

2015-09-04 Thread Bill Blanchard
Full stack implies that you are competent working on the front end (HTML/CSS/Javascript), back end (Django/Python), and database (to a lesser extent). You don't necessarily have to be an amazing designer to consider yourself "full stack", but you need to be able to do basic front end layouts and

Re: Amazon S3 Storage

2015-07-16 Thread Bill Blanchard
I've used this with success in the past: https://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html On Thu, Jul 16, 2015 at 10:22 PM, Rootz wrote: > Can you explain to me the easiest way to store uploaded image to a Django > Project using Amazon S3 for all my

Re: classic: unsupported operand type(s) for +: 'int' and 'NoneType'

2015-04-13 Thread Bill Blanchard
If you allow Null values in your model and one of the two is being populated with Null, then you'll get the error you're seeing. Example: Form: ram_1 = 56 ram_2 = Null (None) 56 + Null (None) doesn't work. What you should do instead is set Null to FALSE in both your field declarations and set

Re: Showing Errors for Non-Form Errors in a Formset

2015-04-06 Thread Bill Blanchard
Hi Stephanie, It looks like you're not returning anything when you hit an error. Try: ... def clean(self): if any(self.errors): return self.errors ... On Mon, Apr 6, 2015 at 12:00 PM, Stephanie Socias wrote: > I implement a custom clean method to validate my

Re: Multiple Django Forms

2015-03-31 Thread Bill Blanchard
Hi Stephanie, Ping me offline, I might be able to help you out. On Mar 30, 2015 1:43 PM, "Stephanie Socias" wrote: > Thank you for your suggestions! > > Unfortunately, as I am very green at the moment, I nee more help to > implement all of these new techniques. Given

Re: Help with Dynamically Adding Forms to Formset!!

2015-03-30 Thread Bill Blanchard
veloping the ability >> to see, and the second is learning — as romantic poet John Keats put >> it — to be “capable of being in uncertainties, mysteries, doubts, >> without any irritable reaching after fact & reason.” >> >> Seeking Genius in Negative Space, Ch

Re: Help with Dynamically Adding Forms to Formset!!

2015-03-30 Thread Bill Blanchard
> > > > {% endfor %} > {{ formset.management_form }} > > > > > > > > > > > Cancel > value="Proceed to Data Upload"

Re: Help with Dynamically Adding Forms to Formset!!

2015-03-30 Thread Bill Blanchard
soc...@gmail.com> wrote: > Thank you, Bill! I'm getting a TypeError that $(...).formset is not a > function > I'll see what's up! > > On Mon, Mar 30, 2015 at 8:29 PM, Bill Blanchard <bill.blanch...@gmail.com> > wrote: > >> Hi Stephanie, >> You have two jQue

Re: Help with Dynamically Adding Forms to Formset!!

2015-03-30 Thread Bill Blanchard
{{ form.role }} > > > > > {% endfor %} > {{ formset.management_form }} > > > > > > > > > > > Cancel >

Re: Help with Dynamically Adding Forms to Formset!!

2015-03-30 Thread Bill Blanchard
Hi Stephanie, The addText and deleteText variables are the hyperlink text that is displayed on the page. You can remove them or modify accordingly. I believe the default values are Add Form and Remove Form if you do not explicitly declare them in the javascript function. On Mar 30, 2015 6:03 PM,

Re: Help with Dynamically Adding Forms to Formset!!

2015-03-30 Thread Bill Blanchard
Hi Stephanie, I've had success with the following jQuery library: https://github.com/elo80ka/django-dynamic-formset You can administer the formsets normally in your view and forms files. Reference here: https://docs.djangoproject.com/en/1.7/topics/forms/formsets/ Here is a code snippet of a

Re: Can't run django!

2015-03-04 Thread Bill Blanchard
Can we see a sanitized version of your settings file? My guess is there's probably a typo in there somewhere. On Mon, Mar 2, 2015 at 10:44 AM, David Zahedi wrote: > Hi there, > > I am using python 2.7 and django 1.75; when I run "manage.py runserver" I > get the following