mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Create non-localserver "corporate" app with jobs pages.
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)
This commit is contained in:
0
corporate/__init__.py
Normal file
0
corporate/__init__.py
Normal file
8
corporate/urls.py
Normal file
8
corporate/urls.py
Normal file
@@ -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')),
|
||||
)
|
@@ -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
|
||||
|
@@ -80,10 +80,6 @@ urlpatterns = patterns('',
|
||||
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')),
|
||||
)
|
||||
|
||||
@@ -232,6 +228,10 @@ if not settings.LOCAL_SERVER:
|
||||
url(r'^', include('zilencer.urls.reports')),
|
||||
)
|
||||
|
||||
urlpatterns += patterns('',
|
||||
url(r'^', include('corporate.urls')),
|
||||
)
|
||||
|
||||
|
||||
urlpatterns += patterns('zerver.tornadoviews',
|
||||
# Tornado views
|
||||
|
Reference in New Issue
Block a user