django - Proper site project structure when project under development -


i trying @ first time develop site on own, , don't have real experience, have bit of frameworks , technologies in use. @ current moment using django runs under local apache server. , front-end part using bootstrap sources less. , have use git. project folder contain lot of releases site mustn't.

the apache root directory, default 1 offered, var/www/html/bestsite. not convenient in use, because requires root user, every editor have run under root user.

well next logical step reconfig apache use other path, let's home/user/projects/bestsite, again here have lot of unnecessary releases site mustn't. can write script or use grunt copy bestsite's content var/www/html/bestsite, have doubts rationality of solution.

finally question how should be? how organize projects?

for development don't use apache. use built-in development server. can run python manage.py runserver. when comes less or sass recommend use django-compressor. integrates django development server generates css on fly.

i suggest use vagrant box development. can develop on production system. it's possible spin amazon ec2 instances vagrant.

you free in sense of project structure if configuration right. depends heavily on size of project. small projects default structure fits well. wrap django-project folder folder git, configs, etc. find there place.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -