Coder Social home page Coder Social logo

martindes01 / bellyoak Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 164 KB

A Django web application that utilises HTML data attributes to implement dynamic formset management and is designed to allow the students of Selly Oak to create and share recipes

License: MIT License

Python 54.28% JavaScript 29.61% HTML 15.87% CSS 0.24%
css database django django-formsets dynamic full-stack html html-attributes javascript jquery orm python recipe-website server sqlite template-tags webapp

bellyoak's Introduction

bellyoak

About

This is a Django web application that utilises HTML data attributes to implement dynamic formset management and is designed to allow the students of Selly Oak to create and share recipes.

Getting Started

Prerequisites

An installation of Python version 3.5 or later is required to run the Django site locally.

Installation

Clone the source from this repository.

git clone https://github.com/martindes01/bellyoak.git
cd bellyoak

Create and activate a Python virtual environment, specifying a suitable path <path>. A common name for the environment directory is .venv.

python3 -m venv <path>
source <path>/Scripts/activate

Install the Python dependencies listed in requirements.txt.

pip install --requirement requirements.txt

Usage

To create or update the database, execute the makemigrations and migrate commands of the manage.py script. These commands create schema migrations based on changes to the models and apply these migrations to the database, respectively.

python3 manage.py makemigrations
python3 manage.py migrate

To run the site locally, execute the runserver command of the manage.py script, optionally specifying the local IP address <address> and port number <port>. This will serve the site to <address>:<port>. If unspecified, <address> defaults to localhost and <port> defaults to 8000.

python3 manage.py runserver [[<address>:]<port>]

To populate the database with sample data, run the populate_bellyoak.py script.

python3 populate_bellyoak.py

To manage the database, execute the createsuperuser command of the manage.py script and follow the prompts. This will create a superuser account with access to the administration interface at <address>:<port>/admin/.

python3 manage.py createsuperuser

License

This project is distributed under the terms of the MIT License. See LICENSE for more information.

bellyoak's People

Contributors

martindes01 avatar

Stargazers

 avatar

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.