View Code? Open in Web Editor
NEW
Getting started with Django framework
django_project's Introduction
Remove any previous MySQL install/data before
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
Adding MySQL APT Repository
- Download MySQL: Download from https://dev.mysql.com
shell> sudo dpkg -i /PATH/version-specific-package-name.deb
sudo apt-get update
sudo apt-get install mysql-server
sudo service mysql status
or sudo systemctl status mysql
sudo service mysql stop/start
or sudo systemctl stop/start/restart mysql
Create virtualenv for this project
virtualenv -p python3 django_project
$ source env/bin/activate
pip install django==1.5.12
- Setup the project:
django-admin.py startproject my_django_project
django_project's People
Contributors