source code of swe society web app. Important Note: If someone need to change anything please create a new branch and after you done just merge it.
PostgreSQL
10.0 or upInstall the packages
pip3 install -r requirements.txt
Migrattion the project with database
python3 manage.py makemigrations
python3 manage.py migrate
Create Admin User
python3 manage.py createsuperuser
UserId: 2016831035
Name: Rafiul Islam
Email: [email protected]
Is Student: True
Password: #######
Confirm Password: #######
Run the Server
python3 manage.py runserver 0.0.0.0:8000
no registration page
base.html
will carry the base header and a content block. Every extended or inherited .html file will set on the content block of the base viewprototype of base.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="">
<script type="text/javascript"></script>
{% block extra_head %}
<!-- extended page header -->
{% endblock %}
</head>
<body>
<div class="header"></div>
{% block contents %}
<!-- extended page contents -->
{% endblock %}
<div class="footer"></div>
</body>
</html>
prototype of other templates
{% extends 'base.html' %}
{% load staticfiles %}
{% extra_head %}
<title></title>
<link rel="stylesheet" type="text/css" href="">
<script type="text/javascript"></script>
{% endblock %}
{% block contents %}
<div class="contents">
<!-- page contents -->
</div>
{% endblock %}
User types
General | Staff | Super |
---|---|---|
Can only log in into site have no permission to visit admin panel | Can log in into site and have the permission to visit admin panel and also have some limited permission on admin panel functionality | Can log in into site and admin panel and have every permission. Super user will destroy after deploying. Available in developing version. |