Beispiel #1
0
#
# django-pgpm is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
# for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with django-pgpm. If not, see <http://www.gnu.org/licenses/>.
# ===----------------------------------------------------------------------===

# Import the default test settings provided by django_patterns.
from django_patterns.test.project.settings import *

import dj_database_url
DATABASES = {
    'default': dj_database_url.config(
        default='postgres://*****:*****@localhost:5432/django'),
}

# Use django_patterns to detect embedded Django test applications, and add
# them to our INSTALLED_APPS.
from django_patterns.test.discover import discover_test_apps
apps = discover_test_apps('django_pgmp')
if apps:
    for app in apps:
        INSTALLED_APPS += (app,)

# ===----------------------------------------------------------------------===
# End of File
# ===----------------------------------------------------------------------===
Beispiel #2
0
#    endorse or promote products derived from this software without specific
#    prior written permission.
#
# THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
# CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
# NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND
# DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ===----------------------------------------------------------------------===

# Import the default test settings provided by django_patterns.
from django_patterns.test.project.settings import *

# Use django_patterns to detect embedded Django test applications, and add
# them to our INSTALLED_APPS.
from django_patterns.test.discover import discover_test_apps
apps = discover_test_apps("django_patterns")
if apps:
    for app in apps:
        INSTALLED_APPS += (app, )

# ===----------------------------------------------------------------------===
# End of File
# ===----------------------------------------------------------------------===
Beispiel #3
0
# -*- coding: utf-8 -*-
# This file is part of dj-user. dj-user is copyright © 2012-2013, Monetize.io
# Inc. and contributors and released under the terms of the GNU Lesser General
# Public License, version 3 or later. See AUTHORS and LICENSE for more details.

# Import the default test settings provided by django_patterns.
from django_patterns.test.project.settings import *

import dj_database_url
DATABASES = {
    'default': dj_database_url.config(
        default='sqlite://:memory:'),
}

# Use django_patterns to detect embedded Django test applications, and add
# them to our INSTALLED_APPS.
from django_patterns.test.discover import discover_test_apps
apps = discover_test_apps('dj_user')
if apps:
    for app in apps:
        INSTALLED_APPS += (app,)
Beispiel #4
0
#    endorse or promote products derived from this software without specific
#    prior written permission.
#
# THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
# CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
# NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND
# DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ===----------------------------------------------------------------------===

# Import the default test settings provided by django_patterns.
from django_patterns.test.project.settings import *

# Use django_patterns to detect embedded Django test applications, and add
# them to our INSTALLED_APPS.
from django_patterns.test.discover import discover_test_apps
apps = discover_test_apps("django_patterns")
if apps:
  for app in apps:
    INSTALLED_APPS += (app,)

# ===----------------------------------------------------------------------===
# End of File
# ===----------------------------------------------------------------------===