Installation¶
Installing iAdmin is as simple as checking out the source and adding it to your project or PYTHONPATH.
- First of all follow the instruction to install standard admin application,
- Either check out iAdmin from GitHub or to pull a release off PyPI. Doing sudo pip install django-iadmin or sudo easy_install django-iadmin is all that should be required.
- Either symlink the iadmin directory into your project or copy the directory in. What ever works best for you.
Configuration¶
Add iadmin to your INSTALLED_APPS:
INSTALLED_APPS = (
'iadmin',
'django.contrib.admin',
'django.contrib.messages',
)
IADMIN_FILE_UPLOAD_MAX_SIZE = 2000000 #
IADMIN_FM_ROOT = # file manager home
IADMIN_FM_CONFIG = {}
Diango < 1.3 users
iAdmin use STATIC_URL. You have to create this entry in your settings. Use this lines ONLY if you don’t use staticfiles app, leave your STATIC_* configuration otherwise
STATIC_URL = '/s/static/'
STATIC_ROOT = MEDIA_ROOT
Add an entry into your urls.conf:
import iadmin.proxy as admin
import iadmin.media_urls
admin.autodiscover()
urlpatterns = patterns('',
url(r'', include('iadmin.media_urls')),
(r'^admin/', include(admin.site.urls)),
)
In your admin.py file:
import iadmin
import iadmin.proxy as admin