web cia_merged
web cia_merged
flex-direction
1.
his property defines themain axisdirection in which the flex items are placed inside the
T
container.
●
row
: (default) Items are placed from left to right.
●
row-reverse
: Items are placed from right to left. <
●
column
: Items are placed from top to bottom.
●
column-reverse
: Items are placed from bottom to top.
📌Example:
flex-container {
display: flex;
flex-direction: column;
}
flex-wrap
2.
Determines whether the flex items should wrap onto multiple lines or stay on a single line.
●
Nowrap: (default) All items stay in one line.
●
wrap
: Items wrap to the next line if needed.
●
wrap-reverse
: Items wrap in reverse order.
📌Example:
.flex-container {
display: flex;
flex-wrap: wrap;
}
flex-flow
3.
flex-directionand
This is a shorthand for flex-wraptogether.
📌Example:
flex-container {
display: flex;
flex-flow: row wrap;
}
justify-content
4.
A flex-direction: row
ligns flex items along themain axis(horizontalif , vertical if
column).
●
flex-start
: Items aligned at the beginning.
●
flex-end
: Items aligned at the end.
●
center
: Items are centered.
●
space-between
: Items are spaced evenly, with no space at the ends.
● s
pace-around : Items are spaced evenly, including spacebefore the first and after
the last item.
📌Example:
.flex-container {
display: flex;
justify-content: center;
}
align-items
5.
●
flex-start
: Aligned to the top (or left for column).
●
flex-end
: Aligned to the bottom (or right for column).
●
center
: Centered vertically (or horizontally).
●
stretch
: Stretches to fill the container (default).
●
baseline
: Aligns based on text baselines.
📌Example:
.flex-container {
display: flex;
align-items: center;
}
align-content
6.
lignsmultiple linesof flex items when there isextra space in the cross axis. It only applies
A
flex-wrapis enabled and items span multiple lines.
if
●
flex-start flex-end
, center
,
●
space-between space-around
,
●
stretch
📌Example:
.flex-container {
display: flex;
height: 600px;
flex-wrap: wrap;
align-content: space-around;
}
escribe the concept of managing users in Django
D
admin (13 Marks)
In Django, users are people who interact with the web application. The Django admin
interface allows managing users efficiently. There are two main types of users:normal
usersandsuperusers (admins). The admin interfacehelps with creating, editing, grouping,
and managing user permissions.
N
● avigate to the Users section.
● Click the green“+”button to add a new user.
● Set a username and password.
Creating a Superuser:
B
● y default, new users have no permissions.
● Admins can set user roles using theadmin panel.
● Permissions can be changed using:
python
user.user_permissions.set([...])
user.user_permissions.add(permission1, permission2)
user.user_permissions.remove(permission)
● E
xample: An "Editor" group can be given permission to modify content. All users in
this group get the same access.
19AI414 – Fundamentals of Web Application Development
In a mail server, you get a centrally-located pool of disk space to store and share
different documents in the form of emails for network users.
Itactsasasetofcomponentswhichcanbeaccessedbythesoftwaredeveloperviaan
API defined by the platform itself.
A computer program that offers database services to other computer programs or
computers with the use of client-server functionality is called a database server.