Skip to content

Commit

Permalink
commiting setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vgtomahawk committed May 10, 2012
1 parent 238232a commit d40aa3e
Show file tree
Hide file tree
Showing 11 changed files with 132 additions and 0 deletions.
Empty file added __init__.py
Empty file.
Binary file added __init__.pyc
Binary file not shown.
63 changes: 63 additions & 0 deletions global_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
TIME_ZONE = 'Asia/Calcutta'
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

USE_I18N = False

USE_L10N = True

ADMIN_MEDIA_PREFIX = '/media/'

TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
)

ROOT_URLCONF = 'ApplicationPortal.urls'

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',


# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)

# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error.
# See http://docs.djangoproject.com/en/dev/topics/logging for
# more details on how to customize your logging configuration.
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}
Binary file added global_settings.pyc
Binary file not shown.
35 changes: 35 additions & 0 deletions local_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Please not, any new attributes you want to add to the settings, please add it to the file global_settings.py
# Set the default value in that file and override the value in this file

import global_settings
from global_settings import *

DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Karthik Abinav', 'karthikabinavs@gmail.com'),
)
MANAGERS = ADMINS

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'shaastra_2013', # Or path to database file if using sqlite3.
'USER': 'root', # Not used with sqlite3.
'PASSWORD': 'mojojojo', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}

MEDIA_ROOT = '/var/www/Alak/'

SITE_URL = 'http://localhost:8000/'

MEDIA_URL = 'http://localhost/ApplicationPortal/'


TEMPLATE_DIRS = (
'/home/vgtomahawk/Hello-World/Shaastra-2013-Website/template/'

)
Binary file added local_settings.pyc
Binary file not shown.
14 changes: 14 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__)
sys.exit(1)

import settings

if __name__ == "__main__":
execute_manager(settings)
3 changes: 3 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import local_settings
from local_settings import *

Binary file added settings.pyc
Binary file not shown.
Binary file added shaastradb
Binary file not shown.
17 changes: 17 additions & 0 deletions urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from django.conf.urls.defaults 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'^$', 'shaastra2013.views.home', name='home'),
# url(r'^shaastra2013/', include('shaastra2013.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)),
)

0 comments on commit d40aa3e

Please sign in to comment.