-
Open Source: Visual Studio Code, PyCharm Community Edition, ATOM
Python, Django, MySQL, Virtual Environment
- Python Version : 3.6 or later
- Django Version : 2.0 or later
- MySQL Version : 8.0 or later
Note - Mac users can also use Auto setup script to setup the scaffolding/project.
- Create a virtual environment (Recommend to use Virtual Environment Wrapper)
mkvirtualenv --python=`which python3` scaffolding -r requirements.pipNote: if you face error related to the mysqlclient (Check troubleshooting below)
sudo pip install mysqlclient- Create a project database using MySQL console
mysql -u root -pcreate database scaffolding_development;- Set environment
cp .env.sample .envNote: update .env file variables as per your requirements.
Note: Setup script is only tested and created for Mac OS.
-
run
chmod 555 setup_mac_beta.shto give read and execute permission tosetup_mac_beta.shfile. -
run in terminal
./setup_mac_beta.shand follow the instructions.
python manage.py runserver- For starting development server.python manage.py runserver --settings=main.settings.production- For starting production server.python manage.py shell- For starting interactive python shell.python manage.py makemigrations articles- For creating app migrations.python manage.py migrate- For applying migrations.pip freeze- To view installed python packages.
- Add comments to all the files
- Add unit test cases
- Fork it ( https://github.com/TuxEducation/Django-SwiftStart/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new pull request.