clear database (drop all tables)

2015-04-29 Thread lars van Gemerden
Hi all, Is there a simple programmatic way to drop all tables in the database (e.g. for testing purposes), also without input prompts? Cheers, Lars -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Simple way to find the amount of years between two dates?

2015-07-12 Thread lars van Gemerden
question is a bit vague, but look at python datetime.datetime and datetime.timedelta On Sunday, July 12, 2015 at 1:02:55 PM UTC+2, Brandon Keith Biggs wrote: > > Hello, > using the django.utils.timezone.now() function, how can I find the > difference from another date in years? > For example,