Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easy_django-0.0.2-py3-none-any.whl (76.9 kB view details)

Uploaded Python 3

File details

Details for the file easy_django-0.0.2.tar.gz.

File metadata

  • Download URL: easy_django-0.0.2.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for easy_django-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f0e2be816a880deeff19ef78cff1902fe575238b75f89af0773c5e6ba8c213f6
MD5 ca92a44a83c6d43e60ea461697f61cd0
BLAKE2b-256 f8a335b0bbc42890035518683ca1e6eb22be8f2e207d41e4bf64e4d80497b8dc

See more details on using hashes here.

File details

Details for the file easy_django-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: easy_django-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 76.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for easy_django-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 108200b75607b8cb834fab13a662087161aa1360afc39c8a753e91e3021bdf9a
MD5 3641182af8129e2f626c89d75ba29ff2
BLAKE2b-256 f04e23951789baef664ee8af98d29d83fe857ca79741a0cbaf9aa2f2c3921ac8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page