Django, Linux

Install Django on Linux

1. Create virtual environment and Install django

pip install virtualenv
virtualenv -p python3 venv
source venv/bin/activate
pip install Django==1.9.3

2. Create a django project

django-admin startproject projectName

3. Migration :

python manage.py migrate

4. Create superuser :

python manage.py createsuperuser

5. run the server:

python manage.py runserver

6. To change “Django Administration” header. Add following code at the end of urls.py

admin.site.site_header = 'Some Admin'

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s