Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-07T19:58:31.000Z (over 3 years ago)
- Last Synced: 2024-10-12T09:03:19.385Z (about 1 month ago)
- Topics: c, c-plus-plus, django, django-rest-framework, java-11, java-8, php-7, python-2, python-3
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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"
```