Vipul Vishnu av
Vipul Vishnu av

Reputation: 526

How to make the Django light weight server loads quickly

When I run my Django Project in my local, Using Python manage.py runserver It takes too long to load, or reload after a change is made in the local *.py files.How Do i make it faster, So I can quickly reload my project when ever a file is changed.

Upvotes: 1

Views: 355

Answers (1)

Ewan
Ewan

Reputation: 15078

It could be taking a while due to time of database connections opening. Are you running your database locally?

You can also enable things like auto-reload based on code changes by installing the django-extensions and using ./manage.py runserver_plus.

Also look at using the django-debug-toolbar to profile SQL queries and look at what is coming through to your app.

Upvotes: 2

Related Questions