Algo-Phantoms / Algo-Phantoms-Backend

💻 Algo-Phantoms-Backend is an Application that provides pathways and quizzes along with a code editor to help you towards your DSA journey.📰🔥 This repository contains the REST APIs of the application.✨
MIT License
43 stars 37 forks source link

On migration it say: ModuleNotFoundError: No module named 'AlgoPhantomBackend.local_settings' #18

Closed aditya201551 closed 3 years ago

aditya201551 commented 3 years ago

I have installed all dependencies and followed all the directed steps but on running: 'python manage.py makemigrations' it shows ModuleNotFoundError: No module named 'AlgoPhantomBackend.local_settings'

ScreenShot is below: Screenshot (38)

aditya201551 commented 3 years ago

@diyajaiswal11 @todi-2000 @prajul007

On further reading and debugging the code I found that local_settings was never added to the file so Django cannot import it and also I found that the setting has many undefined variables and other migrations and minor issues that are not allowing the database to migrate and server to run, I have solved the issue and the app is up and running now(locally port:8000)

The screenshot is below:

Screenshot (39) .

It would be great if you assigned me the task to configure the settings file I will send a PR as soon as possible

ThankYou!(GSSOC 2021 participant)

diyajaiswal11 commented 3 years ago

Hey @Aditya201551 , thank you for raising the issue. The purpose of defining the local_settings.py was that it contained the EMAIL_HOST_USER and EMAIL_HOST_PASSWORD. So inorder to have email verification while signing up, you need to define both of these in local_settings.py. So currently, this file was not pushed as it had credentials. Other PR has commented these lines and it will not cause any issue then.