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

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

src/d/j/django-facebook-graph-HEAD/facebook/feincms/views.py   django-facebook-graph(Download)
 
 
    page = Page.objects.for_request(request, raise404=True, best_match=True)
    if facebook_page['admin'] and facebook_page['liked']:
        try:

src/d/j/django-facebook-graph-HEAD/facebook/feincms/utils.py   django-facebook-graph(Download)
def get_application_from_request(request):
    try:
        page = Page.objects.for_request(request, best_match=True)
        return getattr(page, 'facebook_application', None)
    except Page.DoesNotExist:
        return None
 
def get_page_from_request(request):
    try:
        page = Page.objects.for_request(request, best_match=True)
def get_tab_url_from_request(request):
    try:
        page = Page.objects.for_request(request, best_match=True)
    except Page.DoesNotExist:
        return None

src/f/e/feincms-HEAD/feincms/context_processors.py   feincms(Download)
    try:
        return {
            'feincms_page': Page.objects.for_request(request, best_match=True),
        }
    except Page.DoesNotExist:

src/f/e/FeinCMS-1.9.3/feincms/context_processors.py   FeinCMS(Download)
    try:
        return {
            'feincms_page': Page.objects.for_request(request, best_match=True),
        }
    except Page.DoesNotExist:

src/f/e/feincms-HEAD/tests/testapp/tests/test_page.py   feincms(Download)
 
        page_id = id(request._feincms_page)
        p = Page.objects.for_request(request)
        self.assertEqual(id(p), page_id)