Skip to content

A Django MVC Demo application which saves data of an Order.

Notifications You must be signed in to change notification settings

guido-lab/DjangoMVC-Orders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DjangoMVC-Orders

Coding tasks:

A MVC Demo application:

  • Please design a model where we have entities: User, Order and Order items (with appropriate relations defined)
  • Prepare a simple form which will save data of an Order to a database (please also use some form validations)
  • Create a page which will list all the OrdersRecommendations:
  • Usage of ORM layer is highly encouraged

How to setup:

Clone This Project (Make Sure You Have Git Installed)

https://github.com/guido-lab/DjangoMVC-Orders.git

The following command creates a new virtual environment named venv in the current directory:

$ python -m venv env

Activate virtual environment:

(Mac/Linux) $ source env/bin/activate
(Windows) $ source env/Scripts/activate

Install Dependencies:

$ pip install -r requirements.txt

Set Database (Make Sure you are in the same directory as manage.py):

$ python manage.py makemigrations
$ python manage.py migrate

Create SuperUser:

$ python manage.py createsuperuser

Run the development server:

$ python manage.py runserver

The project is runing at: https://127.0.0.1:8000/

Access admin pannel: https://127.0.0.1:8000/admin

About

A Django MVC Demo application which saves data of an Order.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published