“Installez Django-cruds-Adminlte” Kode Jawaban

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']
Horrible Hedgehog

Installez Django-cruds-Adminlte

url(r'^accounts/login/$', auth_views.login, name='login'),
url(r'^logout/$', auth_views.logout, name='logout'),
Horrible Hedgehog

Installez Django-cruds-Adminlte

CRISPY_TEMPLATE_PACK = 'bootstrap3'
IMAGE_CROPPING_JQUERY_URL = None
Horrible Hedgehog

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
Horrible Hedgehog

Installez Django-cruds-Adminlte

pip install django-crispy-forms
pip install easy-thumbnails
pip install django-image-cropping
pip install djangoajax
Horrible Hedgehog

Installez Django-cruds-Adminlte

INSTALLED_APPS = (
  ...
  'crispy_forms',
  'django_select2',
  'easy_thumbnails',
  'image_cropping',
  'django_ajax',
  'cruds_adminlte'
)
Horrible Hedgehog

Installez Django-cruds-Adminlte

INTERNAL_IPS = ('127.0.0.1',)
Horrible Hedgehog

Installez Django-cruds-Adminlte

pip install django-cruds-adminlte
Horrible Hedgehog

Installez Django-cruds-Adminlte

# django-cruds-adminlte
from cruds_adminlte.urls import crud_for_app
urlpatterns += crud_for_app('testapp')
Horrible Hedgehog

Installez Django-cruds-Adminlte

$ pip install django-cruds-adminlte
Horrible Hedgehog

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya