RoboISM - Running at roboism.markroxor.in
RoboISM is the official site of Robotics Club ISM Dhanbad. Well right now it is
####For Newbies: How to run code locally ?
-
Clone your code into your PC. Let the folder name be Roboism.
-
Install python 3 in your PC. Preferably in default directory (C:/)
-
delete Roboism/myvenv folder
-
Open Command Prompt and cd into the directory (Roboism).
For Window Users:-C:\Python34\python -m venv myvenv
For Linux Users and OS X Users:-python 3 -m venv myvenv
-
Then do
For Window Users:-myvenv\Scripts\activate
For Linux Users and OS X Users:-source myvenv/bin/activate
Now, you should see a (myvenv) script before cmd commands. -
Now, do
pip install django==1.9.7
-
After installation is complete, do
python manage.py makemigration mainsite
Andpython manage.py migrate mainsite
Andpython manage.py collectstatic
-
Finally, to run a virtual server, do
python manage.py runserver
Go to any browser, type this url '127.0.0.1:8000' without quotes. If everything went as planned, you will see the site locally.
Make any changes the code and see the change reflected on the locally hosted site.