summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-02-11 18:18:05 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-02-11 18:18:05 +0100
commit037fadae70c86706401e7dd9b312c66e98a673db (patch)
tree155b23bdee3d66346830160946ef353b56757748
parentee58fc47a79779c5b712fafb19207664e9171e68 (diff)
parent272f9a0c7d0c09f0b7cb0a9cfd792639bf093390 (diff)
downloadChimère-037fadae70c86706401e7dd9b312c66e98a673db.tar.bz2
Chimère-037fadae70c86706401e7dd9b312c66e98a673db.zip
Merge branch 'v2.1'
-rw-r--r--.gitignore1
-rw-r--r--Makefile.example41
2 files changed, 42 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 35b0ba8..7259481 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
*.bak
*.mo
*.ignore
+Makefile
example_project/settings.py
example_project/static/icons/*
example_project/static/upload/*
diff --git a/Makefile.example b/Makefile.example
new file mode 100644
index 0000000..d11fc57
--- /dev/null
+++ b/Makefile.example
@@ -0,0 +1,41 @@
+SHELL := /bin/bash
+
+# if a virtualenv is used put the full python path
+# e.g.: PYTHON=$$HOME/.virtualenvs/chimere/bin/python
+PYTHON=python
+# put name of your current project
+project=chimere_example_project
+
+update: clean syncdb compilemessages
+
+clean:
+ -rm -rf *~*
+ -find . -name '*.pyc' -exec rm {} \;
+ -find . -name '.*.swp' -exec rm {} \;
+
+test: clean
+ cd $(project); $(PYTHON) manage.py test chimere
+
+pep8:
+ pep8 --filename=*.py --ignore=W --exclude="manage.py,settings.py,migrations" --statistics --repeat .
+
+pylint:
+ pylint "$(CURDIR)/chimere" --ignore=.git,migrations --max-public-methods=50 --ignored-classes=Item.Meta --method-rgx='[a-z_][a-z0-9_]{2,40}$$'
+
+fresh_syncdb:
+ cd $(project); $(PYTHON) ./manage.py syncdb --noinput 2> /dev/null > /dev/null
+ cd $(project); $(PYTHON) ./manage.py migrate chimere 2> /dev/null > /dev/null
+
+syncdb:
+ cd $(project); $(PYTHON) manage.py syncdb --noinput
+ cd $(project); $(PYTHON) manage.py migrate
+
+shell:
+ cd $(project);$(PYTHON) manage.py shell
+
+run:
+ cd $(project); $(PYTHON) manage.py runserver 0.0.0.0:8000
+
+compilemessages:
+ cd $(CURDIR)/chimere; \
+ $(PYTHON) ../$(project)/manage.py compilemessages