Python (Django) and Javascript online adaptation of my life-manager project
This is my first ever attempt at a Django project. It's a continuation of my previous largest project (life-manager) which by now I'm probably done with. I'll try to implement everything that I did there, and get to the features that I didn't complete.
How to setup:
- Download repository to your computer
- Check your local IP address, on Windows open command line and type ipconfig
- Go to /lmoproject/lifemanageronline/settings.py
- Change ALLOWED_HOSTS to whatever your local IP is
- Go to directory /lmoproject/ and open terminal
- Run python manage.py makemigrations
- Run python manage.py migrate --run-syncdb
- Run python manage.py runserver 192.168.0.104:8000 where you replace the IP with your local one
- Go to http://192.168.0.104:8000/setup (again replacing it with your IP)
- The setup procedure will begin on the terminal where you've run the server, follow the prompts*
- Set your username and password in /lmoproject/lmoapp/credentials.py
- Done!
*You can run dbgen_wizard for a more pleasant GUI interface to define the things you want to track. When you press Finish it will open a TXT file with generated input, which you can just copy and paste in the terminal on step 10. You will still have to enter the beginning date and database length.
I can't be bothered to make responsive design, so currently this application does not display properly on a horizontal widescreen display. Also it's only tested on Chrome. If you want to see it correctly in Desktop Chrome, right-click, press Inspect, and press on the tablet/smartphone icon on the top left.
If you want to be able to access this remotely (from mobile network or another Wi-Fi), set up port forwarding in your router settings with the port 8000 and your local IP. Add your public IP in ALLOWED_HOSTS in settings.py WARNING! This code is extremely vulnerable and hackers might be able to hack it and execute their own code. I do not recommend using this app on your public network yet!!!