parent
cbd46310af
commit
46226f0ca7
3 changed files with 105 additions and 2 deletions
@ -0,0 +1,51 @@ |
|||||||
|
.PHONY: requirements requirements-upgrade freeze syncdb run run-public makemessages compilemessages collectstatic cloc clean user |
||||||
|
|
||||||
|
project_name=proj
|
||||||
|
|
||||||
|
requirements: |
||||||
|
-@echo "### Installing requirements"
|
||||||
|
-@pip install -r requirements.txt
|
||||||
|
|
||||||
|
requirements-upgrade: |
||||||
|
-@echo "### Upgrading requirements"
|
||||||
|
-@pip freeze | cut -d = -f 1 | xargs pip install -U
|
||||||
|
|
||||||
|
freeze: |
||||||
|
-@echo "### Freezing python packages to requirements.txt"
|
||||||
|
-@pip freeze > requirements.txt
|
||||||
|
|
||||||
|
syncdb: |
||||||
|
-@echo "### Creating database tables and loading fixtures"
|
||||||
|
@PYTHONPATH=$(PYTHONPATH):. DJANGO_SETTINGS_MODULE=$(project_name).settings ipython manage.py syncdb --noinput
|
||||||
|
@PYTHONPATH=$(PYTHONPATH):. DJANGO_SETTINGS_MODULE=$(project_name).settings ipython manage.py migrate
|
||||||
|
|
||||||
|
run: |
||||||
|
@PYTHONPATH=$(PYTHONPATH):. DJANGO_SETTINGS_MODULE=$(project_name).settings ipython manage.py runserver
|
||||||
|
|
||||||
|
run-public: |
||||||
|
@PYTHONPATH=$(PYTHONPATH):. DJANGO_SETTINGS_MODULE=$(project_name).settings ipython manage.py runserver 0.0.0.0:8000
|
||||||
|
|
||||||
|
makemessages: |
||||||
|
-@ipython manage.py makemessages --all
|
||||||
|
|
||||||
|
compilemessages: |
||||||
|
-@ipython manage.py compilemessages
|
||||||
|
|
||||||
|
collectstatic: |
||||||
|
@ipython manage.py collectstatic
|
||||||
|
|
||||||
|
user: |
||||||
|
-@ipython manage.py createsuperuser
|
||||||
|
|
||||||
|
cloc: |
||||||
|
-@echo "### Counting lines of code within the project"
|
||||||
|
-@echo "# Total:" ; find . -iregex '.*\.py\|.*\.js\|.*\.html\|.*\.css' -type f -exec cat {} + | wc -l
|
||||||
|
-@echo "# Python:" ; find . -name '*.py' -type f -exec cat {} + | wc -l
|
||||||
|
-@echo "# JavaScript:" ; find . -name '*.js' -type f -exec cat {} + | wc -l
|
||||||
|
-@echo "# HTML:" ; find . -name '*.html' -type f -exec cat {} + | wc -l
|
||||||
|
-@echo "# CSS:" ; find . -name '*.css' -type f -exec cat {} + | wc -l
|
||||||
|
|
||||||
|
clean: |
||||||
|
-@echo "### Cleaning *.pyc and .DS_Store files "
|
||||||
|
-@find . -name '*.pyc' -exec rm -f {} \;
|
||||||
|
-@find . -name '.DS_Store' -exec rm -f {} \;
|
||||||
@ -0,0 +1,52 @@ |
|||||||
|
awesome-slugify==1.6 |
||||||
|
BeautifulSoup==3.2.1 |
||||||
|
beautifulsoup4==4.4.0 |
||||||
|
chardet==2.3.0 |
||||||
|
defusedxml==0.4.1 |
||||||
|
Django==1.5.12 |
||||||
|
django-bitfield==1.6.4 |
||||||
|
django-ckeditor==4.0.2 |
||||||
|
django-crontab==0.6.0 |
||||||
|
django-debug-toolbar==1.2.1 |
||||||
|
django-haystack==2.1.0 |
||||||
|
django-hvad==1.2.0 |
||||||
|
django-model-utils==2.2 |
||||||
|
django-multiupload==0.5 |
||||||
|
django-redis==4.0.0 |
||||||
|
django-redis-cache==0.13.1 |
||||||
|
django-sortedm2m==1.2.0 |
||||||
|
django-tinymce==2.0.5 |
||||||
|
djutils==0.3.2 |
||||||
|
docutils==0.12 |
||||||
|
fpconst==0.7.2 |
||||||
|
gnureadline==6.3.3 |
||||||
|
html2text==2015.6.21 |
||||||
|
ipython==2.2.0 |
||||||
|
lxml==3.5.0b1 |
||||||
|
MySQL-python==1.2.3 |
||||||
|
oauthlib==0.6.1 |
||||||
|
phonenumbers==6.0.0 |
||||||
|
Pillow==2.5.3 |
||||||
|
pylibmc==1.2.3 |
||||||
|
pymorphy==0.5.6 |
||||||
|
pysolr==3.2.0 |
||||||
|
python-dateutil==2.2 |
||||||
|
python-memcached==1.48 |
||||||
|
python-openid==2.2.5 |
||||||
|
python-social-auth==0.1.23 |
||||||
|
pytils==0.3 |
||||||
|
redis==2.10.1 |
||||||
|
regex==2014.11.14 |
||||||
|
requests==2.2.1 |
||||||
|
requests-oauthlib==0.4.0 |
||||||
|
six==1.6.1 |
||||||
|
SOAPpy==0.12.22 |
||||||
|
solid-i18n==1.1.1 |
||||||
|
sorl-thumbnail==11.12.1b0 |
||||||
|
South==0.8.4 |
||||||
|
sqlparse==0.1.11 |
||||||
|
Unidecode==0.4.16 |
||||||
|
vobject==0.8.2 |
||||||
|
wstools==0.4.3 |
||||||
|
xlrd==0.9.2 |
||||||
|
xlwt==0.7.5 |
||||||
Loading…
Reference in new issue