Skip to content

A simple app for executing SQL queries in Django admin panel.

License

Notifications You must be signed in to change notification settings

luminousmen/django-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status PyPI version 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:

    INSTALLED_APPS = [
      ...
      'sqlapp',
    ]

Add to your urls.py:

   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

About

A simple app for executing SQL queries in Django admin panel.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •