Framework for as-of-yet empty careers site.

This commit is contained in:
Fred Wenzel 2011-04-18 10:30:42 -07:00
Родитель a5c548614d
Коммит 3eb5009fb4
9 изменённых файлов: 23 добавлений и 11 удалений

0
apps/careers/__init__.py Normal file
Просмотреть файл

0
apps/careers/models.py Normal file
Просмотреть файл

Просмотреть файл

@ -0,0 +1 @@
{% extends "base.html" %}

7
apps/careers/urls.py Normal file
Просмотреть файл

@ -0,0 +1,7 @@
from django.conf.urls.defaults import patterns
urlpatterns = patterns('',
# Example:
(r'^careers/?$', 'careers.views.careers'),
)

5
apps/careers/views.py Normal file
Просмотреть файл

@ -0,0 +1,5 @@
import jingo
def careers(request):
return jingo.render(request, 'careers/home.html')

0
media/css/careers.css Normal file
Просмотреть файл

Просмотреть файл

@ -70,7 +70,7 @@ PROD_DETAILS_DIR = path('lib/product_details_json')
LANGUAGES = lazy(LazyLangs, dict)()
# Paths that don't require a locale code in the URL.
SUPPORTED_NONLOCALES = []
SUPPORTED_NONLOCALES = ['media']
## Media and templates.
@ -138,7 +138,7 @@ def JINJA_CONFIG():
MINIFY_BUNDLES = {
'css': {
'common': (
'',
'css/careers.css',
),
},
'js': {
@ -167,10 +167,7 @@ ROOT_URLCONF = '%s.urls' % ROOT_PACKAGE
INSTALLED_APPS = (
# Local apps
'commons', # Content common to most playdoh-based apps.
'jingo_minify',
'tower', # for ./manage.py extract (L10n)
# Local apps.
'careers',
# We need this so the jsi18n view will pick up our locale directory.
ROOT_PACKAGE,
@ -179,6 +176,8 @@ INSTALLED_APPS = (
'commonware.response.cookies',
'djcelery',
'django_nose',
'jingo_minify',
'tower', # for ./manage.py extract (L10n)
# Django contrib apps
'django.contrib.auth',

Просмотреть файл

@ -2,17 +2,17 @@
<html LANG="{{ LANG }}" dir="{{ DIR }}">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>{% block page_title %}playdoh examples{% endblock %}</title>
<title>{% block page_title %}mozilla.org{% endblock %}</title>
{% block site_css %}
{{ css('example_css') }}
{{ css('common') }}
{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
{% block site_js %}
{{ js('example_js') }}
{{ js('common') }}
{% endblock %}
</body>
</html>

Просмотреть файл

@ -6,8 +6,8 @@ from django.conf.urls.defaults import *
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
(r'', include('examples.urls')),
(r'', include('careers.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),