On Wed, 2007-12-26 at 05:15 -0800, rodrigo wrote:
> Hi,
> 
> I am a complete Django newbie, and about to start developing my first
> project. Some questions about development vs. production servers:
> 1- do you usually develop on a local server and then move to a remote
> production server once it's done? Or develop on the production server?

I think you'll find most people do at least the early development work
locally, since it's so easy to do so (that's why the development
webserver exists, for example). I know that's the way I work all the
time: all development is done locally and the only production server
"testing" I do is to make sure that after a rollout all the pages still
work.

> 2- how seamless is the move from one server to another? Do you usually
> run into gotchas at this point? Or does it just-work, as most other
> things in Django seem to?

Most things should "just work". If you're developing against a different
database server to the one you're going to be using in production,
things can sometimes need tweaking. Again, from personal experience: I
tend to use SQLite for my local work, because I can version-control the
single database file as I try things out, etc. However, I use PostgreSQL
in production for my blog and the first time I tested things with
PostgreSQL, I realised there were a couple of database differences. But
that's about as bad as it gets and I'm being fairly hard on myself in a
way by developing for two databases at once (keeps my code portable,
though).

> 3- I have Django 0.97 on my laptop, but my host (webfaction) has 0.96.
> Should I downgrade the local version so I'm using the same one as the
> host?

This is where you'll notice the most problems (firstly, 0.97 doesn't
exist... you're using 0.97-pre-something). There have been a *lot* of
changes since 0.96, so it would be best to develop against the same
version you'll be using in production.

Regards,
Malcolm

-- 
Save the whales. Collect the whole set. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to