A simple app for executing SQL queries in Django admin panel
Project description
[![Build Status](https://travis-ci.org/luminousmen/django-sql.svg?branch=master)](https://travis-ci.org/luminousmen/django-sql)
[![Coverage Status](https://coveralls.io/repos/github/luminousmen/django-sql/badge.svg?branch=master)](https://coveralls.io/github/luminousmen/django-sql?branch=master)
[![PyPI version](https://badge.fury.io/py/django-sql.svg)](https://badge.fury.io/py/django-sql)
[![Licence](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/luminousmen/django-sql/blob/master/LICENCE)
Django-SQL
====
A simple app for executing SQL queries in Django admin panel.
*! WARNINIG !*
_Do not install this app if you afraid of consequences of giving access to database from admin panel._
##### Requirements
* Python3
* Django 1.9
##### Installation
```
pip install django-sql
```
Add to your `INSTALLED_APPS` in `settings.py`:
```python
INSTALLED_APPS = [
...
'sqlapp',
]
```
Add to your `urls.py`:
```python
from sqlapp.sqlapp import execute_sql
urlpatterns = [
url(r'^admin/sqlapp/(?:sql/)?$', execute_sql, name='sql'),
url(r'^admin/', include(admin.site.urls), name='admin'),
]
```
**Note:** The `sqlapp` URL pattern must come BEFORE the `admin` pattern as shown above.
##### Contributors
* [luminousmen](https://github.com/luminousmen)
* [un-def](https://github.com/un-def)
[![Coverage Status](https://coveralls.io/repos/github/luminousmen/django-sql/badge.svg?branch=master)](https://coveralls.io/github/luminousmen/django-sql?branch=master)
[![PyPI version](https://badge.fury.io/py/django-sql.svg)](https://badge.fury.io/py/django-sql)
[![Licence](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/luminousmen/django-sql/blob/master/LICENCE)
Django-SQL
====
A simple app for executing SQL queries in Django admin panel.
*! WARNINIG !*
_Do not install this app if you afraid of consequences of giving access to database from admin panel._
##### Requirements
* Python3
* Django 1.9
##### Installation
```
pip install django-sql
```
Add to your `INSTALLED_APPS` in `settings.py`:
```python
INSTALLED_APPS = [
...
'sqlapp',
]
```
Add to your `urls.py`:
```python
from sqlapp.sqlapp import execute_sql
urlpatterns = [
url(r'^admin/sqlapp/(?:sql/)?$', execute_sql, name='sql'),
url(r'^admin/', include(admin.site.urls), name='admin'),
]
```
**Note:** The `sqlapp` URL pattern must come BEFORE the `admin` pattern as shown above.
##### Contributors
* [luminousmen](https://github.com/luminousmen)
* [un-def](https://github.com/un-def)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-sql-1.0.1.tar.gz
(4.6 kB
view hashes)