PYTHON
Installez django-cruds-adminlte
pip install django-crispy-forms
pip install easy-thumbnails
pip install django-image-cropping
pip install djangoajax
Installez django-cruds-adminlte
# django-cruds-adminlte
from cruds_adminlte.urls import crud_for_app
urlpatterns += crud_for_app('testapp')
Installez django-cruds-adminlte
pip install django-crispy-forms
pip install django-select2
pip install django-image-cropping
pip install easy-thumbnails
pip install djangoajax
Installez django-cruds-adminlte
INSTALLED_APPS = (
...
'crispy_forms',
'django_select2',
'easy_thumbnails',
'image_cropping',
'django_ajax',
'cruds_adminlte'
)
Installez django-cruds-adminlte
CRISPY_TEMPLATE_PACK = 'bootstrap3'
IMAGE_CROPPING_JQUERY_URL = None
Installez django-cruds-adminlte
from easy_thumbnails.conf import Settings as thumbnail_settings
THUMBNAIL_PROCESSORS = (
'image_cropping.thumbnail_processors.crop_corners',
) + thumbnail_settings.THUMBNAIL_PROCESSORS
Installez django-cruds-adminlte
TIME_FORMAT= 'h:i A'
DATETIME_FORMAT='m/d/Y H:i:s'
DATE_FORMAT="m/d/Y"
TIME_INPUT_FORMATS = ['%I:%M %p']
Installez django-cruds-adminlte
from django.apps import apps
from cruds_adminlte.urls import crud_for_model
urlpatterns += crud_for_model(apps.get_model('testapp', 'Author'))
Installez django-cruds-adminlte
url(r'^accounts/login/$', auth_views.login, name='login'),
url(r'^logout/$', auth_views.logout, name='logout'),
Installez django-cruds-adminlte
pip install django-cruds-adminlte
Installez django-cruds-adminlte
$ pip install django-cruds-adminlte
Installez django-cruds-adminlte
INTERNAL_IPS = ('127.0.0.1',)