I implemented a decent calendar that accomplishes what I need.
http://justinlilly.no-ip.org:8001/calendar/ -- small view
http://justinlilly.no-ip.org:8002/calendar/ -- large view (CSS in progress)
If you want to see the code, you can find it at:
On 6/24/07, Carl Karsten <[EMAIL PROTECTED]> wro
errr.. sorry. misclicked. You can find the source under the "agenda" folder
of:
http://justinlilly.no-ip.org/svn/trunk/gtd/
If you need anything regarding it, let me know!
-justin
On 6/24/07, Justin Lilly <[EMAIL PROTECTED]> wrote:
>
> I implemented a decent calendar that accomplishes what I n
On Sun, 2007-06-24 at 10:38 +, brian corrigan wrote:
> Hi all,
>
> I have written a blog app and tested it locally with the dev server.
> It is working fine for me, I can get to the admin etc. I then set up
> an fcgi server on Dream host, following Jeff Crofts tutorial at
> http://www2.jeffcr
Hi all,
I have written a blog app and tested it locally with the dev server.
It is working fine for me, I can get to the admin etc. I then set up
an fcgi server on Dream host, following Jeff Crofts tutorial at
http://www2.jeffcroft.com/blog/2006/may/11/django-dreamhost/
Before adding my app I co
El sáb, 23-06-2007 a las 14:28 -0300, YASAKTIR YASAKTIR escribió:
> Please, enter on http://www.dceunerj.com.br and vote on "Lais
> Alessandra"
>
> Please!
Why? Whatfor?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
hi Kai,
thanks for your input. i would appreciate if you could attach a
screenshot.
i am not a professional designer (yet;]), so i am lacking some
knowledge. especially when it comes to font-size vs screen resolution.
i promise i will investigate this so it will hopefully look convenient
on your
El dom, 24-06-2007 a las 04:49 -0700, wathi escribió:
> i am not a professional designer (yet;]), so i am lacking some
> knowledge. especially when it comes to font-size vs screen resolution.
> i promise i will investigate this so it will hopefully look convenient
> on your laptop in the near fut
I have an error "cannot connect to mysql server" but the server is up
and running, I can connect with mysqladmin
this happens after an upgrade to version 096 or after (don't know
exactly the build number)
there seem to be an "error in formatting" in django code
return self.get_quer
Hi Malcom,
Thanks for getting back to me so quickly. Updatting to r5520 has fixed
my problem. Good work on you fix so :)
Thanks again
Brian
On Jun 24, 11:58 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2007-06-24 at 10:38 +, brian corrigan wrote:
> > Hi all,
>
> > I have wri
> Be aware, though, that there are lots of SQL constructs
> (including a lot that crop up in stored procedures) that are
> not handled correctly in the initial SQL parsing. For
> backend-specific stuff, that's a small bug. For the more
> general initial SQL, it's an unsolvable problem.
Where woul
On Sun, 2007-06-24 at 07:49 -0500, Tim Chase wrote:
> > Be aware, though, that there are lots of SQL constructs
> > (including a lot that crop up in stored procedures) that are
> > not handled correctly in the initial SQL parsing. For
> > backend-specific stuff, that's a small bug. For the more
>
nevermind...
i should have looked at the flatpages module before posting: it's super
simple. I'll just copy it to my apps and modify it
Eric St-Jean a écrit :
> Hi,
> Is there a way to specify different flatpages for the same url, but for
> a different language???
> So it would default to th
Hi All,
I've been studying Django over this weekend and so far its really
amazing and the kind of thing which makes you say its about damn time
someone made something so cool :)
However, I was saddened a bit to know that some of the very very cool
features have not been released yet and are unde
Hi
What I'm currently using:
Server Version: Apache/2.2.3 (Ubuntu) DAV/2 mod_python/3.2.10 Python/2.5.1
And one of my apache directives:
#full size images
PythonPath "['/home/sean/whav'] + sys.path"
PythonOption DJANGO_SETTINGS_MODULE whav.settings-sean-apache
Wiley wrote:
> Dirk,
>
> Thanks for your comment! I simplified my use case for the sake of
> clarity, but in my actual application it does make sense to have
> Dishes and Restaurants to be many-to-many. Does anyone have any
> insight as to my original question? Can the choices of dish be
> nar
> in urls.py
>
> from django.conf.urls.defaults import *
> from cases.todo.models import *
> from django.newforms import form_for_model
> from django.contrib.formtools.preview import FormPreview
>
> class MyForm(FormPreview):
> def done(request, cleaned_data):
> return Http
This is how i use profile_callback with django-registration :
1. define the profile_callback function :
# profile/models.py
from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import gettext_lazy as _
class ProfileManager(models.Manager):
"
Is that project dead or maybe still unofficial supported?
--~--~-~--~~~---~--~~
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
On 24 июн, 17:53, Nash <[EMAIL PROTECTED]> wrote:
> class MyForm(FormPreview):
> def done(request, cleaned_data):
> return HttpResponseRedirect('/')
You must define 'done' in such way:
def done(self, request, cleaned_data)
--~--~-~--~~~---~--~
Hi,
Apologies if its mentioned in the documentation. I would like to know
whether I can put binary data in a CharField?
Thanks,
Ram
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Hello,
is there any possibility in django to put a widget into a model
instead of creating the whole forms for each model (using widgets
render)? I only need to add a css class to each field in a model...
Best regards
--~--~-~--~~~---~--~~
You received this mess
Hi if have a model like this:
class Category(models.Model):
name = models.CharField(core=True, maxlength=64)
type=models.CharField(maxlength=32,choices=TYPES,default="subnavi")
parent = models.ForeignKey('self', blank=True, null=True,
related_name='child')
and in my view i have t
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> I've been reading this to get lightTPD and fastcgi configured on my
> machine:
> http://www.djangoproject.com/documentation/fastcgi/
>
> There, it says to add this to your lighttpd.conf:
>
> server.document
Yah, weird.
Is there any advantage of using a socket or tcp?
Ivan
On Jun 24, 3:22 pm, Nic James Ferrier <[EMAIL PROTECTED]>
wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> > I've been reading this to get lightTPD and fastcgi configured on my
> > machine:
> >http://www.djangoproject.c
thanks!
On Jun 22, 9:24 pm, Kelvin Nicholson <[EMAIL PROTECTED]> wrote:
> Howdy Ivan:
>
> I'll try to take a stab at a few of your questions.
>
> [snip]
>
>
>
> > So for my root site, would I want to do this?
> >
> > SetHandler python-program
> > PythonHandler django.core.handlers.modpyt
Hi,
I've been reading this to get lightTPD and fastcgi configured on my
machine:
http://www.djangoproject.com/documentation/fastcgi/
There, it says to add this to your lighttpd.conf:
server.document-root = "/home/user/public_html"
fastcgi.server = (
"
I hope I understand what you're asking: that you want to add a CSS
class to each form field generated by the form_for_* helpers?
If so, you could make a small `base class`_ to do that::
class BaseYourForm(forms.BaseForm):
def __init__(self, *args, **kwargs):
super(BaseYou
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> Yah, weird.
>
> Is there any advantage of using a socket or tcp?
A unix socket might be _marginally_ faster.
But TCP avoids ownership issues of sockets which are a pain in the
butt.
--
Nic Ferrier
http://www.tapsellferrier.co.uk
--~--~---
I'm new to Django and I suspect I did something wrong. Whenever I do
python manage.py syncdb
I get these kind of errors:
psycopg2.ProgrammingError: relation "auth_message" already exists
which is of course true, because I ran "python manage.py syncdb"
before to create these tables. But someho
Hm.. I suppose that if you change the name of model it'll be okay.
--~--~-~--~~~---~--~~
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 unsubscr
And what if I need a class only in selected fields ?:)
Can I pass it somehow through a list of the fields ?
Something like that should be nice:
list_of_required = ['name', 'username']
MyForm = form_for_model(MyModel, form=
BaseYourForm(list_of_required))
Hm. I guess that I only have to modify t
I think that it's a right thing for me. Thanks for your effort.
--~--~-~--~~~---~--~~
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
The name of the fields will be the same name you use in your model.
You can replace the loop with explicit calls for each field::
self.fields['name'].widget.attrs['class'] = yourClass1
self.fields['username'].widget.attrs['class'] = yourClass2
Or if you want to pass a list in as an argu
This is a great stuff and I'm really glad that you show me that, but I
still wonder if it is possible to do sth like that in a model ;-)
I mean:
Model looks like that:
class ShortNews(models.Model):
url = models.URLField("URL")
description = models.CharField("Desc", maxlength="20
Malcolm has a really `good write-up`__ about the reasoning behind
newforms (and oldforms) and why it's not just part of the model.
If you find yourself having to do this sort of thing a lot, I would
suggest putting those BaseForm class definitions right next to the
model class in models.py. I do
>> However, I did notice that the regexp for pruning out comments is
>> a bit lax, as it misses the event where a comment-marker is in a
>> string:
>>
>> insert into app_tbl (column_name) values ('has--dashes');
>>
>> chokes. Granted, it's a tad pathological and fairly obvious to
>> catch that
Sorry all, I thought I'd replied to this last week but mustn't have
hit 'Send'.
On Jun 21, 12:52 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> i had registered as 'lawgon' and waited several hours - but no mail.
> Can you check out?
As you'd noticed, I've verified your account. According to
We upload all of our images via the Admin app and would like all
uploaded images to be renamed to a set of numbers. We can generate the
random numbers fine, but is there an easy way to rename the file once
it's uploaded in the Admin app?
Thanks.
--~--~-~--~~~---~--~-
Nic James Ferrier <[EMAIL PROTECTED]> writes:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
>
>> Yah, weird.
>>
>> Is there any advantage of using a socket or tcp?
>
> A unix socket might be _marginally_ faster.
>
> But TCP avoids ownership issues of sockets which are a pain in the
> butt.
I
Hi Kai,
thank you for the screenshot. My resolution is 1024x768, too and it
looks the same as on your screenshot.
i first thought you meant the design is broken and some text being out
of bounds. i guess Christian expected the same and he suggested to
make the design all fluid and this is what i
On Sun, 2007-06-24 at 18:01 +, Ramashish Baranwal wrote:
> Hi,
>
> Apologies if its mentioned in the documentation. I would like to know
> whether I can put binary data in a CharField?
No. It has to be ASCII data (or Unicode data, shortly). Other cases
might work sometimes, but there are alw
On Sun, 2007-06-24 at 22:49 +, l5x wrote:
> This is a great stuff and I'm really glad that you show me that, but I
> still wonder if it is possible to do sth like that in a model ;-)
No, it isn't possible and that's by design. Here's the reasoning behind
why we are doing it the way we are:
I
My understanding is that the best way to have the choices in a choice
field to update dynamically is to subclass form and override
__init__().
Is this still the case?
I'm coming from TurboGears, which has a very similar form/widget/
validation system. But one nice feature in TG is that you can
Hi guys,
I've got this piece of javascript code in my template file which is
supposed to show an image upon a checkbox toggle:
function show_img(suf, val) {
img = document.getElementById('image_' + val);
img.src = 'media/images/schematics/SKU' + suf + '.jpg';
}
The i
Hello,
> The images show when I do a static, non-django html page. But when
> this code is within django, it doesn't show and I think it's because
> django does not deal with javascript paths.
What do you mean - "does not deal"? Once the page is rendered, django
has nothing to do with it. And sinc
On Sun, 2007-06-24 at 20:07 +, yuccaplant wrote:
> I'm new to Django and I suspect I did something wrong. Whenever I do
>
> python manage.py syncdb
>
> I get these kind of errors:
>
> psycopg2.ProgrammingError: relation "auth_message" already exists
>
> which is of course true, because I
On Mon, 2007-06-25 at 13:09 +1000, Malcolm Tredinnick wrote:
> On Sun, 2007-06-24 at 20:07 +, yuccaplant wrote:
> > I'm new to Django and I suspect I did something wrong. Whenever I do
> >
> > python manage.py syncdb
> >
> > I get these kind of errors:
> >
> > psycopg2.ProgrammingError: rel
You've answered your question intended for me :P
I've tried serving static files with as many combinations as I could
think of in the following form:
(r'^images/schematics/(?P.*)$', 'django.views.static.serve',
{'document_root': '/www/htdocs/gfs_chefrevival/images/schematics'}),
and matched it w
On 6/24/07, robo <[EMAIL PROTECTED]> wrote:
> (r'^images/schematics/(?P.*)$', 'django.views.static.serve',
> {'document_root': '/www/htdocs/gfs_chefrevival/images/schematics'}),
...
I think you want a trailing slash after path:
r'^images/schematics/(?P.*)/$'
> I also suspect that this doesn't w
I hope I can explain this well, because I've been wracking my poor
little brain trying to figure out how to do this :)
I'm trying to create a flexible CMS. I want it to be easy for users
to create a Page, and attach all kinds of content ("components") to
that page. These components would all be
On Mon, Jun 25, 2007 at 03:43:51AM -, robo wrote:
> function show_img(suf, val) {
> img = document.getElementById('image_' + val);
> img.src = 'images/schematics/SKU' + suf + '.jpg';
^ put a / here...
img.src = '/images/schematics/SKU' + suf
51 matches
Mail list logo