Closed saish29 closed 5 years ago
https://github.com/v-adhithyan/india-elections/blob/tn-page/README.md
please checkout the readme from above link. The readme is updated in a branch that is under development and yet to be merged with master.
On Mon, Feb 25, 2019 at 4:53 PM Saish Mandavkar notifications@github.com wrote:
Hello @v-adhithyan https://github.com/v-adhithyan , I tried to run your project on Ubuntu Linux and followed all your steps thoroughly, although I am not able to solve this error which I am getting when running the manage.py file. I think it something to do with the migrations created and I tried squashmigrations as well but it is throwing the same error. I have checked your website from the readme file and I am really impressed by your work and it is an inspiration for [image: error1] https://user-images.githubusercontent.com/37171427/53334113-d6ace280-391d-11e9-9b10-2a93fa1380aa.PNG me. Can you help me with the error please? thank you.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/v-adhithyan/india-elections/issues/30, or mute the thread https://github.com/notifications/unsubscribe-auth/AOMgRwRyeqUnMRU4BcGm0DeDUwcWkqqFks5vQ8eqgaJpZM4bPp4l .
--
I am closing this out. Feel free to reopen, in case if you face any difficulty.
Hey, I followed the instructions although I am encountering the same error. I created an.env file as you mentioned but its the same error as mentioned above. Is there any specific place where I have to keep the .env file like I have to place it in etc/environment directory? And about the sentry token, its the API token we have to obtain from the sentry.io website right?
I am using Ubuntu 18 on VMware.
Yes you have to obtain a token from sentry.io
You should place .env file at the project root. After placing the .env file, install python-dotenv or pip install -r requirments.txt. Make sure to pull the latest master branch before installing requirments.txt. The readme has been updated. After installing requirements.txt. type python manage.py shell A prompt should now appear. now type the following.
from dotenv import load_dotenv load_dotenv() os.environ["DB_NAME"]
This should probaly fix the problem. Let me know if it fixes the issue.
On Thu, Feb 28, 2019 at 11:40 AM Saish Mandavkar notifications@github.com wrote:
Hey, I followed the instructions although I am encountering the same error. I created an.env file as you mentioned but its the same error as mentioned above. Is there any specific place where I have to keep the .env file like I have to place it in etc/environment directory? And about the sentry token, its the API token we have to obtain from the sentry.io website right?
I am using Ubuntu 18 on VMware.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/v-adhithyan/india-elections/issues/30#issuecomment-468150668, or mute the thread https://github.com/notifications/unsubscribe-auth/AOMgRzzcVj59LtaNvHblglvQbXHEwu3dks5vR3LigaJpZM4bPp4l .
--
Hey, I followed the steps as you mentioned and encountered NameError. I tried troubleshooting it on the internet but of no avail. Here is the screenshot.
Hey! An update. I am able to run the script successfully by typing the python migrate.py migrate and then running the server. Although there are no visualizations when I run it in the browser. Can you please help me with it?
Hello @v-adhithyan , I tried to run your project on Ubuntu Linux and followed all your steps thoroughly, although I am not able to solve this error which I am getting when running the manage.py file. I think it something to do with the migrations created and I tried squashmigrations as well but it is throwing the same error. I have checked your website from the readme file and I am really impressed by your work and it is an inspiration for me. Can you help me with the error please? thank you.