>>>>> "Clifford" == CLIFFORD ILKAY <clifford_il...@dinamis.com> writes:
Clifford> You don't have to organize your Django project directories any
Clifford> differently, unless you want to.

Nice to hear ;)

Clifford> You will most likely have changes that are necessary when you
Clifford> migrate from one server to another, different paths, different
Clifford> database settings, different secret keys, perhaps a different
Clifford> time zone, whatever. We use a pre_local_settings.py and
Clifford> post_local_settings.py file for isolating those changes and
Clifford> don't keep those two files under version control. That way, we
Clifford> can keep setting.py under version control without exposing
Clifford> sensitive information, like passwords, and have the same
Clifford> settings.py in all scenarios. In setting.py, you could have
Clifford> something like the following.

[...]

Clifford> # Now we have all the things that are the same across all
Clifford> instances INSTALLED_APPS = ( # List all the installed apps
Clifford> here ) # etc.

Ohh, this is nice.

Clifford> To keep it simple, we use PostgreSQL in development, QA, and
Clifford> production and on those projects where we're forced to use
Clifford> MySQL due to client requirements, then MySQL everywhere.

What about 'syncing' content (if that is the issue)?

Dump on production, import on development, add new content, dump on
development, import on production?

Clifford> The tutorial is a good place to start. There is no need to set
Clifford> up a web server for development. The built-in development
Clifford> server is quite sufficient and actually more useful in
Clifford> development than a web server when you're prototyping and
Clifford> debugging. 

That's clear. However, while working on 'gallery' app from the book,
it's already mentioned that devserver is not for handling static images
and I wanted to try out everything as on 'production' server.

btw, Google gave me one nice URL which might be interested for someone
else as well:
http://martinjansen.com/2008/10/20/django-settings-files-for-development-and-production/


Thank you for your input.


Sincerely,
Gour

-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D
----------------------------------------------------------------

Attachment: pgp3E9Mmqfmb6.pgp
Description: PGP signature

Reply via email to