Installation of Django on Virtual Environment
Install virtualenv
virtualenv environmentname
Note:- environmentname can be replace by any name you want for your environment.
Activate
Install Django
Verify your Django Installation
Create Project in Django
django-admin startproject projectname
Note:- Replace projectname with the name of the project you want create.
Structure of The Project.
projectname/
manage.py
projectname/
_init_.py
settings.py
urls.py
asgi.py
wsgi.py
Create App in your Project
_init_.py
admin.py
apps.py
migrations/
_init_.py
models.py
tests.py
views.py
Leave a Reply