wip: command line tool

Few fixes.

see #314
This commit is contained in:
Antoine Nguyen
2012-10-14 16:27:17 +02:00
parent cfc249c24c
commit 7e50659009
3 changed files with 7 additions and 19 deletions
+1
View File
@@ -110,6 +110,7 @@ class DeployCommand(Command):
if parsed_args.run_syncdb:
self._exec_django_command("syncdb", parsed_args.name, '--migrate', '--noinput')
self._exec_django_command("loaddata", parsed_args.name, 'initial_users.json')
if parsed_args.run_collectstatic:
self._exec_django_command("collectstatic", parsed_args.name, '--noinput')
+5 -5
View File
@@ -1,4 +1,4 @@
# Django settings for toto project.
# Django settings for {{ name }} project.
import os
DEBUG = True
@@ -101,7 +101,7 @@ TEMPLATE_LOADERS = (
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
# 'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
@@ -112,10 +112,10 @@ MIDDLEWARE_CLASSES = (
'modoboa.lib.middleware.ExtControlMiddleware',
)
ROOT_URLCONF = 'urls'
ROOT_URLCONF = '{{ name }}.urls'
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = '{{ name }}.wsgi.application'
{% if django14 %}# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = '{{ name }}.wsgi.application'{% endif %}
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
+1 -14
View File
@@ -1,18 +1,5 @@
from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from django.conf.urls.defaults import patterns, include, url
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'toto.views.home', name='home'),
# url(r'^toto/', include('toto.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'^admin/', include(admin.site.urls)),
url(r'', include('modoboa.urls')),
)