This project was prepared to Python classes at college with piotrpolec.
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.
- Python (Django) - backend
- PostgreSQL - database
- HTML, CSS, JS - frontend
- 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.
This repository contents:
recipe
directory - files generated by Djangorecipes
directory with:migrations
directory - migrations of databasestatic
directory - all CSS and static files (like icon of website)templates
with its subdirectories - HTML files that generates viewsadmin.py
- file generating admin viewapps.py
- file generated by Djangohelp_classes.py
- other classes that are used in applicationhelp_functions.py
- other functions that are used in applicationmodels.py
- models of app that makes databasetests.py
- file generated by Djangourls.py
- file generated by Django - routing of applicationviews.py
- file generating views in application
manage.py
- file generated by Djangorequirements.txt
- file with all modules that are needed in project