Reputation: 367
I want to know how can i setup django code(forked from github or any) on my local machine ? I am not taking about installing it. I am talking about to work as a developer on django code itself. My whole aim is to learn django even more better and improve myself.I want to know how the automatic admin is built , etc.
How exactly i can run it on my ubuntu system ?
Thanks
Upvotes: 0
Views: 68
Reputation: 174624
You can clone the repository, if you have git installed:
$ git clone https://github.com/django/django.git
$ cd django
django $ ls
You can create a virtual environment, install django in it and the play with the local copy:
$ virtualenv ~/my_django
$ source ~/my_django/bin/activate
(my_django) $ pip install django
The easiest option is to simply browse the source online if all you want to know is how something is put together.
Upvotes: 0
Reputation: 36151
If you installed it, you'll have the entire code available somewhere like /usr/lib/python/site-packages/django
(use locate django
in terminal to find the correct dir) on Linux or C:/Python27/Lib/site-packages/django
on Windows.
You can see the code, and even make modifications. If you want to contribute to Django, you'll need some knowledge before, and follow some rules.
Upvotes: 1