GithubHelp home page GithubHelp logo

jonboy1138 / django_inventory Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andreafiori/django_inventory

0.0 2.0 0.0 1.21 MB

An inventory demo project with Python an Django

Python 14.50% JavaScript 80.31% HTML 5.19%

django_inventory's Introduction

Inventory project with Django

An inventory demo project with Python an Django 1.9 using twitter bootstrap 3 and pagination.

Installation

  • Install Python (if you are using Linux, you already have Python installed)
  • Install Django
  • Install Pip to manage dependencies

Install these features using Pip;

Database

I have an SQLite database. To browse and manage data, you can use sqlbrowser.

Run the server

python manage.py runserver

Now you can visit the application URL: http://localhost:8000/

Administration

Now you can access the admin area:

http://localhost:8000/admin/

Create a superuser:

python manage.py createsuperuser

Testing

To run all unit test:

python manage.py test

REST APIs

Here are the REST calls (made with Django REST framework)

  • Items list: GET /api/v1/items/
  • Item details: GET /api/v1/items/{id}
  • Delete an item: DELETE /api/v1/items/{id}
  • Insert a new item; POST /api/v1/items/

Deployment

Django deployment chelist:

  • Be sure to upload the files on your server and have Django installed on your server
  • Set debug mode to false: on settings.py simply change DEBUG = False
  • Check every kind of tests (unit tests and functional tests etc.)

TODO

Some next steps about practicing web development with Python and Django:

  • Switch to MySQL and use joins (with a category table for example)
  • Admin area with many-to-many data relationships
  • Admin area template customization
  • Database tree structure with parent child relationship

django_inventory's People

Watchers

 avatar  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.