-
Check out a project in Pycharm - see here for help URL of the remote repository: https://github.com/072BCT/EADD_072.git
-
Restart Pycharm
-
On the Pycharm's terminal run the following code to Install Requirements : pip install -r requirements.txt
-
Migrate Database: python manage.py makemigrations WebApp
Please Ensure that you delete 'db.sqlite3' database and Migrations folder inside WebApp before clean Migration. -
Migrate Database: python manage.py migrate
-
After that, run the app using Django manage.py: python manage.py runserver
-
Access the homepage on http://localhost:8000
First we’ll need to create a user who can login to the admin site. Run the following command:
$ python manage.py createsuperuser
Enter your desired username and press enter.
Username: admin
You will then be prompted for your desired email address:
Email address: [email protected]
The final step is to enter your password. You will be asked to enter your password twice, the second time as a confirmation of the first.
Password: **********<br>
Password (again): *********<br>
Superuser created successfully.<br>
The Django admin site is activated by default after running $ python manage.py runserver
Now, open a Web browser and go to “/admin/” on your local domain – e.g., http://127.0.0.1:8000/admin/. You should see the admin’s login screen.
Visit http://eadd-072.sushant.info.np/api/v1/ to explore the API. You only can explore APIs after you login to Django Admin screen using superuser access.
Use http://eadd-072.sushant.info.np/rest-auth/login/ for auth API info.
Check http://eadd-072.sushant.info.np for latest updated website. The website gets automically updated after around 5 minutes of commits pushed to GitHub. Username: 072bct500 Password: 072bct500