An initiative to create unofficial site of our college.
Please check contrib.md for contribution guidelines. Open for developers having idea about Django, HTML, CSS
To install Django on your local machines use the below link
-
Install MYSQL: Since the entire database is based on mysql format ,create a mysql server on your machine . To install mysql use the below link: mysql
PLEASE NOTE .. After creating database as the above step follow the below commands
3.Creating the database Login into your mysql user account using command $mysql -u 'user name' -p In mysql shell create a database using command
mysql> CREATE DATABASE 'db name';
4.Configure database for adding tables In the terminal shell write the command
$sudo nano /etc/mysql/.my.cnf
It will open a empty file write out user credentials there
[client]
database='db_name'
user='user name'
password='password'
default-character-set=utf8
!Note: write all the credentials without ' '
5.Restart your mysql server: Enter the following commands to restart the server
$ systemctl daemon-reload
$ systemctl restart mysql
if everything is configured well , your database will be configured with the app
6.To add migrations to django app In interact directory write the following commands
~/interact$ python3 manage.py makemigrations
~/interact$ python3 manage.py migrate
7.Finally running your machine:
~/interact$ python3 manage.py runserver
Your server will start at http://127.0.0.1:8000/interact/
Keep contributing . Hav a bug free code :)
Open an issue with label installation-error Ping us your issues at our telegram channel telegram