T a s k One
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
It’s designed to help businesses manage customer data
and customer interaction, access business information,
automate sales, marketing, and customer support, and
also manage employee, vendor, and partner
relationships
Page 04
Task
Part 1 Part2
Setup the basic code Create a superuser and
structure in your setup a simple login
computer and load all and logout
the important files and functionality for the
packages for the project. superuser
Check the instruction for more
information (Page 6 - 7 )
Page 05
Make Sure to activate virtual
1
environment before installing any
dependencies or runserver
Points To 2 Names should be as given in the
instructions
remember
Make sure to test your project out.
3
If there are any problems feel free
to google it
Page 06
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
In templates folder create three files
Create a HTML form to login the user
index.html, navbar.html, login.html
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
Instruction def index # render index.html
def login_user # authenticate user if already logged in redirect to index
if not logged in render login.html form page
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
H o w t o c r e a t e a P u b l i c URL ( Googl e Drive )
Select the file you want to share.
Tap Share then click Share .
Under “General access,” tap Change.
Select Anyone with the link.
Tap Copy link.
Tap Back.
Paste the link in an email or any place you want to share it.
Thank You
https://www.varlyq.com