https://github.com/dominic248/online-compiler-django
Tech. Stack: Django and Django-REST-Framework. Available Online Compilers:- Python-2.7, Python-3.8, PHP-7, C, C++, Java-8, Java-11
https://github.com/dominic248/online-compiler-django
c c-plus-plus django django-rest-framework java-11 java-8 php-7 python-2 python-3
Last synced: 9 months ago
JSON representation
Tech. Stack: Django and Django-REST-Framework. Available Online Compilers:- Python-2.7, Python-3.8, PHP-7, C, C++, Java-8, Java-11
- Host: GitHub
- URL: https://github.com/dominic248/online-compiler-django
- Owner: dominic248
- Created: 2020-08-19T18:47:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-06-25T16:17:02.000Z (about 1 year ago)
- Last Synced: 2025-09-07T03:40:54.180Z (10 months ago)
- Topics: c, c-plus-plus, django, django-rest-framework, java-11, java-8, php-7, python-2, python-3
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://gitads.dev/v1/ad-track?source=dominic248/online-compiler-django@github)
---
# 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"
```