Friday, June 14, 2013

Re: Using Fabric to clear database records

manage.py flush


On Fri, Jun 14, 2013 at 3:16 PM, Sithembewena Lloyd Dube <zebra05@gmail.com> wrote:
Greetings,

I've got a Django 1.5.1. project where I have a Video model (basically saving video metadata). I would like to create a fabfile in my project folder so that when I run 'fab production refresh', the list of videos saved in the production environment (Amazon EC2) should be cleared out and any new videos added should have ids starting from 1 again.

Any ideas on implementing this?

--
Regards,
Sithu Lloyd Dube

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate