Will uploading my Django project to GitHub make my superuser (created with python manage.py createsuperuser
) vulnerable?
I used a sensitive password with the superuser I created and I do not want it to be compromised by uploading the source code to GitHub.
The website itself does not contain any sensitive code.
In general, and as long as your settings.py
does not include sensitive information, uploading your Django project to GitHub will not compromise your super user account. Your user information is stored in your database, which should not be included in your Git repository.
The most likely situation where this might be a problem is if you are using SQLite, a file-based database. If you are, make sure that your database file is not (and has never been) checked into your repository.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With