NIT-DGPortal / StudentPortal

A customised study portal for NIT Durgapur.
https://nitdgpsp.herokuapp.com
MIT License
17 stars 29 forks source link

Add Python Decouple #14

Closed modihere closed 5 years ago

modihere commented 5 years ago

Add the python decouple app which separates the settings file from the main Django app for security purposes.

  1. All the important credentials (secret key, debug, email credentials, database credentials) present in settings.py should be defined and initialized in a ".env" file in the main project directory and the settings.py should fetch the data from there. Python decouple does this work very well so use that.

  2. Also take care to make a ".gitignore" file to stop redundant files or files which are specific to people (like migrations, ".env" and the database) from getting uploaded.

  3. The README.md should be updated accordingly for the credentials to be entered first so that the server can be started properly.

These are the basic issues which i found for now and should be patched up soon. You can divide these issues accordingly among different people.

P.S. Add more steps to readme (like makemigrations, migrate, createsuperuser, dbshell) so that even a beginner can start and explore the app.

monsij commented 5 years ago

GitMate.io thinks a possibly related issue is https://github.com/monsij/StudentPortal/issues/3 (Add Contributors app).

monsij commented 5 years ago

@modihere : Do you want to work on it?

modihere commented 5 years ago

No no. Let the people learn. I have worked more than enough on Django and i don't have time now. Too much for me. :P

akashgiricse commented 5 years ago

@monsij , can I work on this issue?

monsij commented 5 years ago

Assigned @akashgiricse

monsij commented 5 years ago

Solved : #51