Live data from Hacker News

Django 1.6 released

djangoproject.com

71–80 of 107 posts

Re: Django 1.6 released

#71
post #36

For those who works with designers or html people who don't use the command line, how do you collaborate with them with Django? For me it's a perpetual issue to get them up and running, commit/push with git, etc etc. Is there an easier solution? Basically, I'd like them to get started and be able to tweak the templates and css as effortless as possible. It's kind of very hard to have people working directly in templa…

A few suggestions:

- Use Vagrant and some bootstrap scripts (or Docker) to make giving them a dev environment easy

- Get them to use a git GUI like SourceTree (free & good: http://www.sourcetreeapp.com/)

- Build a workflow around pull requests / review branches a la github/bitbucket/gerrit so you can have them submit changes but an engineer reviews/verifies before it's merged.

In general, empowering them to do this is an investment in the future and well worth it.

Re: Django 1.6 released

#72
post #42

Earlier quoted context omitted.

I'm quite interested in your experiences with Django, as I'm somewhat in the same boat. I'm a .NET developer, and while I love C#, am a fan of strongly-typed languages, and am quite fond of the .NET framework I have a soft spot for Python and especially Django. Similarly, I had a few days and decided to go out of my comfort zone. A few days later I had written a blog script and had modified it to work with Google App…

am a fan of strongly-typed languages Nit-pick: suspect you are actually a fan of statically-typed languages. Python is a strongly-typed language, but not statically-typed. (general easy way to tell them apart: in a statically-typed language, both the name and the value bound to it have a type, and those types must match; in a dynamically-typed language only the value has a type; in a weakly-typed language, operations…

> Nit-pick: suspect you are actually a fan of statically-typed languages.

And probably closer to "statically-but-not-too-statically-typed-because-really-more-than-my-language-of-choice-is-too-much" languages. Self-avowed fans of "statically-typed languages" (usually java or C#) rarely consider giving up nulls and casts.

Re: Django 1.6 released

#73

Django is one of my favorite open-source projects. I owe the project a lot. Years ago, when I was a Microsoft-only shill (yeah, I'll say it), I knew how to build almost anything as long as something from Microsoft was under the covers. I was proud of my abilities, and in spite of the anti-MS crowd, I stood up for my platform and was a good developer. In 2006, I had a short two-week break from my startup job, and my w…

My experiences are somewhat similar to yours. When people ask me how I learned Python, I tell them I started with the Django tutorials.

Re: Django 1.6 released

#74
post #12

Earlier quoted context omitted.

Django Packages lists 160 apps that work with Python 3. See https://www.djangopackages.com/python3/ From personal experience, most of the critical ones are compatible.

Boto (using SES for email) is main one. And supervisord if you want to keep your deployment Python 3 only.

Circus is Python 3 compatible if people are looking for an alternative to supervisor.

There's always the option of just using Upstart or systemd as well.

Re: Django 1.6 released

#75
post #64
post #6

Earlier quoted context omitted.

How is library support? I didn't have any issues with django 1.5 itself, but many of my favorite libraries weren't ready yet.

The standard MySQL driver wasn´t working the other day when I tried. That might be quite a big one for some people. I saw you could apply a patch, but I didn´t get round to trying yet.

Alpha release of Oracle MySQL Connector/Python http://dev.mysql.com/downloads/connector/python/ actually works with Django 1.5+ and Python3. But you will be on the bleeding edge if you put it in production.

Re: Django 1.6 released

#76
post #36

For those who works with designers or html people who don't use the command line, how do you collaborate with them with Django? For me it's a perpetual issue to get them up and running, commit/push with git, etc etc. Is there an easier solution? Basically, I'd like them to get started and be able to tweak the templates and css as effortless as possible. It's kind of very hard to have people working directly in templa…

What command line stuff would they need to do? I've built a couple reasonably complex projects using Django, and I don't remember spending much time at all on the command line.

I think I had a one line batch file to start the server, but that's it. Subversion integrates directly into the filesystem with tortoisesvn and even Git has good tools these days.

I can't imagine a designer needing to touch the command line at all.

Re: Django 1.6 released

#77
post #64
post #6

Earlier quoted context omitted.

How is library support? I didn't have any issues with django 1.5 itself, but many of my favorite libraries weren't ready yet.

The standard MySQL driver wasn´t working the other day when I tried. That might be quite a big one for some people. I saw you could apply a patch, but I didn´t get round to trying yet.

You could also try this: https://pypi.python.org/pypi/PyMySQL

Re: Django 1.6 released

#79

Earlier quoted context omitted.

am a fan of strongly-typed languages Nit-pick: suspect you are actually a fan of statically-typed languages. Python is a strongly-typed language, but not statically-typed. (general easy way to tell them apart: in a statically-typed language, both the name and the value bound to it have a type, and those types must match; in a dynamically-typed language only the value has a type; in a weakly-typed language, operations…

> Nit-pick: suspect you are actually a fan of statically-typed languages. And probably closer to "statically-but-not-too-statically-typed-because-really-more-than-my-language-of-choice-is-too-much" languages. Self-avowed fans of "statically-typed languages" (usually java or C#) rarely consider giving up nulls and casts.

In some cases, Java is more weakly typed than Python or Ruby.

Java:

System.out.println("abc" + 5); -> "abc5"

Python:

print "abc" + 5 -> TypeError: cannot concatenate 'str' and 'int' objects

Ruby:

puts "abc" + 5 -> TypeError: can't convert Fixnum into String

Re: Django 1.6 released

#80

Earlier quoted context omitted.

> Nit-pick: suspect you are actually a fan of statically-typed languages. And probably closer to "statically-but-not-too-statically-typed-because-really-more-than-my-language-of-choice-is-too-much" languages. Self-avowed fans of "statically-typed languages" (usually java or C#) rarely consider giving up nulls and casts.

In some cases, Java is more weakly typed than Python or Ruby. Java: System.out.println("abc" + 5); -> "abc5" Python: print "abc" + 5 -> TypeError: cannot concatenate 'str' and 'int' objects Ruby: puts "abc" + 5 -> TypeError: can't convert Fixnum into String

And here we can see the issues and clusterfucks of the completely undefined and arbitrary "concept" of "weak" (conv. strong) typing: java's behavior here is well-defined, simple and statically typed, there's no more type loss than when doing `5 + 1.0` in Ruby or Python.

Why do you find implicitly converting an int (/Fixnum) to a float (/Float) more palatable, when they have completely different internal representations, domains of definition, precisions, operational semantics and potential pitfalls?

And what about Python's `"foo" * 3`? Hell, what about this:

    > class Fixnum
    >   def to_str
    >     self.to_s
    >   end
    > end
    => nil
    > "5" + 3
    => "53"
so "strongly typed" it has a protocol for implicit string conversion.

But wait, there's more without even bothering with overrides:

    > a = [1, 2, 3]
    => [1, 2, 3]
    > a[1.4]
    => 2
floating-point index to an array? no problem.
Post reply on HN