Skip to content
This repository has been archived by the owner on Oct 21, 2018. It is now read-only.

Commit

Permalink
Cleaned up directories to be more like modern django projects with
Browse files Browse the repository at this point in the history
the project in it's own folder
Added default but optional django-rosetta
Added first spanish translation "Hola."
  • Loading branch information
bufke committed Jan 18, 2013
1 parent d0caa1c commit f294b8b
Show file tree
Hide file tree
Showing 34 changed files with 46 additions and 8 deletions.
Empty file added django_sis/__init__.py
Empty file.
13 changes: 10 additions & 3 deletions ecwsp/settings.py → django_sis/settings.py 100755 → 100644
Expand Up @@ -67,20 +67,24 @@
'%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y',
'%B %d, %Y', '%d %B %Y', '%d %B, %Y','%b. %d, %Y')
DATE_FORMAT = 'b. d, Y'
#USE_L10N = True
USE_L10N = True
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
LANGUAGES = (
('es', 'Spanish'),
('en', 'English'),
)
SITE_ID = 1
INTERNAL_IPS = ('127.0.0.1',)
#USE_I18N = True
USE_I18N = True
SECRET_KEY = '4@=mqjpx*f$3m(1-wl6&02p#cx@*dz4_t26lu@@pmd^2%+)**y'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'apptemplates.Loader',
'django.template.loaders.eggs.Loader',
)
ROOT_URLCONF = 'ecwsp.urls'
ROOT_URLCONF = 'django_sis.urls'
WSGI_APPLICATION = 'ecwsp.wsgi.application'

# Optional these you can copy into settings_local and change or maybe they need to come first.
Expand Down Expand Up @@ -119,13 +123,16 @@
'south',
'djcelery',
'csvimport',
'rosetta-grappelli',
'rosetta',
)

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'pagination.middleware.PaginationMiddleware',
#'debug_toolbar.middleware.DebugToolbarMiddleware',
)
Expand Down
5 changes: 4 additions & 1 deletion ecwsp/urls.py → django_sis/urls.py 100755 → 100644
Expand Up @@ -68,7 +68,10 @@
urlpatterns += patterns('', (r'^canvas_sync/', include('ecwsp.integrations.canvas_sync.urls')), )
if 'ecwsp.integrations.schoolreach' in settings.INSTALLED_APPS:
urlpatterns += patterns('', (r'^schoolreach/', include('ecwsp.integrations.schoolreach.urls')), )

if 'rosetta' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'^rosetta/', include('rosetta.urls')),
)
if 'report_builder' in settings.INSTALLED_APPS:
urlpatterns += url(r'^report_builder/', include('report_builder.urls')),

Expand Down
File renamed without changes.
File renamed without changes.
Binary file added ecwsp/sis/locale/es/LC_MESSAGES/django.mo
Binary file not shown.
24 changes: 24 additions & 0 deletions ecwsp/sis/locale/es/LC_MESSAGES/django.po
@@ -0,0 +1,24 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-18 14:49-0500\n"
"PO-Revision-Date: 2013-01-18 14:50-0500\n"
"Last-Translator: <aa@aa.aa>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"X-Translated-Using: django-rosetta 0.7.0\n"

#: templates/registration/login.html:5
msgid "Hello."
msgstr "Hola."
3 changes: 2 additions & 1 deletion templates/registration/login.html → ecwsp/sis/templates/registration/login.html 100755 → 100644
@@ -1,7 +1,8 @@
{% extends "base.html" %}
{% load i18n %}

{% block content %}
<h1>Hello.</h1>
<h1>{% trans "Hello." %}</h1>

<div class="subhead-text">
<strong>Welcome to SWoRD, the Student Worker Relational Database.</strong><br />
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion install/dependencies.txt
@@ -1,4 +1,4 @@
#django>=1.5
django>=1.5
django-admin-export>=1.5
django-ajax-filtered-fields>=0.5
django-ajax-selects>=1.2.4
Expand All @@ -23,3 +23,5 @@ django-apptemplates>=0.0.1
django-filter>=0.5.4
file:../install/hatchery/django-ckeditor-3.6.2.tar.gz
file:../install/hatchery/django-ldap-groups-0.1.3.tar.gz
-e git://github.com/mbi/django-rosetta.git#egg=django-rosetta
-e git://github.com/zsiciarz/django-rosetta-grappelli.git#egg=django-rosetta-grappelli
5 changes: 3 additions & 2 deletions manage.py
@@ -1,8 +1,9 @@
#!/usr/bin/env python
import os, sys
import os
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ecwsp.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_sis.settings")

from django.core.management import execute_from_command_line

Expand Down

0 comments on commit f294b8b

Please sign in to comment.