From 74b5ddcfc3af0c3155915f54c2490fcdda0d19f7 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 31 Jul 2013 22:13:22 +0200 Subject: [PATCH] Separate src dir. --- fabfile.py | 2 ++ manage.py => src/manage.py | 0 {project_name => src/project_name}/__init__.py | 0 .../project_name}/locale/pl/LC_MESSAGES/django.mo | Bin .../project_name}/locale/pl/LC_MESSAGES/django.po | 0 .../project_name}/localsettings.py.dev | 0 .../project_name}/settings/__init__.py | 0 {project_name => src/project_name}/settings/apps.py | 0 {project_name => src/project_name}/settings/auth.py | 0 .../project_name}/settings/basic.py | 0 .../project_name}/settings/context.py | 0 .../project_name}/settings/contrib.py | 0 .../project_name}/settings/custom.py | 0 .../project_name}/settings/locale.py | 0 .../project_name}/settings/logging.py | 0 .../project_name}/settings/middleware.py | 0 .../project_name}/settings/paths.py | 0 .../project_name}/settings/static.py | 0 .../project_name}/static/css/base.scss | 0 .../project_name}/templates/404.html | 0 .../project_name}/templates/500.html | 0 .../project_name}/templates/base.html | 0 {project_name => src/project_name}/urls.py | 0 {project_name => src/project_name}/wsgi.py | 0 24 files changed, 2 insertions(+) rename manage.py => src/manage.py (100%) rename {project_name => src/project_name}/__init__.py (100%) rename {project_name => src/project_name}/locale/pl/LC_MESSAGES/django.mo (100%) rename {project_name => src/project_name}/locale/pl/LC_MESSAGES/django.po (100%) rename {project_name => src/project_name}/localsettings.py.dev (100%) rename {project_name => src/project_name}/settings/__init__.py (100%) rename {project_name => src/project_name}/settings/apps.py (100%) rename {project_name => src/project_name}/settings/auth.py (100%) rename {project_name => src/project_name}/settings/basic.py (100%) rename {project_name => src/project_name}/settings/context.py (100%) rename {project_name => src/project_name}/settings/contrib.py (100%) rename {project_name => src/project_name}/settings/custom.py (100%) rename {project_name => src/project_name}/settings/locale.py (100%) rename {project_name => src/project_name}/settings/logging.py (100%) rename {project_name => src/project_name}/settings/middleware.py (100%) rename {project_name => src/project_name}/settings/paths.py (100%) rename {project_name => src/project_name}/settings/static.py (100%) rename {project_name => src/project_name}/static/css/base.scss (100%) rename {project_name => src/project_name}/templates/404.html (100%) rename {project_name => src/project_name}/templates/500.html (100%) rename {project_name => src/project_name}/templates/base.html (100%) rename {project_name => src/project_name}/urls.py (100%) rename {project_name => src/project_name}/wsgi.py (100%) diff --git a/fabfile.py b/fabfile.py index 0e488b7..6196757 100644 --- a/fabfile.py +++ b/fabfile.py @@ -7,3 +7,5 @@ env.app_path = '/srv/{{ project_name }}' env.services = [ DebianGunicorn('{{ project_name }}'), ] +env.django_root_path = 'src' + diff --git a/manage.py b/src/manage.py similarity index 100% rename from manage.py rename to src/manage.py diff --git a/project_name/__init__.py b/src/project_name/__init__.py similarity index 100% rename from project_name/__init__.py rename to src/project_name/__init__.py diff --git a/project_name/locale/pl/LC_MESSAGES/django.mo b/src/project_name/locale/pl/LC_MESSAGES/django.mo similarity index 100% rename from project_name/locale/pl/LC_MESSAGES/django.mo rename to src/project_name/locale/pl/LC_MESSAGES/django.mo diff --git a/project_name/locale/pl/LC_MESSAGES/django.po b/src/project_name/locale/pl/LC_MESSAGES/django.po similarity index 100% rename from project_name/locale/pl/LC_MESSAGES/django.po rename to src/project_name/locale/pl/LC_MESSAGES/django.po diff --git a/project_name/localsettings.py.dev b/src/project_name/localsettings.py.dev similarity index 100% rename from project_name/localsettings.py.dev rename to src/project_name/localsettings.py.dev diff --git a/project_name/settings/__init__.py b/src/project_name/settings/__init__.py similarity index 100% rename from project_name/settings/__init__.py rename to src/project_name/settings/__init__.py diff --git a/project_name/settings/apps.py b/src/project_name/settings/apps.py similarity index 100% rename from project_name/settings/apps.py rename to src/project_name/settings/apps.py diff --git a/project_name/settings/auth.py b/src/project_name/settings/auth.py similarity index 100% rename from project_name/settings/auth.py rename to src/project_name/settings/auth.py diff --git a/project_name/settings/basic.py b/src/project_name/settings/basic.py similarity index 100% rename from project_name/settings/basic.py rename to src/project_name/settings/basic.py diff --git a/project_name/settings/context.py b/src/project_name/settings/context.py similarity index 100% rename from project_name/settings/context.py rename to src/project_name/settings/context.py diff --git a/project_name/settings/contrib.py b/src/project_name/settings/contrib.py similarity index 100% rename from project_name/settings/contrib.py rename to src/project_name/settings/contrib.py diff --git a/project_name/settings/custom.py b/src/project_name/settings/custom.py similarity index 100% rename from project_name/settings/custom.py rename to src/project_name/settings/custom.py diff --git a/project_name/settings/locale.py b/src/project_name/settings/locale.py similarity index 100% rename from project_name/settings/locale.py rename to src/project_name/settings/locale.py diff --git a/project_name/settings/logging.py b/src/project_name/settings/logging.py similarity index 100% rename from project_name/settings/logging.py rename to src/project_name/settings/logging.py diff --git a/project_name/settings/middleware.py b/src/project_name/settings/middleware.py similarity index 100% rename from project_name/settings/middleware.py rename to src/project_name/settings/middleware.py diff --git a/project_name/settings/paths.py b/src/project_name/settings/paths.py similarity index 100% rename from project_name/settings/paths.py rename to src/project_name/settings/paths.py diff --git a/project_name/settings/static.py b/src/project_name/settings/static.py similarity index 100% rename from project_name/settings/static.py rename to src/project_name/settings/static.py diff --git a/project_name/static/css/base.scss b/src/project_name/static/css/base.scss similarity index 100% rename from project_name/static/css/base.scss rename to src/project_name/static/css/base.scss diff --git a/project_name/templates/404.html b/src/project_name/templates/404.html similarity index 100% rename from project_name/templates/404.html rename to src/project_name/templates/404.html diff --git a/project_name/templates/500.html b/src/project_name/templates/500.html similarity index 100% rename from project_name/templates/500.html rename to src/project_name/templates/500.html diff --git a/project_name/templates/base.html b/src/project_name/templates/base.html similarity index 100% rename from project_name/templates/base.html rename to src/project_name/templates/base.html diff --git a/project_name/urls.py b/src/project_name/urls.py similarity index 100% rename from project_name/urls.py rename to src/project_name/urls.py diff --git a/project_name/wsgi.py b/src/project_name/wsgi.py similarity index 100% rename from project_name/wsgi.py rename to src/project_name/wsgi.py -- 2.20.1