Changeset - 3ced2d39053d
[Not reviewed]
default
0 2 0
Branko Majic (branko) - 11 years ago 2013-02-26 19:57:35
branko@majic.rs
Configured the test project. Configured empty URLs for the app.
2 files changed with 16 insertions and 9 deletions:
0 comments (0 inline, 0 general)
projtest/projtest/settings.py
Show inline comments
 
@@ -4,15 +4,15 @@ DEBUG = True
 
TEMPLATE_DEBUG = DEBUG
 

	
 
ADMINS = (
 
    # ('Your Name', 'your_email@example.com'),
 
    ('Branko Majic', 'branko@majic.rs'),
 
)
 

	
 
MANAGERS = ADMINS
 

	
 
DATABASES = {
 
    'default': {
 
        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
 
        'NAME': '',                      # Or path to database file if using sqlite3.
 
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
 
        'NAME': 'projtest.db',                      # Or path to database file if using sqlite3.
 
        'USER': '',                      # Not used with sqlite3.
 
        'PASSWORD': '',                  # Not used with sqlite3.
 
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
 
@@ -24,7 +24,7 @@ DATABASES = {
 
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
 
# although not all choices may be available on all operating systems.
 
# In a Windows environment this must be set to your system time zone.
 
TIME_ZONE = 'America/Chicago'
 
TIME_ZONE = 'Europe/Stockholm'
 

	
 
# Language code for this installation. All choices can be found here:
 
# http://www.i18nguy.com/unicode/language-identifiers.html
 
@@ -116,9 +116,11 @@ INSTALLED_APPS = (
 
    'django.contrib.messages',
 
    'django.contrib.staticfiles',
 
    # Uncomment the next line to enable the admin:
 
    # 'django.contrib.admin',
 
    'django.contrib.admin',
 
    # Uncomment the next line to enable admin documentation:
 
    # 'django.contrib.admindocs',
 
    # Enable the conntrackt application
 
    'conntrackt',
 
)
 

	
 
# A sample logging configuration. The only tangible logging
projtest/projtest/urls.py
Show inline comments
 
from django.conf.urls import patterns, include, url
 
from django.http import HttpResponseRedirect
 

	
 
# Uncomment the next two lines to enable the admin:
 
# from django.contrib import admin
 
# admin.autodiscover()
 
from django.contrib import admin
 
admin.autodiscover()
 

	
 
urlpatterns = patterns('',
 
urlpatterns = patterns(
 
    '',
 
    # Examples:
 
    # url(r'^$', 'projtest.views.home', name='home'),
 
    # url(r'^projtest/', include('projtest.foo.urls')),
 
    url(r'^$', lambda r : HttpResponseRedirect('conntrackt/')),
 
    url(r'^conntrackt/', include('conntrackt.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'^admin/', include(admin.site.urls)),
 
)
0 comments (0 inline, 0 general)