Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 982b17e
Showing
10 changed files
with
303 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
django_eav | ||
nmis_analysis | ||
odk_dropbox | ||
|
||
tmp/* | ||
*.pyc |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||
"http://www.w3.org/TR/html4/loose.dtd"> | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>NMIS {% block title %}{% endblock %}</title> | ||
<script type="text/javascript" src="/site_media/js/jquery-1.4.3.js"></script> | ||
<link rel="stylesheet" href="/site_media/css/sitewide.css" type="text/css" media="screen" title="Sitewide" charset="utf-8" /> | ||
</head> | ||
<body> | ||
{% block content %}{% endblock %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# EXAMPLE VALUES-- | ||
# Change these for your environment | ||
|
||
MEDIA_URL = 'http://localhost/site_media/' | ||
MEDIA_ROOT = '/path/to/project/site_media/' | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': 'tmp/db.sqlite3', | ||
} | ||
} | ||
|
||
ADMINS = ( | ||
# ('Your Name', 'your_email@domain.com'), | ||
) | ||
|
||
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name | ||
TIME_ZONE = 'America/Chicago' | ||
|
||
DEBUG = True | ||
TEMPLATE_DEBUG = DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from fabric.api import run, settings | ||
|
||
def git_clone(): | ||
odk_repo = "git@github.com:mvpdev/ODK_Dropbox.git" | ||
nmis_analysis_repo = "git@github.com:mvpdev/NMIS_analysis.git" | ||
django_eav_repo = "git@github.com:mvpdev/django-eav.git" | ||
|
||
run("git clone %s odk_dropbox" % odk_repo) | ||
run("git clone %s nmis_analysis" % nmis_analysis_repo) | ||
run("git clone %s django_eav" % django_eav_repo) | ||
|
||
def git_pull(): | ||
"Updates all the repositories" | ||
|
||
with('cd odk_dropbox'): | ||
run('git pull origin master') | ||
|
||
with('cd nmis_analysis'): | ||
run('git pull origin master') | ||
|
||
with('cd django_eav'): | ||
run('git pull origin master') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env python | ||
from django.core.management import execute_manager | ||
try: | ||
import 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(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) | ||
sys.exit(1) | ||
|
||
if __name__ == "__main__": | ||
execute_manager(settings) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
from custom_settings import * | ||
|
||
MANAGERS = ADMINS | ||
|
||
LANGUAGE_CODE = 'en-us' | ||
SITE_ID = 1 | ||
USE_I18N = True | ||
USE_L10N = True | ||
|
||
ADMIN_MEDIA_PREFIX = '/media/' | ||
|
||
# Make this unique, and don't share it with anybody. | ||
SECRET_KEY = 'f6h^bz8&0+ad@+qsntr)_onhx2(y^^u%$434byw3l^q!*n078v' | ||
|
||
TEMPLATE_LOADERS = ( | ||
'django.template.loaders.filesystem.Loader', | ||
'django.template.loaders.app_directories.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 = 'nmis.urls' | ||
|
||
TEMPLATE_DIRS = ( | ||
"%s/base_templates/" % PROJECT_ROOT | ||
) | ||
|
||
INSTALLED_APPS = ( | ||
'django.contrib.auth', | ||
'django.contrib.contenttypes', | ||
'django.contrib.sessions', | ||
'django.contrib.sites', | ||
'django.contrib.messages', | ||
|
||
'odk_dropbox', | ||
'nmis_analysis', | ||
'django_eav', | ||
|
||
'django.contrib.admin', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
body { font-family: Arial; color: #333; } |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from django.conf.urls.defaults import * | ||
|
||
from django.contrib import admin | ||
admin.autodiscover() | ||
|
||
urlpatterns = patterns('', | ||
(r'^storage/?', include('nmis.django_eav.urls')), | ||
(r'^analysis/?', include('nmis.nmis_analysis.urls')), | ||
|
||
(r'^dropbox/?', include('nmis.odk_dropbox.urls')), | ||
(r'^submission/?', include('nmis.odk_dropbox.urls')), | ||
(r'^formList/?', include('nmis.odk_dropbox.urls')), | ||
|
||
(r'^admin/', include(admin.site.urls)), | ||
) |