1

I use Django 1.7.11. There is a model with DateTimeField and it's missing datepicker in Django admin, it has only a text field. What can I do to use datepicker in admin?

models.py:

class Phase(models.Model):    
    end_date = models.DateTimeField()

admin.py:

class PhaseAdmin(admin.ModelAdmin):
    pass
admin.site.register(Phase, PhaseAdmin)
Swallow
  • 69
  • 1
  • 13

1 Answers1

1

I've found the solution. Need to run the command:

python manage.py collectstatic
Swallow
  • 69
  • 1
  • 13