Thank you for your reply Daniel.


On Wednesday, November 19, 2014 9:07:31 PM UTC+2, Daniel Roseman wrote:
>
> On Wednesday, 19 November 2014 10:22:25 UTC, termopro wrote:
>>
>> I have created a Django 1.7 project and would like to deploy it. I am 
>> reading about how to do it right and i have some questions.
>>
>> If i understand correctly deployment should contain the following steps:
>>
>> 1) Initial remote machine set up:
>>
>>    - a) install os / server / database / cache ...
>>    - b) install Django and required modules
>>    - c) update database with real data
>>
>> 2) Upload code/ database changes to remote machine:
>>
>>    - a) upload changed Django project
>>    - b) upload changes in Database tables (model migrations)
>>
>> Most tutorials/articles about deployment do not cover 1.c and 2.b. Also 
>> the tasks 1.b. and 2.a. are solved using revision control tools 
>> (Git/Mercurial)
>>
>> So i'd like to know:
>>
>>    - 
>>    
>>    1) How do i install Django project or it's updates without revision 
>>    control tools ? Should i simply upload my project using FTP/SSH ? Is 
>> there 
>>    a good way to automate it ?
>>    - 
>>    
>>    2) How do i automate the task of uploading required database changes 
>>    (like model migrations) ?
>>    
>>
> Why would you do 1 without version control tools? You do it *with* version 
> control tools, that's part of the point of them.
>
> For 2, you're making a strange distinction. Model migrations are part of 
> your code, and are deployed along with it; you simply need to run them when 
> the project is deployed.
> --
> DR. 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f3ef0692-075b-4ea3-934c-e366904d40cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to