Git Product home page Git Product logo

coffeeshopsite's Introduction

What’s contained in each file:

  • manage.py is what we use to execute commands on our terminal. We won’t have to edit it, but we’ll use it often.
  • settings.py contains some important configuration settings for our new project. There are some default settings, but we may wish to change some of them from time to time.
  • urls.py contains directions for where users should be routed after navigating to a certain URL.
  • views.py. This file contains a number of different functions, which are been compliting during web application process.
  • We already have a urls.py (in the same directory as views.py) file for the whole project, but it is best to have a separate one for each individual app.
  • Folders templates/shop and static are responsible for the front-end. The first one includes django HTML pages patterns, and in the second we can see other folders such as font, img and shop in which font I set to page, images and CSS code is stored accordingly.

To run my application, you have to:

  • At first run cd PROJECT_NAME, where PROJECT_NAME is project’s directory (to navigate into it).
  • Then run python manage.py makemigrations shop and python manage.py migrate (to create database).
  • To get worked, run python manage.py runserver.
  • If you haven't installed a neccessary Python package that need to be installed in order to run web application, look requirements.txt file!

Addition

If you're the administrator of the site/cafe, you have to run python manage.py createsuperuser to create admin page, where admin is able to add menu positions and categories (to go to this page write /admin after service's main path).

coffeeshopsite's People

Contributors

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