Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajiv Roopan authored and Rajiv Roopan committed Jun 10, 2015
1 parent 505d8e2 commit e0d7644
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 19 deletions.
Binary file removed Project/__init__.pyc
Binary file not shown.
Binary file removed Project/settings.pyc
Binary file not shown.
Binary file removed Project/urls.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions core/management/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__author__ = 'rajiv'
1 change: 1 addition & 0 deletions core/management/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__author__ = 'rajiv'
1 change: 1 addition & 0 deletions core/management/commands/stream.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__author__ = 'rajiv'
File renamed without changes.
Binary file added geogekko/__init__.pyc
Binary file not shown.
57 changes: 39 additions & 18 deletions Project/settings.py → geogekko/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'core'
)

MIDDLEWARE_CLASSES = (
Expand All @@ -50,30 +51,46 @@

ROOT_URLCONF = 'Project.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['/Users/rajiv/8qlabs/geogekko/templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'Project.wsgi.application'


# Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases


DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'djangostack',
'HOST': '/opt/bitnami/postgresql',
'PORT': '5432',
'USER': 'bitnami',
'PASSWORD': '78f22aeb2b'
}
}

EXAMPLE_DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
# 'NAME': 'djangostack',
# 'HOST': '/opt/bitnami/postgresql',
# 'PORT': '5432',
# 'USER': 'bitnami',
# 'PASSWORD': '78f22aeb2b'
# }
# }
#
# EXAMPLE_DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# }
# }

# Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/
Expand All @@ -92,4 +109,8 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/

STATIC_URL = '/Project/static/'
STATIC_URL = '/static/'

STATICFILES_DIRS = (
os.path.join(BASE_DIR, "static"),
)
Binary file added geogekko/settings.pyc
Binary file not shown.
9 changes: 8 additions & 1 deletion Project/urls.py → geogekko/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
from django.contrib import admin
from django.views.debug import default_urlconf

urlpatterns = patterns('',

urlpatterns = patterns('core.views',
url(r'^map$', 'map'),
)

urlpatterns += patterns('',
# Examples:
# url(r'^$', 'Project.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),

url(r'^map', 'map'),

url(r'^admin/', include(admin.site.urls)),
url(r'^$', default_urlconf),
)
Binary file added geogekko/urls.pyc
Binary file not shown.
File renamed without changes.
Binary file added geogekko/wsgi.pyc
Binary file not shown.

0 comments on commit e0d7644

Please sign in to comment.