synchro-orleans renamed to synchro_orleans

This commit is contained in:
Serghei Mihai 2014-03-20 17:18:46 +01:00
parent 82482641b9
commit 8534cdba4a
20 changed files with 17 additions and 26 deletions

View File

@ -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()

View File

@ -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

View File

@ -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)),
)

View File

@ -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):

View File

@ -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',
)

9
synchro_orleans/urls.py Normal file
View File

@ -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)),
)

View File

@ -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