Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
regi/Makefile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (27 sloc)
1.04 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MANAGEPY = python regi/manage.py | |
run: | |
$(MANAGEPY) runserver | |
prod: | |
$(MANAGEPY) runserver '0.0.0.0:80' --settings=regi.settings.prod | |
clean: | |
rm -f regi/regi/db.sqlite3 | |
rm -f regi/registration/migrations/0* | |
$(MANAGEPY) makemigrations | |
$(MANAGEPY) migrate | |
$(MANAGEPY) loaddata regi/registration/fixtures/initial_data*.json | |
$(MANAGEPY) shell -c "from django.contrib.auth.models import User; User.objects.filter(email='admin@example.com').delete(); User.objects.create_superuser('admin', 'admin@example.com', '123')" | |
migrate: makemigrations | |
$(MANAGEPY) migrate | |
makemigrations: | |
$(MANAGEPY) makemigrations | |
createsuperuser: | |
$(MANAGEPY) shell -c "from django.contrib.auth.models import User; User.objects.filter(email='admin@example.com').delete(); User.objects.create_superuser('admin', 'admin@example.com', '123')" | |
createstaff: makemigrations migrate | |
$(MANAGEPY) loaddata regi/regi/fixtures/initial_user.json | |
collectstatic: | |
$(MANAGEPY) collectstatic | |
initial_data: | |
$(MANAGEPY) loaddata initial_data.json | |
install: | |
pip install tox ipdb | |
pip install -e . |