Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to upload my Django project to GitHub?

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.

like image 299
kas Avatar asked Jan 07 '23 10:01

kas


1 Answers

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.

like image 189
Chris Avatar answered Jan 09 '23 00:01

Chris