I am presently focusing on creating a personal Django site which will contain various technologies / subdomains. My primary page(s) is going to be Django, having a blog.blah.com subdomain that runs wordpress, and many other subdomains for projects (project1.blah.com, project2.blah.com), which are static HTML files (produced with Sphinx).

I am getting lots of trouble organizing my file hierarchy and web server designs. I am presently running Apache on port 8080 which serves the Django stuff via mod_wsgi, and that i use NGINX on port 80 to deal with demands and proxying.

Here's my current filesystem layout. NOTE: I run ALL websites within single user account.

blah@blah:~$ tree
.
`-- sites
    |-- blah.org
    |   |-- logs
    |   |-- blah
    |   |   |-- apache
    |   |   |   |-- blah.conf
    |   |   |   `-- blah.wsgi
    |   |   |-- INSTALL
    |   |   |-- nginx
    |   |   |   `-- blah.conf
    |   |   |-- blah
    |   |   |   |-- app1
    |   |   |   |   `-- models.py
    |   |   |   |-- app2
    |   |   |   |   `-- models.py
    |   |   |   |-- manage.py
    |   |   |   |-- settings.py
    |   |   |   `-- urls.py
    |   |   `-- README
    |   `-- private
    `-- blah2.org

Can anybody assist me to determine where you can place files for any best-practices kind of deployment? The dwelling above ONLY consists of my Django code. I have got no clue where you can put my static content files (eg: html subdomain sites), and my other services (eg: wordpress stuff).

Any help could be greatly appreciated! Bonuses should you showcase your directory structure.

I put my stuff in /srv/www/blah.org/ such as this:

-- blah.org
  | -- media
  | -- amedia
  | -- templates
  | -- blah
     | django app
     ...
  | -- settings.py
  | -- config
     | -- crontab
     | -- blag.org.conf (nginx)
  | -- manage.py

I Quickly confiugure static /media/ and /amedia/ with nginx and proxy anything else to gunicorn serving django.