mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-17 14:40:24 +00:00
36 lines
777 B
Python
36 lines
777 B
Python
from django.conf.urls.defaults import patterns, include, handler500, handler404
|
|
|
|
DEFAULT_CHARSET = 'utf-8'
|
|
|
|
DATABASE_ENGINE = 'sqlite3'
|
|
DATABASE_NAME = ':memory:'
|
|
|
|
ROOT_URLCONF = 'settings'
|
|
|
|
STATIC_URL = '/site_media/static/'
|
|
|
|
SITE_ID = 1
|
|
|
|
INSTALLED_APPS = (
|
|
'django.contrib.sessions',
|
|
'django.contrib.auth',
|
|
'django.contrib.contenttypes',
|
|
'django.contrib.sites',
|
|
'django.contrib.comments',
|
|
'avatar',
|
|
)
|
|
|
|
TEMPLATE_LOADERS = (
|
|
'django.template.loaders.app_directories.load_template_source',
|
|
)
|
|
|
|
AVATAR_ALLOWED_FILE_EXTS = ('.jpg', '.png')
|
|
AVATAR_MAX_SIZE = 1024 * 1024
|
|
AVATAR_MAX_AVATARS_PER_USER = 20
|
|
|
|
urlpatterns = patterns('',
|
|
(r'^avatar/', include('avatar.urls')),
|
|
)
|
|
|
|
def __exported_functionality__():
|
|
return (handler500, handler404)
|