On Thu, Mar 21, 2013 at 5:05 PM, DJ-Tom <eventel...@gmail.com> wrote:

> Hi,
>
> I'm still a beginner and currently I'm trying to get more familiar with
> Django.
>
> I'm looking for any more detailed best-practices-type description on how
> the development cycle is meant to be managed.
>
> In settings.py, there are paths like TEMPLATE_DIRS and STATICFILE_DIRS,
> how is this supposed to work when paths on the development machine differ
> from the production server?
>
> Simple, you maintain two settings.py files, make one with Dev_settings.py
and  two with Prod_settings.py.
You can run dev and production  applications like this

python manage.py runserver --settings=Dev_settings

python manage.py runserver --settings=Prod_settings

it is all about switching between settings.py files.



> I suppose I do not have to adjust those paths every time I upload a new
> version of my application?
>
> Another point, how do I manage the time until the database schemes are
> updated to a new version (I'm planning to use south for database scheme
> maintenance) and nobody is supposed to use the application until
> everything's able to work again?


> So far that's all I can think of right now - but I'm sure a lot more
> questions will rise the next few days :-)
>
> Thomas
>
>  --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to