예제 #1
0
파일: tests4.py 프로젝트: braskin/pd
from django.core.management import setup_environ
import sys

sys.path.append('/var/www/playdation.net')
sys.path.append('/var/www/playdation.net/playdation')
sys.path.append('/var/www/playdation.net/playdation/apps')

from playdation import settings

setup_environ(settings)


from photos.models import create_image

import os
create_image(settings.DEFAULT_PROFILE_PHOTO_ID, "Placeholder", os.path.join(settings.PROJECT_ROOT, "media", "images/placeholder.jpg")) 
예제 #2
0
파일: management.py 프로젝트: braskin/pd
def create_placeholders(app, created_models, verbosity, **kwargs):
    al = create_album(settings.DEFAULT_ALBUM_ID, 'Placeholder Album')
    create_image(settings.DEFAULT_PROFILE_PHOTO_ID, al, "Placeholder", os.path.join(settings.PROJECT_ROOT, "media", "images/placeholder.jpg") )
예제 #3
0
파일: tests4.py 프로젝트: bopopescu/pd
from django.core.management import setup_environ
import sys

sys.path.append('/var/www/playdation.net')
sys.path.append('/var/www/playdation.net/playdation')
sys.path.append('/var/www/playdation.net/playdation/apps')

from playdation import settings

setup_environ(settings)

from photos.models import create_image

import os

create_image(
    settings.DEFAULT_PROFILE_PHOTO_ID, "Placeholder",
    os.path.join(settings.PROJECT_ROOT, "media", "images/placeholder.jpg"))