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/d/j/django-notification-op-0.1.6/notification/models.py   django-notification-op(Download)
 
from django.core.exceptions import ImproperlyConfigured
from notification import NOTIFICATION_USE_SITE, NOTIFICATION_QUEUE_ALL, \
       NOTIFICATION_LANGUAGE_MODULE, DEFAULT_HTTP_PROTOCOL, \
       NOTIFICATION_DEFAULT_SITE_NAME
 
if NOTIFICATION_USE_SITE:
    protocol = DEFAULT_HTTP_PROTOCOL
    if current_site is None:
       if NOTIFICATION_USE_SITE:
           current_site = Site.objects.get_current()
       else:
           current_site = NOTIFICATION_DEFAULT_SITE_NAME
 
    if notices_url is None:
       if NOTIFICATION_USE_SITE:

src/d/j/django-notification-op-0.1.6/notification/engine.py   django-notification-op(Download)
from django.contrib.auth.models import User
 
from notification import NOTIFICATION_USE_SITE, \
    NOTIFICATION_DEFAULT_SITE_NAME, NOTIFICATION_LOCK_WAIT_TIMEOUT
 
if NOTIFICATION_USE_SITE:
            # email people
 
            if NOTIFICATION_USE_SITE:
                name = Site.objects.get_current().name
            elif NOTIFICATION_DEFAULT_SITE_NAME: