rivercity
rivercity

Reputation: 364

Where are the Django and python files?

I'm new to Django and Python, I'm coming from Laravel.

I'm working on a Windows machine.

My Laravel project has tons of folders (vendor etc.) and is >100 MB my Django project is <50kB.

In the end, I want to upload my Django project to a webserver.

But I'm curious where the Djangofiles on my computer are located, and how deployment works. (what are the essential parts/files compared to Laravel (Project Folder + DATABASE) which I've to transfer)

Is the Django Framework similar to a Javascript file, which I can put I my project folder or get via linking?

Upvotes: 0

Views: 81

Answers (1)

Ahmed Ablak
Ahmed Ablak

Reputation: 738

The place you move your Django project folder to on your server is where your Django files is located. Django files might be small in size, however, to run your Django application you will need to install +100MB packages from PIP.

The essential part of Django is your project directory and your requirements.txt file in which all python package required to run your application will be listed in it.

Django is not similar to a Javascript file, Django is a complete web development framework similar to Laravel framework, you may refer to this Head-to-Head comparison between Django and Laravel: Here

For more details on deployment you may refer to the following tutorials:

  1. Hosting Django with Nginx: Nginx + Django

  2. Hosting Django with Apache: Apache + Django

Upvotes: 1

Related Questions