From 8534cdba4ae44a8ce28f2175a4c6b17f1e2947d8 Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Thu, 20 Mar 2014 17:18:46 +0100 Subject: [PATCH] synchro-orleans renamed to synchro_orleans --- setup.py | 2 +- synchro-orleans-manage.py | 2 +- synchro-orleans/urls.py | 17 ----------------- .../__init__.py | 0 .../data/__init__.py | 0 .../data/admin.py | 0 .../data/management/__init__.py | 0 .../data/management/commands/__init__.py | 0 .../management/commands/invoicestatussync.py | 2 +- .../data/management/commands/synchronize.py | 0 .../data/migrations/0001_initial.py | 0 ...personne_telephone_portable_professionnel.py | 0 ...t_tipi__add_field_facture_date_reponse_ti.py | 0 .../data/migrations/__init__.py | 0 .../data/models.py | 0 .../data/tests.py | 0 .../data/views.py | 0 .../settings.py | 8 ++++---- synchro_orleans/urls.py | 9 +++++++++ {synchro-orleans => synchro_orleans}/wsgi.py | 3 +-- 20 files changed, 17 insertions(+), 26 deletions(-) delete mode 100644 synchro-orleans/urls.py rename {synchro-orleans => synchro_orleans}/__init__.py (100%) rename {synchro-orleans => synchro_orleans}/data/__init__.py (100%) rename {synchro-orleans => synchro_orleans}/data/admin.py (100%) rename {synchro-orleans => synchro_orleans}/data/management/__init__.py (100%) rename {synchro-orleans => synchro_orleans}/data/management/commands/__init__.py (100%) rename {synchro-orleans => synchro_orleans}/data/management/commands/invoicestatussync.py (93%) rename {synchro-orleans => synchro_orleans}/data/management/commands/synchronize.py (100%) rename {synchro-orleans => synchro_orleans}/data/migrations/0001_initial.py (100%) rename {synchro-orleans => synchro_orleans}/data/migrations/0002_auto__add_field_personne_telephone_portable_professionnel.py (100%) rename {synchro-orleans => synchro_orleans}/data/migrations/0003_auto__add_field_facture_statut_tipi__add_field_facture_date_reponse_ti.py (100%) rename {synchro-orleans => synchro_orleans}/data/migrations/__init__.py (100%) rename {synchro-orleans => synchro_orleans}/data/models.py (100%) rename {synchro-orleans => synchro_orleans}/data/tests.py (100%) rename {synchro-orleans => synchro_orleans}/data/views.py (100%) rename {synchro-orleans => synchro_orleans}/settings.py (96%) create mode 100644 synchro_orleans/urls.py rename {synchro-orleans => synchro_orleans}/wsgi.py (90%) diff --git a/setup.py b/setup.py index 98c15e0..a194ba1 100755 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ class compile_translations(Command): try: from django.core.management.commands.compilemessages import \ compile_messages - for path in ['synchro-orleans']: + for path in ['synchro_orleans']: if not os.path.exists(os.path.join(path, 'locale')): continue curdir = os.getcwd() diff --git a/synchro-orleans-manage.py b/synchro-orleans-manage.py index 8ee72a1..47d7e82 100755 --- a/synchro-orleans-manage.py +++ b/synchro-orleans-manage.py @@ -3,7 +3,7 @@ import os import sys if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "synchro-orleans.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "synchro_orleans.settings") from django.core.management import execute_from_command_line diff --git a/synchro-orleans/urls.py b/synchro-orleans/urls.py deleted file mode 100644 index 8f3cc1d..0000000 --- a/synchro-orleans/urls.py +++ /dev/null @@ -1,17 +0,0 @@ -from django.conf.urls import patterns, include, url - -# Uncomment the next two lines to enable the admin: -from django.contrib import admin -admin.autodiscover() - -urlpatterns = patterns('', - # Examples: - # url(r'^$', 'synchro.views.home', name='home'), - # url(r'^synchro/', include('synchro.foo.urls')), - - # Uncomment the admin/doc line below to enable admin documentation: - # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), - - # Uncomment the next line to enable the admin: - url(r'^', include(admin.site.urls)), -) diff --git a/synchro-orleans/__init__.py b/synchro_orleans/__init__.py similarity index 100% rename from synchro-orleans/__init__.py rename to synchro_orleans/__init__.py diff --git a/synchro-orleans/data/__init__.py b/synchro_orleans/data/__init__.py similarity index 100% rename from synchro-orleans/data/__init__.py rename to synchro_orleans/data/__init__.py diff --git a/synchro-orleans/data/admin.py b/synchro_orleans/data/admin.py similarity index 100% rename from synchro-orleans/data/admin.py rename to synchro_orleans/data/admin.py diff --git a/synchro-orleans/data/management/__init__.py b/synchro_orleans/data/management/__init__.py similarity index 100% rename from synchro-orleans/data/management/__init__.py rename to synchro_orleans/data/management/__init__.py diff --git a/synchro-orleans/data/management/commands/__init__.py b/synchro_orleans/data/management/commands/__init__.py similarity index 100% rename from synchro-orleans/data/management/commands/__init__.py rename to synchro_orleans/data/management/commands/__init__.py diff --git a/synchro-orleans/data/management/commands/invoicestatussync.py b/synchro_orleans/data/management/commands/invoicestatussync.py similarity index 93% rename from synchro-orleans/data/management/commands/invoicestatussync.py rename to synchro_orleans/data/management/commands/invoicestatussync.py index 0b07683..6b9d144 100644 --- a/synchro-orleans/data/management/commands/invoicestatussync.py +++ b/synchro_orleans/data/management/commands/invoicestatussync.py @@ -4,7 +4,7 @@ from django.core.management.base import BaseCommand, CommandError from django.db.models import get_model from django.conf import settings -from synchro.data.models import Facture +from synchro_orleans.data.models import Facture class Command(BaseCommand): diff --git a/synchro-orleans/data/management/commands/synchronize.py b/synchro_orleans/data/management/commands/synchronize.py similarity index 100% rename from synchro-orleans/data/management/commands/synchronize.py rename to synchro_orleans/data/management/commands/synchronize.py diff --git a/synchro-orleans/data/migrations/0001_initial.py b/synchro_orleans/data/migrations/0001_initial.py similarity index 100% rename from synchro-orleans/data/migrations/0001_initial.py rename to synchro_orleans/data/migrations/0001_initial.py diff --git a/synchro-orleans/data/migrations/0002_auto__add_field_personne_telephone_portable_professionnel.py b/synchro_orleans/data/migrations/0002_auto__add_field_personne_telephone_portable_professionnel.py similarity index 100% rename from synchro-orleans/data/migrations/0002_auto__add_field_personne_telephone_portable_professionnel.py rename to synchro_orleans/data/migrations/0002_auto__add_field_personne_telephone_portable_professionnel.py diff --git a/synchro-orleans/data/migrations/0003_auto__add_field_facture_statut_tipi__add_field_facture_date_reponse_ti.py b/synchro_orleans/data/migrations/0003_auto__add_field_facture_statut_tipi__add_field_facture_date_reponse_ti.py similarity index 100% rename from synchro-orleans/data/migrations/0003_auto__add_field_facture_statut_tipi__add_field_facture_date_reponse_ti.py rename to synchro_orleans/data/migrations/0003_auto__add_field_facture_statut_tipi__add_field_facture_date_reponse_ti.py diff --git a/synchro-orleans/data/migrations/__init__.py b/synchro_orleans/data/migrations/__init__.py similarity index 100% rename from synchro-orleans/data/migrations/__init__.py rename to synchro_orleans/data/migrations/__init__.py diff --git a/synchro-orleans/data/models.py b/synchro_orleans/data/models.py similarity index 100% rename from synchro-orleans/data/models.py rename to synchro_orleans/data/models.py diff --git a/synchro-orleans/data/tests.py b/synchro_orleans/data/tests.py similarity index 100% rename from synchro-orleans/data/tests.py rename to synchro_orleans/data/tests.py diff --git a/synchro-orleans/data/views.py b/synchro_orleans/data/views.py similarity index 100% rename from synchro-orleans/data/views.py rename to synchro_orleans/data/views.py diff --git a/synchro-orleans/settings.py b/synchro_orleans/settings.py similarity index 96% rename from synchro-orleans/settings.py rename to synchro_orleans/settings.py index c67893b..8c89072 100644 --- a/synchro-orleans/settings.py +++ b/synchro_orleans/settings.py @@ -12,7 +12,7 @@ MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': os.environ.get('DATABASE_ENGINE', 'django.db.backends.postgresql_psycopg2'), - 'NAME': os.environ.get('DATABASE_NAME', 'synchro-orleans'), + 'NAME': os.environ.get('DATABASE_NAME', 'synchro_orleans'), # The following settings are not used with sqlite3: 'USER': '', 'PASSWORD': '', @@ -102,10 +102,10 @@ MIDDLEWARE_CLASSES = ( # 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) -ROOT_URLCONF = 'synchro-orleans.urls' +ROOT_URLCONF = 'synchro_orleans.urls' # Python dotted path to the WSGI application used by Django's runserver. -WSGI_APPLICATION = 'synchro-orleans.wsgi.application' +WSGI_APPLICATION = 'synchro_orleans.wsgi.application' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". @@ -124,7 +124,7 @@ INSTALLED_APPS = ( 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', - 'synchro-orleans.data', + 'synchro_orleans.data', 'south', ) diff --git a/synchro_orleans/urls.py b/synchro_orleans/urls.py new file mode 100644 index 0000000..d5ce311 --- /dev/null +++ b/synchro_orleans/urls.py @@ -0,0 +1,9 @@ +from django.conf.urls import patterns, include, url + +# Uncomment the next two lines to enable the admin: +from django.contrib import admin +admin.autodiscover() + +urlpatterns = patterns('', + url(r'^', include(admin.site.urls)), +) diff --git a/synchro-orleans/wsgi.py b/synchro_orleans/wsgi.py similarity index 90% rename from synchro-orleans/wsgi.py rename to synchro_orleans/wsgi.py index d5f44fa..a8091d0 100644 --- a/synchro-orleans/wsgi.py +++ b/synchro_orleans/wsgi.py @@ -18,8 +18,7 @@ import os # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks # if running multiple sites in the same mod_wsgi process. To fix this, use # mod_wsgi daemon mode with each site in its own daemon process, or use -# os.environ["DJANGO_SETTINGS_MODULE"] = "synchro.settings" -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "synchro.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "synchro_orleans.settings") # This application object is used by any WSGI server configured to use this # file. This includes Django's development server, if the WSGI_APPLICATION