diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/__init__.pyc b/__init__.pyc new file mode 100644 index 0000000..5edd342 Binary files /dev/null and b/__init__.pyc differ diff --git a/global_settings.py b/global_settings.py new file mode 100644 index 0000000..68586da --- /dev/null +++ b/global_settings.py @@ -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, + }, + } +} diff --git a/global_settings.pyc b/global_settings.pyc new file mode 100644 index 0000000..de2fe01 Binary files /dev/null and b/global_settings.pyc differ diff --git a/local_settings.py b/local_settings.py new file mode 100644 index 0000000..0c6828f --- /dev/null +++ b/local_settings.py @@ -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/' + +) diff --git a/local_settings.pyc b/local_settings.pyc new file mode 100644 index 0000000..71e34c5 Binary files /dev/null and b/local_settings.pyc differ diff --git a/manage.py b/manage.py new file mode 100644 index 0000000..3e4eedc --- /dev/null +++ b/manage.py @@ -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) diff --git a/settings.py b/settings.py new file mode 100644 index 0000000..135e60f --- /dev/null +++ b/settings.py @@ -0,0 +1,3 @@ +import local_settings +from local_settings import * + diff --git a/settings.pyc b/settings.pyc new file mode 100644 index 0000000..3ea427b Binary files /dev/null and b/settings.pyc differ diff --git a/shaastradb b/shaastradb new file mode 100644 index 0000000..0da5ad1 Binary files /dev/null and b/shaastradb differ diff --git a/urls.py b/urls.py new file mode 100644 index 0000000..3a8344a --- /dev/null +++ b/urls.py @@ -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)), +)