Forward-port of Django's reset management command. It was removed with Django 1.5.
Project description
This is a port of Django’s reset management command that was shipped with Django 1.4.x and earlier. Django 1.5 removed this command.
There might be good reasons not to further maintain it in the Django core, however it was always quite useful during prototyping a new Django based project. Thats why I decided to bring it to Django 1.5 and higher with this app.
Full credits for the code goes to the awesome Django project.
Installation
Install django-reset with pip:
pip install django-reset
Add 'django_reset' to your INSTALLED_APPS setting:
INSTALLED_APPS = ( ... 'django_reset', ... )
Usage
django-admin.py reset <appname appname …>
Executes the equivalent of sqlreset for the given app name(s).
The --noinput option may be provided to suppress all user prompts.
The --database option can be used to specify the alias of the database to reset.
django-admin.py sqlreset <appname appname …>
Prints the DROP TABLE SQL, then the CREATE TABLE SQL, for the given app name(s).
The --database option can be used to specify the database for which to print the SQL.
Trivia
For code, bug reports, patches or if you wish to contact me, go to https://github.com/gregmuellegger/django-reset
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
File details
Details for the file django-reset-0.1.0.tar.gz
.
File metadata
- Download URL: django-reset-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54e1ec1582b73f42ecf360038e805f8855808eee0dfdcba01b8d481f17b4d99f |
|
MD5 | 428574f529e7869ae3b176ba88e443f4 |
|
BLAKE2b-256 | a20b7583fd39f4884da8f585191b314cd6741147e492e7222cdb7c2bc43a640e |