Web Development Task 1
Web Development Task 1
Django CRM
https://www.varlyq.com
Page 02
About Varlyq
Technology
Varlyq is a technology company focused on
software development and UI/UX
designing. We provide all the tools that
shorten the distance between having an
idea and making a living from it.
We have a unique approach to storytelling
to do our work.
We are an incubated startup at AIC -
Prestige Inspire Foundation.
https://www.varlyq.com
Page 03
About Project
Django CRM is an Customer Relationship Management
(CRM) system developed on the Django framework
Task
Part 1 Part2
Instructions
Setup Code Project Name
Setup virtual environment name env Make your Project name varlyq
Install Django in it. and app name dcrm
Initialization Testing
Create templates and static folders Now run the server to test it
Add them in your project settings python manage.py runserver
along with your app dcrm And create superuser to login
Page 07
Instructions
Templates Login
Index Navbar
Create a button in navbar with a
In index show the name of logged in
condition if the user is logged in
User and email or last login
show logout button otherwise login
Page 08
1 urlpatterns
path('', views.index, name='index'), # Home page URL
path('login/', views.login_user, name='login'), # Login page URL
path(‘logout/', views.logout_user, name='logout'), # Logout page URL
2 views
Code
def logout_user # logout user and redirect to index
Note : All the function names should be as they are
Make sure to import the modules that you use
Feel free to google any problem you encounter
Don’t forgot to add your apps urls to your
3
Hints-
{{ user.username }}
{{ user.last_login }}
{% url 'login' %}
Page 09
How to Submit
Test your code File on localhost
Create a zip of your code ( Make Sure You Zip the
entire folder )
Upload the ZIP file on Google Drive and Copy the
Public URL of file
Attach the google drive link in task submission
section on youvah.com
Page 10
https://www.varlyq.com