Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/m/t/mt-serverland-HEAD/serverland/dashboard/views.py   mt-serverland(Download)
from serverland.dashboard.models import TranslationRequest, WorkerServer
from serverland.dashboard.forms import TranslationRequestForm
from serverland.settings import LOG_LEVEL, LOG_HANDLER, DEPLOYMENT_PREFIX, \
  TRANSLATION_MESSAGE_PATH, COMMIT_TAG
from serverland.protobuf.TranslationRequestMessage_pb2 import \

src/m/t/mt-serverland-HEAD/serverland/urls.py   mt-serverland(Download)
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from serverland.settings import DEBUG, MEDIA_ROOT, DEPLOYMENT_PREFIX
 
if not DEBUG:
admin.autodiscover()
 
PREFIX = DEPLOYMENT_PREFIX[1:]
 
urlpatterns = patterns('',
  url(r'^{0}/$'.format(PREFIX), 'serverland.views.frontpage',
    name='frontpage'),
  url(r'^{0}/login/$'.format(PREFIX), 'serverland.views.login', name='login'),
  url(r'^{0}/logout/$'.format(PREFIX), 'serverland.views.logout',
    {'next_page': '{0}/'.format(DEPLOYMENT_PREFIX)}, name='logout'),