Git Product home page Git Product logo

bakeryportal's Introduction

Setup-Script

python manage.py database_setup

For Admin site: /admin/

username: superuser password: hallo123

User (Kunden) ohne Berechtigungen

username: Bäckerei ungebunden password: hallo123

Getting Server Startet:

Innerhalb von PyCharm im Terminal auf das Verzeichnis .\BakeryPortal\ wechseln. (Das muss das Verzeichnis sein, in der auch die manage.py liegt). Dort dann den Befehl python manage.py runserver eingeben. Der Server sollte jetzt laufen und ist unter localhost:8000/admin oder 127.0.0.1:8000/admin erreichbar. Als Anmeldedaten die oben genannten verwenden.

Datenbankfeatures ausprobieren:

  • Alle Datenbankinformationen lassen sich unter localhost:8000 einsehen.
  • Ohne den Server zu starten, können auch alle Funktionen, die Python auf der Datenbank ausführen kann, auch über das Terminal abgesendet werden.
    1. Shell öffnen: python manage.py shell
    2. Datenbanktabellen holen: from portal.models import Customer, Ingredient, Recipe, RecipeList, Order, OrderPosition, Invoice
    3. Neue Datenbankobjekte erzeugen: i = Ingredient(ingredientName="Käse", einheit=1, pricePerUnit = 0.02)
    4. Jedes erzeugte Objekt muss immer gespeichert werden: ì.save()
    5. Das gerade angelegte Objekt angucken: i
    6. Alle Objekte in Ingredients anschauen: Ingredient.objects.all()
    7. Nur eine gewisse Auswahl anzeigen lassen: Ingredient.objects.filter(ingredientName="Käse")

bakeryportal's People

Contributors

ericjd avatar owels45 avatar yoha-dev avatar zr123 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.