[Announcement]: WebHelpers for Django

2007-06-05 Thread viestards
Greetings! To boost my Django skills and show that Django can be JavaScript-ready from the start, I started porting Pylons Webhelpers[1] to Django, implementing them as templatetags. It is hosted on Google projects[2]. To show how it works, I created small Django project that implements basic Web

Re: Newforms example

2007-04-27 Thread viestards
I liked this tutorial: http://code.pui.ch/2007/01/07/using-djangos-newforms/ try searching Google for 'django newforms tutorial', there is some other good tutorials too On 4/27/07, Gerry Steele <[EMAIL PROTECTED]> wrote: > > Hi, > > I've been building an app and all has been going well. I was t

syncdb through web interface

2006-11-08 Thread viestards
Because many hosting providers does not allow shell access, I decided to create web version of syncdb. I made this simple function, and looks like it works def db_sync(request): from django.core import management management.syncdb() return HttpResponse("Db sync in progress.") Is it r

Re: date format other than YYYY-MM-DD

2006-09-29 Thread viestards
et_validation_errors again. > > It's not pretty, not very portable, prone to break when the main > manipulator code/system change, but... well it's easy. > > Javier. thanks, suppose I have to do it this way. I just hoped to have a sollut

Re: date format other than YYYY-MM-DD

2006-09-27 Thread viestards
reply, but will it work on forms? Right now I get: 'FormFieldWrapper' object has no attribute 'day' and mark on line {{form.registrationDate|date:"d.m.Y"}} Viestards > Jay P. --~--~-~--~~~---~--~~ You received this message because

date format other than YYYY-MM-DD

2006-09-27 Thread viestards
hings. Viestards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROT

Re: [FastCGI] - I don't have permission....

2006-09-18 Thread viestards
> Forbidden > "You don't have permission to access / on this server." for me problem was in RewriteRule ^/(.*)$ /mysite.fcgi/$1 [QSA,L] i changed to RewriteRule ^(.*)$ mysite.fcgi/$1 [L] and it worked --~--~-~--~~~---~--~~ You received this message because you ar

Re: How to use month/date/year menus for date?

2006-09-02 Thread viestards
> The question is, how can I get those three menus to create a single > date object that plays nice with Django? > I think the easyest way will be to format selected day, month, year with Javascript, but definetly not the best. May be write a custom Validator. --~--~-~--~~---

Django on shared hosting - no effect until restart SOLVED

2006-09-01 Thread viestards
Looks like I have to add to httpd.conf FastCgiConfig -autoUpdate http://www.fastcgi.com/docs/faq.html#application_reload --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Django on shared hosting - no effect until restart

2006-08-31 Thread viestards
> With FCGI, do a touch on your .fcgi file. That always works for me. I write "aaa" in fcgi file, which must cause syntax error, save it, but nothing happens. > Easier way of course is to develop with the built-in development > server, and only start Apache when your development is done. My hos

Django on shared hosting - no effect until restart

2006-08-30 Thread viestards
I'm trying to setup shared Django hosting on FreeBSD with Apache, but I have to restart Apache every time when I want changes to take effect, insead of simply touching file. Calling FastCGI file directly have same results- no effect until restart. Is this FastCGI problem or I have to look somewhe

Re: Problem setting up Apapche FastCGI and Django

2006-08-25 Thread viestards
problem solved, looks like I misspelled document path and process coudn't find right file. Viestards On 8/25/06, viestards <[EMAIL PROTECTED]> wrote: > > Did you actually started the fastcgi django process on port 3066? > > yes, I restarted manage.py runfcgi once aga

Re: Problem setting up Apapche FastCGI and Django

2006-08-25 Thread viestards
> Did you actually started the fastcgi django process on port 3066? yes, I restarted manage.py runfcgi once again and it is on process list. Viestards > hth, > Edgars > --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Problem setting up Apapche FastCGI and Django

2006-08-25 Thread viestards
I'm stuck with setting up django on Apache 1.3.7 with FastCGI. I', trying to follow Django documentation, but that does not seems to work here is part from my httpd.conf FastCGIExternalServer /usr/home/arvis/django/tst/mysite/site.fcgi -host 127.0.0.1:3066 ServerName testa.darba.info Document

Re: update_object and preserving fields

2006-06-01 Thread viestards
I think this can help: http://code.djangoproject.com/wiki/CookBookManipulatorWithPostpopulatedFields also look at Django Forms documentation On 5/30/06, Marcin Kaszynski <[EMAIL PROTECTED]> wrote: > > > Hello, > > is there a way to make update_object preserve values of some fields > without putt

Re: dynamic templates for form fields

2006-05-16 Thread viestards
Hi! Scaffold Script maybe useful to you: http://code.djangoproject.com/wiki/ScaffoldScript anyway I suggest looking at generic views, they make append\update easy. I found this tutorial useful: http://www.postneo.com/2005/08/17/django-generic-views-crud On 5/15/06, Alexandre CONRAD <[EMAIL PR