Code Monkey home page Code Monkey logo

django-syferadmin's Introduction

Django Admin App

Admin app to override and extend the default Django admin

Installation

  1. Install syferadmin pip install -e git+ssh://[email protected]/sfroth/django-syferadmin.git#egg=syferadmin
  2. Make sure the following items are in your INSTALLED_APPS. syferadmin must come before django.contrib.admin
    • django.contrib.auth
    • django.contrib.contenttypes
    • django.contrib.sessions
    • django.contrib.sites
    • django.contrib.messages
    • django.contrib.staticfiles
    • mptt
    • syferadmin
    • django.contrib.admin
  3. Set the auth model in settings.py AUTH_USER_MODEL = 'syferadmin.User'
  4. Sync the database with python manage.py migrate syferadmin
  5. Add the following to urls.py in your project
    • import syferadmin
    • syferadmin.autodiscover() Above the urlpatterns
    • url(r'^admin/', include('syferadmin.urls')), in urlpatterns
    • url(r'^admin/', include(syferadmin.site.urls)), in urlpatterns
  6. Add the tmp dir for uploads in your repo root mkdir tmp/uploads
  7. Add the following context processors before django request
    • syferadmin.context_processors.settings
    • syferadmin.context_processors.sections
  8. Add the following middleware
    • syferadmin.middleware.threadlocal.ThreadLocalMiddleware
  9. Add the following to settings.py IMAGEKIT_SPEC_CACHEFILE_NAMER = 'syferadmin.utils.source_name_as_path'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.