Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
Merge d3fbe58 into e559994
Browse files Browse the repository at this point in the history
  • Loading branch information
mastizada committed Apr 19, 2017
2 parents e559994 + d3fbe58 commit 0e452e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -31,4 +31,4 @@ Desktop.ini
test.db
htmlcov
/venv/

migrations/
24 changes: 6 additions & 18 deletions Makefile
Expand Up @@ -14,15 +14,12 @@ help:
@echo ' make cover run tests with coverage'
@echo ' make cover_report run tests with coverage and generate a report'
@echo ' make manage run an arbitrary management command'
@echo ' make migrate run migrations'
@echo ' make makemigrations create migrations'
@echo ' make migrate apply migrations - create new tables'
@echo ' make shell open a django python shell'
@echo ' make shell_plus run the shell_plus management command'
@echo ' make serve run the django development server'
@echo ' make serve_plus run the runserver_plus management command'
@echo ' make syncdb create new database tables from models'
@echo ' make syncdb_migrate create new tables and run migrations'
@echo ' make schema create a new automatic schema migration'
@echo ' make schema_initial create the first migration for the app'
@echo ' make test run tests'
@echo ' make test_ipdb run tests with ipdb instrumentation'

Expand All @@ -37,6 +34,9 @@ cover_report: cover
manage:
@$(CMD_NAME) $(filter-out $@, $(MAKECMDGOALS))

makemigrations:
@$(CMD_NAME) makemigrations --noinput rna

migrate:
$(CMD_NAME) migrate $(filter-out $@, $(MAKECMDGOALS))

Expand All @@ -52,23 +52,11 @@ serve:
serve_plus:
@$(CMD_NAME) runserver_plus

syncdb:
@$(CMD_NAME) syncdb --noinput

syncdb_migrate:
@$(CMD_NAME) syncdb --migrate --noinput

schema:
@$(CMD_NAME) schemamigration $(APP_DIR) --auto

schema_initial:
@$(CMD_NAME) schemamigration $(APP_DIR) --initial

test:
@./runtests.py $(filter-out $@, $(MAKECMDGOALS))

test_ipdb:
@./runtests.py $(filter-out $@, $(MAKECMDGOALS)) --ipdb --ipdb-failures


.PHONY: cover cover_report manage migrate shell shell_plus serve serve_plus syncdb syncdb_migrate schema schema_initial test test_ipdb
.PHONY: cover cover_report manage makemigrations migrate shell shell_plus serve serve_plus test test_ipdb
13 changes: 4 additions & 9 deletions README.md
Expand Up @@ -15,10 +15,11 @@ Install requirements
pip install -r requirements/dev.txt
npm install -g react-tools

Setup db
--------
Prepare migrations and create tables
------------------------------------

make syncdb_migrate
make makemigrations
make migrate

Start server
------------
Expand All @@ -35,12 +36,6 @@ Running tests

make test

Creating South schema migrations
--------------------------------

make schema
make migrate

Admin customizations based on React
-----------------------------------

Expand Down

0 comments on commit 0e452e4

Please sign in to comment.