Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add django aliases #23

Closed
thclark opened this issue Jan 10, 2024 · 1 comment
Closed

Add django aliases #23

thclark opened this issue Jan 10, 2024 · 1 comment
Labels
developer experience (DX) Improves our lives/efficiency as developers devops System admin and devops good first issue A good first issue for new or junior developers quick win wednesday A quick win for us to push through if we have a few minutes before getting back to the big stuff

Comments

@thclark
Copy link
Contributor

thclark commented Jan 10, 2024

Feature request

Use Case

Shorten development time in django

Proposed Solution

Add the following to zshrc

# Aliases to avoid typing "python manage.py" repeatedly
alias dj="python manage.py"
alias djr="python manage.py runserver"
alias djmm="python manage.py makemigrations"
alias djm="python manage.py migrate"
alias dju="python manage.py show_urls"

So far I've been doing it by running the following in .postcreate


# Add aliases to zshrc file
echo '# Aliases to avoid typing "python manage.py" repeatedly' >> ~/.zshrc
echo 'alias dj="python manage.py"' >> ~/.zshrc
echo 'alias djr="python manage.py runserver"' >> ~/.zshrc
echo 'alias djmm="python manage.py makemigrations"' >> ~/.zshrc
echo 'alias djm="python manage.py migrate"' >> ~/.zshrc
echo 'alias dju="python manage.py show_urls"' >> ~/.zshrc
@thclark thclark added devops System admin and devops good first issue A good first issue for new or junior developers developer experience (DX) Improves our lives/efficiency as developers quick win wednesday A quick win for us to push through if we have a few minutes before getting back to the big stuff labels Jan 10, 2024
@thclark
Copy link
Contributor Author

thclark commented Jul 9, 2024

Closing because it makes more sense to do this in postattach, that way the .zshrc file isn't overwritten by devcontainer features that reinstall it

@thclark thclark closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience (DX) Improves our lives/efficiency as developers devops System admin and devops good first issue A good first issue for new or junior developers quick win wednesday A quick win for us to push through if we have a few minutes before getting back to the big stuff
Projects
None yet
Development

No branches or pull requests

1 participant