Giter Site home page Giter Site logo

wdd-w2-custom-admin's Introduction

Custom admin for a blogging platform

The platform is really simple. There are just blogs, authors and entries. An Entry is created by an Author and exists inside a blog. The models are already created for you. Let's start describing the changes to the admin you'll have to do.

Scoring

Each Entry has a "scoring". You have to build a custom action to reset that score for a set of selected entries:

image

After this action is applied, the score of all the entries should be 0.

Moving an entry to a different blog

You need to write other custom action to move an entry to a different blog. This action should have an intermediate step that will let the user select the blog

Step 1 select the entry to move image

Step 2 select the blog to move the entry to image

Custom login page

Our blogging platform will support login with Github. So we want to make that option available to our users. You'll need to change the Admin login page to include a "Login with Github" link:

image

Important You DON'T need to actually implement the Github login. Just find a way to put the link in the admin login page.

Custom select2 input in the admin

The Entry add/change view should include select2 instead of regular inputs.

image

Hint: This might be useful ;) If you include any dependency, remember to add it to the requirements and tox files

Custom admin view (and URL)

You'll need to write a custom view to display some stats about the blogging platform. To do that, the easiest way is to create a custom view for the admin. In order to do that, the get_urls method from the ModelAdmin might be handy.

image

Extra points

There's one really cool libray called djangosuit that completely changes the look and feel of the django admin. If you wanna get some extra points in this assignment, try to integrate http://djangosuit.com/ to this project.

wdd-w2-custom-admin's People

Contributors

martinzugnoni avatar santiagobasulto avatar

Watchers

Yatri Trivedi avatar

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.