-
Install 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
-
example.com/id (template = profile.html) see profile structure
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 view
<!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>
{% 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 %}
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. |