Skip to content

Commit

Permalink
Create non-localserver "corporate" app with jobs pages.
Browse files Browse the repository at this point in the history
The corporate "app" is not a full-fledged Django app, but it has
a urls.py and a templates directory.  This commit creates the app
and moves the jobs pages into it.  Localserver deployments will
not see any of the corporate code.

(imported from commit 35889c3cf92329258c30741fdfa564769a4fac1a)
  • Loading branch information
Steve Howell committed Nov 6, 2013
1 parent d51ac05 commit a827d72
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
Empty file added corporate/__init__.py
Empty file.
8 changes: 8 additions & 0 deletions corporate/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.conf.urls import patterns, url
from django.views.generic import TemplateView

urlpatterns = patterns('',
# Job postings
url(r'^jobs/$', TemplateView.as_view(template_name='corporate/jobs/index.html')),
url(r'^jobs/lead-designer/$', TemplateView.as_view(template_name='corporate/jobs/lead-designer.html')),
)
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions tools/build-local-server-tarball
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ cd $DIR
xargs rm -r <<EOF
assets
bots
corporate
static
tools
zilencer
.gitignore
templates/.gitignore
templates/corporate
puppet/zulip_internal
zproject/local_settings.py
EOF
Expand Down
8 changes: 4 additions & 4 deletions zproject/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@
url(r'^zephyr-mirror/$', TemplateView.as_view(template_name='zerver/zephyr-mirror.html')),
url(r'^apps/$', TemplateView.as_view(template_name='zerver/apps.html')),

# Job postings
url(r'^jobs/$', TemplateView.as_view(template_name='zerver/jobs/index.html')),
url(r'^jobs/lead-designer/$', TemplateView.as_view(template_name='zerver/jobs/lead-designer.html')),

url(r'^robots\.txt$', RedirectView.as_view(url='/static/robots.txt')),
)

Expand Down Expand Up @@ -232,6 +228,10 @@
url(r'^', include('zilencer.urls.reports')),
)

urlpatterns += patterns('',
url(r'^', include('corporate.urls')),
)


urlpatterns += patterns('zerver.tornadoviews',
# Tornado views
Expand Down

0 comments on commit a827d72

Please sign in to comment.