mirror of
https://github.com/Crocmagnon/cookiecutter-django.git
synced 2024-11-23 15:18:03 +01:00
31 lines
816 B
Python
31 lines
816 B
Python
import os
|
|
|
|
|
|
COMMANDS_TO_RUN = [
|
|
"pip install -U pip pip-tools invoke",
|
|
"inv update-dependencies",
|
|
"pre-commit install",
|
|
"pre-commit autoupdate",
|
|
"pre-commit run --all-files",
|
|
"git add .",
|
|
"git commit -m 'Freeze dependencies'",
|
|
"pycharm .",
|
|
"inv test",
|
|
"./src/manage.py migrate",
|
|
"./src/manage.py createcachetable",
|
|
"./src/manage.py createsuperuser",
|
|
"./src/manage.py runserver",
|
|
]
|
|
|
|
def main():
|
|
os.system("git init")
|
|
os.system("git add .")
|
|
os.system("git commit -m 'Initial commit'")
|
|
print("\nWe created a virtualenv using {{cookiecutter.python_version}} for you.")
|
|
print("Run the following commands:")
|
|
print("cd {{cookiecutter.project_slug}} && direnv allow")
|
|
print(" && ".join(COMMANDS_TO_RUN))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|