Skip to content

Tech. Stack: Django and Django-REST-Framework. Available Online Compilers:- Python-2.7, Python-3.8, PHP-7, C, C++, Java-8, Java-11

Notifications You must be signed in to change notification settings

dominic248/Online-Compiler-Django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sponsored by GitAds


Online Compiler Django (API only)

Setup auto-formatting with Git Hooks:

pip uninstall autopep8
pip install black
pre-commit install
pre-commit run --all-files

Format files before commit

pre-commit run --all-files

Install Python Tools:

sudo apt install python3-virtualenv python3-pip

Create Virtual Environment:

virtualenv -p python3.8 unix-env3.8
source ./unix-env3.8/bin/activate
source ./.bashrc

Install requirements:

pip install -r requirements.txt

Run all migrations:

cd src
python manage.py makemigrations
python manage.py migrate
python manage.py showmigrations

Create Super-user:

cd src
python manage.py createsuperuser

Run Project:

cd src
python manage.py runserver

Reset Migrations

find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc"  -delete

Untrack files already added to git repository based on .gitignore

Commit all Changes and

git rm -r --cached .
git add .
git commit -m ".gitignore fix"

About

Tech. Stack: Django and Django-REST-Framework. Available Online Compilers:- Python-2.7, Python-3.8, PHP-7, C, C++, Java-8, Java-11

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published