These are chat archives for django/django
testso I decided to disable migrations for tests. I learned many people asked for this featured (disabling migrations when testing) because it's slowed the process considerably. But I wonder, if Django runs migrations when testing there must be a reason for it right? Could disabling migrations cause any problems?
could that be used to redirect to the current page with a updated template? I'm having an issue where I only get the penultimate submission to show up after a form submission. As soon as I hit f5 I get my last submission as expected.
if (datetime.date.today() - datetime.timedelta(days=7)) > company.people_updated: get_company_details(stock_symbol)where
get_company_detailsis a function I imported.
class Person(models.Model): company = models.ForeignKey(company) name = models.CharField() date_added = models.DateField() # then you could do Person.get_or_create()