зеркало из https://github.com/mozilla/bedrock.git
Framework for as-of-yet empty careers site.
This commit is contained in:
Родитель
a5c548614d
Коммит
3eb5009fb4
|
@ -0,0 +1 @@
|
|||
{% extends "base.html" %}
|
|
@ -0,0 +1,7 @@
|
|||
from django.conf.urls.defaults import patterns
|
||||
|
||||
|
||||
urlpatterns = patterns('',
|
||||
# Example:
|
||||
(r'^careers/?$', 'careers.views.careers'),
|
||||
)
|
|
@ -0,0 +1,5 @@
|
|||
import jingo
|
||||
|
||||
|
||||
def careers(request):
|
||||
return jingo.render(request, 'careers/home.html')
|
11
settings.py
11
settings.py
|
@ -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>
|
4
urls.py
4
urls.py
|
@ -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')),
|
||||
|
|
Загрузка…
Ссылка в новой задаче