Coder Social home page Coder Social logo

django-cookbook's Introduction

Django Cookbook

Table of contents

Why

This project was prepared to Python classes at college with piotrpolec.

Introduction

This cookbook allows you to add your own recipes and search for them in the website. Besides it allows you to search every recipe with some ingredient.

Technologies

  • Python (Django) - backend
  • PostgreSQL - database
  • HTML, CSS, JS - frontend

Usage

  • Download this project
  • Install reqiurements.txt
pip install reqiurements.txt
  • You also have to have PostgreSQL database installed.
  • Find file settings.py (in directory recipe) and change database login and password to your own database.
  • When everything is ready, go to directory with this app (there will be a manage.py file) and run following command:
python manage.py runserver
  • Site will be deployed on your local host and you'll get information about port from command line / terminal.

Database

Database schema

Content

This repository contents:

  • recipe directory - files generated by Django
  • recipes directory with:
    • migrations directory - migrations of database
    • static directory - all CSS and static files (like icon of website)
    • templates with its subdirectories - HTML files that generates views
    • admin.py - file generating admin view
    • apps.py - file generated by Django
    • help_classes.py - other classes that are used in application
    • help_functions.py - other functions that are used in application
    • models.py - models of app that makes database
    • tests.py - file generated by Django
    • urls.py - file generated by Django - routing of application
    • views.py - file generating views in application
  • manage.py - file generated by Django
  • requirements.txt - file with all modules that are needed in project

django-cookbook's People

Contributors

davenury avatar

Watchers

 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.