easy django
Project description
=====
easy_django
=====
Quick start
-----------
1. from base_configurations.base_configurations import *
2. INSTALLED_APPS += BASE_INSTALLED_APPS
3. MIDDLEWARE += BASE_MIDDLEWARE
4. Для всех шаблонов наследоваться {% extends 'base_template/base.html' %}
5. urlpatterns += base_urlpatterns (from base_configurations.urlpatterns import base_urlpatterns)
6. settings.py (from base_configurations.base_configurations import *)
6.1. INSTALLED_APPS
-----------
BASE_INSTALLED_APPS = [
'base_template',
'base_navbar',
'contacts',
'posts',
'image_objects',
'price',
'ckeditor',
'ckeditor_uploader',
'djmoney',
'easy_thumbnails',
]
6.2. Django cache
-----------
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'cache_table',
}
}
6.3. CKEDITOR
-----------
CKEDITOR_UPLOAD_PATH = "uploads/"
CKEDITOR_CONFIGS = {'default':
{
'toolbar': 'None'
, 'height': '100%'
, 'width': '100%'
},
'extraPlugins': ','.join([
'uploadimage', # the upload image feature
# your extra plugins here
'div',
'autolink',
'autoembed',
'embedsemantic',
'autogrow',
# 'devtools',
'widget',
'lineutils',
'clipboard',
'dialog',
'dialogui',
'elementspath',
'youtube'
]),
}
6.4. django-money
-----------
CURRENCIES = ('RUB',)
6.5. easy_thumbnail (для базовых приложений)
-----------
THUMBNAIL_ALIASES = {
'': {
'image_object_card': {'size': (800, 800), 'crop': True},
'image_card': {'size': (800, 800), 'crop': True},
'image_galary': {'size': (300, 300), 'crop': True},
'price_card': {'size': (800, 800), 'crop': True},
},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easy_django-0.0.2.tar.gz
(40.6 kB
view hashes)
Built Distribution
Close
Hashes for easy_django-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108200b75607b8cb834fab13a662087161aa1360afc39c8a753e91e3021bdf9a |
|
MD5 | 3641182af8129e2f626c89d75ba29ff2 |
|
BLAKE2b-256 | f04e23951789baef664ee8af98d29d83fe857ca79741a0cbaf9aa2f2c3921ac8 |