Giter Site home page Giter Site logo

some_test_task's Introduction

Test Task

According to the Task, has been implemented next:

  1. Created two entities: Book(has 'title' field) and Author(has 'name' field). The reletionship is M2M.
  2. Addition entity User was used to authorize user. The entity has 'login', 'password', 'is_authorized' and 'is_admin' fields. 'is_admin' property was used for authorize users to edite list of users. Users 'is_authorized' property can searching books and viewing the list of books.
  3. Anonymous users can register himselfs or log in. After registration can do nothing during Admin set user`s 'is_authorized' to "True".
  4. Searching the books by keyword. The searching occurs in books titles and authors names. If keyword is empty, whole list of books is shown. Every lists has paginations.
  5. Admin interface is available for users, who have 'is_admin' in 'True'
  6. Forms fields are validated for empty value, unique values for User and Author.

For runing project please do the next steps

cd ./prod_lib/src
sudo pip install -r requirements.txt # installing requirement packages
python manage.py run_init_db # create database file and create tables
python manage.py post_test_data # insert test data into the db
python manage.py runserver 

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.