Error: ImproperlyConfigured: The SECRET_KEY setting must not be empty

2014-06-24 Thread Rini Michael
Hi,
i was trying to install django_cron using pip install django_cron,but
unfortunately
now i find a error as
ImproperlyConfigured: The SECRET_KEY setting must not be empty
can anybody help me with this
Thanks in advance

regards,
Rini

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFoY06uqrKrGWDzD3DYasB59FpyUqdp2zHjXTH-wjkJd8hz%2Bjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


converting the format of datetime from datetime.datetime( yyyy mm dd hh mm tzinfo=) to yyyy mm dd hh mm

2014-06-22 Thread Rini Michael
Hi
I am working in datetime in django,this is the code in my forms.py

from_time = forms.DateTimeField(label="FromTime",
required=True,
input_formats=["%Y-%m-%d %H:%M:%S"],

widget=DateTimeInput(format="%Y-%m-%d %H:%M:%S"))
all the values of fields are stored in a dictionary variable say dd,when i
try to write the value of the dictionary in a file it is in the form

from_time   datetime.datetime( mm dd hh mm tzinfo=)

can anyone suggest me how can i just get the value 2014 6 21 12 0 which is
 mm dd hh mm i need to take this value and set it as cron task

Thanks and regards
Rini

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFoY06tg%3D09WfQQ1-QJDR%3DYCyUW3pmQzUHWFnMS5b4iARXt4cg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: execute a code at a particular date and time (aperidic task) in django

2014-06-11 Thread Rini Michael
Thank you Javier


On Tue, Jun 10, 2014 at 6:47 PM, Javier Guerra Giraldez <jav...@guerrag.com>
wrote:

> On Tue, Jun 10, 2014 at 6:43 AM, Rini Michael <rinzyra...@gmail.com>
> wrote:
> > Thanks for your reply,i have been looking into celery as well,but i found
> > that celery is used for periodic task and i am looking to execute
> aperiodic
> > task.please correct me if i am wrong
>
>
> check the T.apply_async(eta=) option [1]
>
>
> [1]: http://docs.celeryproject.org/en/latest/userguide/calling.html#id3
>
> --
> Javier
>
> --
> 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+unsubscr...@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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFkDaoTVAe9HPXaotJUNL%3DNgFVH5_yEqaLJNbbWhgfhMCTDjhw%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFoY06sO76BSZuwY3avKcsYmJ5VnqSfVB9zNv8QZ-Kc12%3DwkKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin site doesn't work

2014-06-10 Thread Rini Michael
while launching through the browser do u give something like
http://127.0.0.1:8000/admin/


On Wed, Jun 11, 2014 at 7:40 AM, Glen J  wrote:

> I read another post on here about how their Django site admin site would
> not come up.  In their case, they had failed to edit the urls.py and
> settings.py to enable the site.  I have done that and also done a syncdb
> after making those changes and the admin sited does not come up.  All that
> displays is the welcome site indicating that Django is working.  Like the
> other person posting, I am simply following along (or trying) with the
> Django tutorial.  What else can I look at to get to the bottom of this?
> Any help would be much appreciated!
>
> Glen
>
> --
> 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+unsubscr...@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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/12a96433-60d9-4f63-a3e0-0aa7685f33d9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFoY06t4eo8%3DmVEZWP3_egvEoBXVYMpc-rVK6iH-Qt8bBrMFOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: execute a code at a particular date and time (aperidic task) in django

2014-06-10 Thread Rini Michael
Hi Malcolm
Thanks for your reply,i have been looking into celery as well,but i found 
that celery is used for periodic task and i am looking to execute aperiodic 
task.please correct me if i am wrong

Thanks in advance

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1027f151-b6c7-46a7-a95a-4e6fceca72e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


execute a code at a particular date and time (aperidic task) in django

2014-06-10 Thread Rini Michael
Hi,
i am looking for a way where i can execute a task at a particular date and 
time, i tried apscheduler for this purpose but i am finding some difficulty 
while integerating with django. can anyone help me with this
the flow is
user will specify a particular date and time through GUI --> submit --> the 
task will be executed at the particular date and time the user mentioned
i have tried the following in django (Apscheduler approach)

import time
from datetime import datetime
from apscheduler.scheduler import Scheduler
import os
def func1(self,exec_date):
from_time = datetime.datetime.strptime("2014-05-29 13:56:59",'%Y-%m-%d 
%H:%M:%S')
self.exec_date = datetime.datetime ( 
from_time.year,from_time.month,from_time.day,from_time.hour,from_time.minute)
return exec_date
sched = Scheduler()
sched.start()
def my_job(test,exec_date):
print test
os.system("python C://Python27/Lib/idlelib/tim.py")
job = sched.add_date_job(my_job,exec_date, ['hello'])


the issue i am facing is the input that the user gives (date n time) is in 
forms.py ,i have written the code for apscheduler in views.py and i call 
the function through urls.py but the code doesn't really seem to work,can 
anyone suggest me how apscheduler works with django or guide me with some 
links which give information about that

Thanks in advance

Thanks and regards 
Rini

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ba02dd8d-a705-4b0d-a238-a5d4e7934a41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.