Quantcast

Crone Job Issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Crone Job Issue

reachsyedmail
Hi All ,

I am new for Django Framework  , I need your help to fix this below issue
.I am trying to run cron job (python manage.py crontab add) but its
showing following error .

*System check identified some issues:*

*WARNINGS:*
*metric_db.note_appnav_table.updated: (fields.W161) Fixed default value
provided.*
*        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.now`*
*metric_db.note_automatedreg_table.updated: (fields.W161) Fixed default
value provided.*
*        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.now`*
*metric_db.note_autotest_table.updated: (fields.W161) Fixed default value
provided.*
*        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.now`*
*metric_db.note_buffer_table.updated: (fields.W161) Fixed default value
provided.*
*        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.now`*
*metric_db.note_featuredev_table.updated: (fields.W161) Fixed default value
provided.*
*        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.now`*
*metric_db.note_hardening_table.updated: (fields.W161) Fixed default value
provided.*
*        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.now`*
*metric_db.note_manualtest_table.updated: (fields.W161) Fixed default value
provided.*
*        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.now`*
*metric_db.note_planned_table.updated: (fields.W161) Fixed default value
provided.*
*        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.now`*
*metric_db.note_release_table.updated: (fields.W161) Fixed default value
provided.*
*        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.now`*
*metric_db.note_sustanance_table.updated: (fields.W161) Fixed default value
provided.*
*        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.*



*System configuration : *
OS: Linux
Python 2.7 and  Django version 1.8.
3

I have tried multiple ways but no luck , Could you please help me to resolve this issue .

Thanks 
Syed 

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0860374c-cc80-4c43-9b95-c4abe02d9320%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Crone Job Issue

Christian Ledermann
how does you medels.py look like?

 I have a hunch the definition of updated is
updated = DateTimeField(default= timezone.now())
instead of
updated = DateTimeField(default=timezone.now)

On 18 April 2017 at 16:05,  <[hidden email]> wrote:

> Hi All ,
>
> I am new for Django Framework  , I need your help to fix this below issue
> .I am trying to run cron job (python manage.py crontab add) but its
> showing following error .
>
> *System check identified some issues:*
>
> *WARNINGS:*
> *metric_db.note_appnav_table.updated: (fields.W161) Fixed default value
> provided.*
> *        HINT: It seems you set a fixed date / time / datetime value as
> default for this field. This may not be what you want. If you want to have
> the current date as default, use `django.utils.timezone.now`*
> *metric_db.note_automatedreg_table.updated: (fields.W161) Fixed default
> value provided.*
> *        HINT: It seems you set a fixed date / time / datetime value as
> default for this field. This may not be what you want. If you want to have
> the current date as default, use `django.utils.timezone.now`*
> *metric_db.note_autotest_table.updated: (fields.W161) Fixed default value
> provided.*
> *        HINT: It seems you set a fixed date / time / datetime value as
> default for this field. This may not be what you want. If you want to have
> the current date as default, use `django.utils.timezone.now`*
> *metric_db.note_buffer_table.updated: (fields.W161) Fixed default value
> provided.*
> *        HINT: It seems you set a fixed date / time / datetime value as
> default for this field. This may not be what you want. If you want to have
> the current date as default, use `django.utils.timezone.now`*
> *metric_db.note_featuredev_table.updated: (fields.W161) Fixed default value
> provided.*
> *        HINT: It seems you set a fixed date / time / datetime value as
> default for this field. This may not be what you want. If you want to have
> the current date as default, use `django.utils.timezone.now`*
> *metric_db.note_hardening_table.updated: (fields.W161) Fixed default value
> provided.*
> *        HINT: It seems you set a fixed date / time / datetime value as
> default for this field. This may not be what you want. If you want to have
> the current date as default, use `django.utils.timezone.now`*
> *metric_db.note_manualtest_table.updated: (fields.W161) Fixed default value
> provided.*
> *        HINT: It seems you set a fixed date / time / datetime value as
> default for this field. This may not be what you want. If you want to have
> the current date as default, use `django.utils.timezone.now`*
> *metric_db.note_planned_table.updated: (fields.W161) Fixed default value
> provided.*
> *        HINT: It seems you set a fixed date / time / datetime value as
> default for this field. This may not be what you want. If you want to have
> the current date as default, use `django.utils.timezone.now`*
> *metric_db.note_release_table.updated: (fields.W161) Fixed default value
> provided.*
> *        HINT: It seems you set a fixed date / time / datetime value as
> default for this field. This may not be what you want. If you want to have
> the current date as default, use `django.utils.timezone.now`*
> *metric_db.note_sustanance_table.updated: (fields.W161) Fixed default value
> provided.*
> *        HINT: It seems you set a fixed date / time / datetime value as
> default for this field. This may not be what you want. If you want to have
> the current date as default, use `django.utils.timezone.*
>
>
> *System configuration : *
> OS: Linux
> Python 2.7 and  Django version 1.8.3
>
> I have tried multiple ways but no luck , Could you please help me to resolve
> this issue .
>
> Thanks
> Syed
>
> --
> 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 [hidden email].
> To post to this group, send email to [hidden email].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0860374c-cc80-4c43-9b95-c4abe02d9320%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Best Regards,

Christian Ledermann

Newark-on-Trent - UK
Mobile : +44 7474997517

https://uk.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWphid1NmQ_kEUeqEgPv0p7rrX2JMBu6970%3Dq_nrdLNJzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...