0% found this document useful (0 votes)
3 views3 pages

Djangot

This document outlines the essential commands and steps for setting up a Django project, including creating a project and app, configuring views and URLs, managing models, and setting up the admin interface. It also covers database connectivity, migrations, and creating templates for the application. The process includes running the server and creating a superuser for admin access.

Uploaded by

g.arivoli630
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Djangot

This document outlines the essential commands and steps for setting up a Django project, including creating a project and app, configuring views and URLs, managing models, and setting up the admin interface. It also covers database connectivity, migrations, and creating templates for the application. The process includes running the server and creating a superuser for admin access.

Uploaded by

g.arivoli630
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

DJANGO

COMMANDS
1.django-admin startproject
projectname .
2.python manage.py runserver
3.django-admin startapp appname
4.views.py
Import httpresponse
Create function and return
response
5.create urls.py in app module
Import path and views
Create urlpatterns and inside
create path
6.urls.py in project module
Import path and include
Create urlpatterns and inside
create path
7.models.py
Create class and create your
attribute names inside the class
8.Database connectivity
9.python manage.py makemigrations
10.settings.py
Installed app – insert your app
config
11.python manage.py makemigrations
12.python manage.py migrate
13.python manage.py runserver
14.create your admin username and
password
15.python manage.py createsuperuser
16.admin.py
Import models and register your
class
17.Add your products in your website
18.admin.py
Create class for your admin and
display the list
19.create templates folder in your app
module
Create html files inside the folder
20.views.py
Import models and insert your
objects
21.home.html
Insert your attributes using
bootstrap
Add your card template
22.base.html
Create starter template

You might also like