“Installez Django-Cruds-Adminlte” Code-Antworten

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

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen