Beispiel #1
0
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")) 
Beispiel #2
0
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") )
Beispiel #3
0
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"))