Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 837 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 837 Bytes

makefile-python

This is a Makefile script which takes of activation the virtualenv and installing the requirement and running the python script.

prerequisite

  • python3 and pip

commands

make initialise_venv - to initialize the virtualenv
make install_dependency - to install the dependency from requirements file
make freeze_dependency - to freeze the dependencies
make delete_venv - to clean the virtual env
make all - to initialize the virtualenv and install the package dependencies
make migrate - django apply migrations
make makemigrations - django create migrations
make syncdb - django create migrations and apply them
make run - to run the python script (this should be executed after make all)

sample

make all
make run