Re: Run external script with Django cron

2010-04-27 Thread Alexis Selves
On 27 dub, 22:26, Shawn Milochik wrote: > I don't understand what the problem is. What error message are you getting? > > Are you confusing PATH and PYTHONPATH? > > Shawn > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Run external script with Django cron

2010-04-27 Thread Alexis Selves
problem is, that I cannot import file db.py to another python script pokus.py when i try to execute my pokus.py I got this: home/ petarda/pokus.py does not point to a directory Is it clear now? And what is difference between PATH and PYTHONPATH? Thanks for help. On 27 dub, 22:26, Shawn Milochik

Run external script with Django cron

2010-04-27 Thread Alexis Selves
Hi there, I have problem with django cron and calling external script. I am trying this first in another file pokus.py: sys.path.append('/home/petarda/Django/gheat-0.2/__/') from bin import db bin is child directory of '__' which contains __init__.py and db.py which include method that I need

Re: Installing django

2010-04-14 Thread Alexis Selves
try to insall package python-django using apt-get install On 14 dub, 20:47, "Tom X. Tobin" wrote: > On Wed, Apr 14, 2010 at 1:17 PM, Shawn Milochik wrote: > > The instructions on the site are incorrect. You only use django-admin.py to > > create the

Dajaxice with Jquery issue

2010-04-14 Thread Alexis Selves
Hi everyone, I am trying to use dajax with jquery. I am dynamicaly making forms with Jquery and each contains button with dajax reference. $(".routelist").append(" with this i get syntax error. I am trying this: $(".routelist").append(" no ' ' in Dajaxice.maps.reservation(reservation_callBack).

InternalError: current transaction is aborted, commands ignored until end of transaction block PROBLEM

2010-03-07 Thread Alexis Selves
Hello, When I try to use raw SQL commands to simple selects from db I get this: InternalError: current transaction is aborted, commands ignored until end of transaction block I tried many hints from another forums, but nothing.. Please help me.. Using django with postgre -- You received this

Re: Selecting rows from 4 in one to many relationship, please help

2010-03-07 Thread Alexis Selves
ariv_date and GIVEN_DATE < > CarReservation.dep_date) > > That is likely wrong, but something like that is where I would start to try > and figure it out. Also, I'm not sure all DB's support sub-selects in their > queries. > > Hope it (kinda) helps! > > Matt. > >

Selecting rows from 4 in one to many relationship, please help

2010-03-06 Thread Alexis Selves
Hello! I have four tables: Car(id, manufacturer, kind) CarReservation(id, id_car, dep_date,ariv_date) CarOperation(id, id_car, id_parking, status...) Parking(id, street, gps) Now I need to select cars, which are on exact parking and are not reserved for given date.. I am totally hopelles..

Admin widgets in my page

2010-03-06 Thread Alexis Selves
Hello everyone, I am trying to use datetime picker from django.contrib.admin I am succesful, but my picker has no style. I see only numbers, but no border, background.. html(shortened) Find parking {% block stylesheet_extra %}{% endblock %}

Django with Jquery

2010-02-28 Thread Alexis Selves
Hello, I am totally helpless. I am trying to use JQuery in my django templates, but I always get in firebug this: $ not defined. In my template I am linking jquery : And then $(document).ready(function() { alert("Hello from jQuery"); }); But I always get nothing.. using ubuntu

Please help me, retrieving data from Django to JS

2010-02-19 Thread Alexis Selves
Hello everybody, I am using Dajaxice to get my data from DB to my template. function getParking_callBack(data){ if(data!='DAJAXICE_EXCEPTION'){ return data; } else{

Using dajaxice to get my data to javascript

2010-02-16 Thread Alexis Selves
Hello there, Is possible to get my data from Django using Dajaxice? I need get information to create markers on google maps. Thanks for your advices. Alex. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Dajaxice and geodjango problem

2010-02-03 Thread Alexis Selves
e hasn't got any output? > > Try to print out the logging info: > import logging logging.basicConfig(level=logging.DEBUG) > > 2010/2/3 Alexis Selves <petr.pej...@gmail.com> > > > > > Hello DAJAXICE_DEBUG = True > > in my settings.py is set already.. > &g

Re: Dajaxice and geodjango problem

2010-02-03 Thread Alexis Selves
and see the server console or try:except: the > code inside your ajax function to see what Exception was raised > > Hope it helps you. > > 2010/2/3 Alexis Selves <petr.pej...@gmail.com> > > > > > Hey there, > >  I have problem with dajaxice. I am trying t

Re: Dajaxice and geodjango problem

2010-02-03 Thread Alexis Selves
Edit: Ajax.py not Admin.py On 3 ún, 20:09, Alexis Selves <petr.pej...@gmail.com> wrote: > Hey there, >  I have problem with dajaxice. I am trying to save vertex from google > route to my db. > Call of JS function: > Dajaxice.maps.sendRoute('sendRoute_callBack',{'data':

Dajaxice and geodjango problem

2010-02-03 Thread Alexis Selves
Hey there, I have problem with dajaxice. I am trying to save vertex from google route to my db. Call of JS function: Dajaxice.maps.sendRoute('sendRoute_callBack',{'data':array}); function sendRoute_callBack(data){ if(data!='DAJAXICE_EXCEPTION'){

Re: Google maps routes in geodjango

2010-01-27 Thread Alexis Selves
.. Everything I do is following the hints on official pages.. I use ubuntu 9.10.. by the way.. On 26 led, 18:56, Alessandro Pasotti <apaso...@gmail.com> wrote: > 2010/1/26 Alexis Selves <petr.pej...@gmail.com> > > > > > Thanks for hints. > > > But here is anot

Re: Google maps routes in geodjango

2010-01-26 Thread Alexis Selves
Thanks for hints. But here is another problem, how can I store my data do geodb with javascript? I was searching several hours, but nothing... On 25 led, 15:40, Alessandro Pasotti <apaso...@gmail.com> wrote: > 2010/1/25 Alexis Selves <petr.pej...@gmail.com> > > > Hi

Google maps routes in geodjango

2010-01-25 Thread Alexis Selves
Hi there, I am new here by the way. I have only simple question, how can I extract route from google map and save it into geodb as multipoint or etc.. Thanks for answers. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,