On Saturday, March 24, 2018 at 12:42:52 PM UTC, Goran Radanovic wrote:
>
> I have set up a server with Ubuntu, Nginx, uwisg, Postgres and Django.  I 
> got this part figured out its running multiple sites with each of its own 
> virtalenv.
>
> My development is on Windows 10 and pycharm, what I haven't figured out is 
> how I can develop in pyCharm and then deploy to my server.
>

I suggest you set up virtualenvs much as you did on the server.

>
> Do the environments have to be the same in development and production?
>
 
No. There are advantages to them being the same though. Not necessarily 
identical, but I develop on Ubuntu and its near enough that things work the 
same on any Linux distro used for production by clients - I have run into 
problems with different Postgres versions when copying database dumps from 
production to development, and that is about it.

Is it possible to develop locally with f.ex SQLite and then deploy to the 
> server that runs Postgres?
>

Yes, but you cannot use the postgres specific features provided by recent 
versions of 
Django: https://docs.djangoproject.com/en/1.11/ref/contrib/postgres/

Why not just install Postgres? 

>
> I don't know if I'm totally out of bounds here, please help me understand 
> deployment.
>
> Regards
> Goran
>  
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0fb28790-e5f8-44e8-a332-7baa42e56ce9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to