Jay Parlar wrote:
>I'm doing a personal app for myself that tracks academic papers I've
>read. As is the style these days, I can apply multiple tags to each
>paper. My basic model is this:
>
>class Tag(models.Model):
>name = models.CharField(maxlength=200, core=True, unique=True)
>
>class
Luke Plant wrote:
>I've been writing some tagging functionality for my site, and I've
>developed it in a way that is reusable and generic, similar in some
>ways to the 'comments' app in contrib.
>
Seems that tags are hot in Django these days :-). Couple of days ago
I've done my TagsField as a
Hi Luke,
Please do so.
Tagging is, buzzword or not, pretty useful and many people have / will
implement it on their own (I was mid way through just now).
It would be great to leverage on your code, and I think it would
benefit django users in general, as it could make more applications
Op wo, 24-05-2006 te 23:51 -0700, schreef Rudolph:
> One of my customers also wants this. One thing I thought of is making
> the e-mailadress case insensitive; only storing lowercase e-mailaddress
> and lowercase the user input address when loggin in.
Remember that the part to the left of the
> Ok. So if work, what reason you have for ditch it for Apache?
There were really four reasons I moved from IIS to Apache:
1) Virtual hosting: although you _can_ do virtual hosting on IIS, you
really need IIS6 on Win2k3 to support the host header fields. The
default IIS on XP Pro doesn't allow
Op do, 25-05-2006 te 11:28 -0400, schreef Ian Maurer:
> Django's QuerySet handles slicing through the LIMIT and OFFSET clauses
> of the database. Since the clauses cannot handle python's "negative
> indexing" scheme, you have 2 choices:
[...]
> 2. Use an order_by method to set the reverse order
i've saw too that manage.py syncdb create tables out of order,
disobeying the foreign keys, many to many tables, etc...
On 5/25/06, Siah <[EMAIL PROTECTED]> wrote:
>
> Thanks for the response adrian.
>
> Somehow I felt the result of Alter Table is not as efficient as
> properly creating the
I'm doing a personal app for myself that tracks academic papers I've
read. As is the style these days, I can apply multiple tags to each
paper. My basic model is this:
class Tag(models.Model):
name = models.CharField(maxlength=200, core=True, unique=True)
class Paper(models.Model):
Luke,
I'm definitely interested, since I've been thinking about doing this
very thing.
Regards,
-scott
On Fri, 2006-05-26 at 00:57 +0100, Luke Plant wrote:
> Hi all,
>
> I've been writing some tagging functionality for my site, and I've
> developed it in a way that is reusable and generic,
just as an aside, I've also written a similar tagging app, which
covers about 70% of the same functionality as Luke's
personally I'd love a 'standard' tagging app in contrib which
combines the best of both worlds, as it seems like this functionality
is what most users:
a) want
b) struggle
Hi all,
I've been writing some tagging functionality for my site, and I've
developed it in a way that is reusable and generic, similar in some
ways to the 'comments' app in contrib. Would anyone be interested in
me tidying it up for release as a Django app? It would require a
little bit of
Thanks for the response adrian.
Somehow I felt the result of Alter Table is not as efficient as
properly creating the table in the first place. If I'm incorrect, that
I think I am, your suggestion is actually very good and should make my
life more efficient.
I guess if I go with above, I don't
Ok. So if work, what reason you have for ditch it for Apache?
For this hosting setup, I don't have problems in the security or
performance arena... but maybe because is the main plataform for
python/django?
I'm more worry about crash or glacial performance.
> Speaking from
experience of setting up IIS and within 3 minutes of it being on the
net
with the latest updates it being backdoored and viruses roaming free
That is YOUR experience. My web server never have that kind of
troubles. I have my small developer company with Windows 2003 and I
expose
I should have clarified: I use Apache2 on Windows (and Linux for that
matter). As Ian pointed out, Apache2 is multi-threaded and works very
well on both Linux and Windows.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
On 26/05/2006, at 7:15 AM, Jeremy Dunck wrote: Note that if you are stuck on Windows, Apache + mod_python + MySQL + Django works very well. Doesn't pre-forking apache on windows scale badly due to window's high process startup cost? I guess it'd depend how often you recycle your httpd
On 5/25/06, DavidA <[EMAIL PROTECTED]> wrote:
>
> I've used Python with IIS for the MoinMoin wiki (where do they get
> these names?).
They speak German.
> Note that if you are stuck on Windows, Apache + mod_python + MySQL +
> Django works very well.
Doesn't pre-forking apache on windows scale
I've used Python with IIS for the MoinMoin wiki (where do they get
these names?). They have a good doc on configuring IIS for Python:
http://moinmoin.wikiwikiweb.de/HelpOnInstalling/InternetInformationServer#head-890abdbd0d21bf874ce794be87067abf433a51d7
I've done it. It works fine. And then I
On May 25, 2006, at 12:59 PM, Mary Adel wrote:
> how could i get a variable from the database in the views
>
> for example i have a model like this:
> class Menu (models.Model):
> menu_text=models.TextField(maxlength=200)
>
> and i need to get this variable from the database under certain
>
I am 7 months into coding a large django application. Due to needing
extra bytea fields with my database, I started maintaining my own SQL
instead of django-admin install app. Everytime I made changes to my
model, I would take django-admin sqlall app and apply those changes.
Its been a few days
Good work.
Sia
--~--~-~--~~~---~--~~
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
Hi all, I've written (well copied) the following view. In my model I have a defined an attribute "station = models.ForeignKey(Station)". Now, if I call the change view, the station is selected. However, if I submit the change view with some errors, the station is de-selected in the new view.
I've
how could i get a variable from the database in the views
for example i have a model like this:
class Menu (models.Model):
menu_text=models.TextField(maxlength=200)
and i need to get this variable from the database under certain
condition
for example when menu_text ='test' then write it in
i need your help in the following :
how to write in the views a function that has a loop and this loop gets
one field from my database so that i can take each field and put it in a
file
Thanks,
Mary
--~--~-~--~~~---~--~~
You received this message because you
On Thursday 25 May 2006 10:34, Joseph Kocherhans wrote:
> On 5/25/06, Eric Walstad <[EMAIL PROTECTED]> wrote:
> > Yes, I suspect this is more than a one-off issue. I'd also like to see
> > the last modified timestamp on the Project's related ProjectFiles. Can
> > you point me to documentation
On 5/25/06, Eric Walstad <[EMAIL PROTECTED]> wrote:
>
> Yes, I suspect this is more than a one-off issue. I'd also like to see the
> last modified timestamp on the Project's related ProjectFiles. Can you point
> me to documentation on how to whip up a new admin widget and direct the admin
>
I've started this as SoC project, however is hasn't passed so I'm
publising the sources, maybe you'll find them useful.
I've uses Json as the transport layer. You will need Json-py library
(http://sourceforge.net/projects/json-py/). To make server-side code
you need to make a new django view:
On Thursday 25 May 2006 09:50, Joseph Kocherhans wrote:
> On 5/25/06, Eric Walstad <[EMAIL PROTECTED]> wrote:
> > My 'Projects' admin form has 'Notes'. Notes have a non-user-editable
> > 'note date' DateTimeField. I haven't been able to figure out how to get
> > the note date to get displayed
On 5/25/06, Eric Walstad <[EMAIL PROTECTED]> wrote:
>
> My 'Projects' admin form has 'Notes'. Notes have a non-user-editable 'note
> date' DateTimeField. I haven't been able to figure out how to get the note
> date to get displayed in the admin interface in such a way that it's visible
> but
Hi all,
My 'Projects' admin form has 'Notes'. Notes have a non-user-editable 'note
date' DateTimeField. I haven't been able to figure out how to get the note
date to get displayed in the admin interface in such a way that it's visible
but not editable. Any ideas?
Thanks in advance. Below
mary wrote:
>i wrote this view
>def index(request):
>output=open( '/var/www/xml-python/xmleditor/test.xml','w')
>output.write('')
>output.write('')
>latest_menu_list = Menu.objects.all().order_by('-id')
>output = ', '.join([m.menu_text for m in latest_menu_list])
>
On 5/25/06, Ian Maurer <[EMAIL PROTECTED]> wrote:
>
> Django's QuerySet handles slicing through the LIMIT and OFFSET clauses
> of the database. Since the clauses cannot handle python's "negative
> indexing" scheme, you have 2 choices:
>
> 1. Do the actual evaluation, by converting to a list and
On 25/05/06, Paul Smith <[EMAIL PROTECTED]> wrote:
>
>
> On May 24, 2006, at 9:33 PM, Elver Loho wrote:
>
> >
> > I used to code stuff with TurboGears, which started sucking rather
> > fast. I still liked their templating engine, Kid. Sort of. I've also
> > tried Zope 3's and Django's, a couple
Adrian Holovaty wrote:
> You're best off searching by the exact fields rather than messing with
> derived fields.
Would you offer some insight please?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
Django's QuerySet handles slicing through the LIMIT and OFFSET clauses
of the database. Since the clauses cannot handle python's "negative
indexing" scheme, you have 2 choices:
1. Do the actual evaluation, by converting to a list and then doing your slice:
list(Foo.objects.all())[-1]
2. Use
Mary,
In your code you have assigned output to be a string.
So output as a string would cease to have the operation write on it.
so change the last two lines of your code to be
tempOutput = ', '.join([m.menu_text for m in latest_menu_list])
output.write(tempOutput)
I hope that this helps
mary wrote:
> and i got this error
> 'str' object has no attribute 'write'
...
> output = ', '.join([m.menu_text for m in latest_menu_list])
> output.write(output)
In the first line there, you're setting "output" (which used to be a
file object) to a string, and then in the next line
On 5/25/06, mary <[EMAIL PROTECTED]> wrote:
>
> i wrote this view
> def index(request):
> output=open( '/var/www/xml-python/xmleditor/test.xml','w')
> output.write('')
> output.write('')
> latest_menu_list = Menu.objects.all().order_by('-id')
> output = ', '.join([m.menu_text
dear all
i have this error:Request Method:
GET Request URL: http://127.0.0.1:8000/xmlmenu/
Exception Type: AttributeError Exception Value: 'str' object has no
attribute 'write' Exception
Location: /var/www/xml-python/xmleditor/../xmleditor/menues/views.py in
index, line 14
when i wrote
On 5/25/06, Gary Wilson <[EMAIL PROTECTED]> wrote:
> Yes, I would like to provide my users with a single search box where
> they could enter a first name, a last name, or a first name and last
> name. So maybe...
>
> if one word entered:
> search in last name OR first name
> elif two words
On May 24, 2006, at 9:33 PM, Elver Loho wrote:
>
> I used to code stuff with TurboGears, which started sucking rather
> fast. I still liked their templating engine, Kid. Sort of. I've also
> tried Zope 3's and Django's, a couple of homegrown ones, Interchange's
> as used on our big webstore and
i wrote this view
def index(request):
output=open( '/var/www/xml-python/xmleditor/test.xml','w')
output.write('')
output.write('')
latest_menu_list = Menu.objects.all().order_by('-id')
output = ', '.join([m.menu_text for m in latest_menu_list])
output.write(output)
I'm seeing some strange slicing behaviour (using sqlite3 and the dev server).
All I want to do is grab the last element in the table, so I'm trying this:
Foo.objects.all()[-1]
When I do that in a shell (via manage.py shell) it works fine, and
respects my 'ordering' Meta. However, when my
On 5/25/06, qhfgva <[EMAIL PROTECTED]> wrote:
>
> In order to fit more columns of data on the screen in the admin, I
> tried the following:
>
> # for use in list_display
> def combined_cols(self):
> return '%s%s%s' % (self.col1, self.col2,sel.col3)
>
> Which displayed the '' in the output.
>
On 5/25/06, Christian Schneider <[EMAIL PROTECTED]> wrote:
> And
> sorry for any confusion, I don't have 30 processes the output of ps was for
> one process taken every 5 seconds to show the increase in memory usage.
Sorry I'm an idiot. The PID was clearly the same. :)
In order to fit more columns of data on the screen in the admin, I
tried the following:
# for use in list_display
def combined_cols(self):
return '%s%s%s' % (self.col1, self.col2,sel.col3)
Which displayed the '' in the output.
Is there some way to prevent the output from being html escaped
Malcolm,thanks a lot! That really hit it.I definitely don't need DEBUG to be True because I never knew about it in the first place. Now my memory usage stays nicely constant.I already saw me re-writing the server to use hand-rolled SQL ...
chris
HI TEAM
I am new userI have some question like i have shared hosting with
cpanel for controling the web space i dont have shell access , well i
like to know how i can find pythom is installed or not well which file
should i download to upload via ftp ? to my web space
ANY SUGGESTION
Elver Loho wrote:
> http://elver.cellosoft.com/2006/05/24/acceptable-use-of-programming-in-templates/
The XML in Python trick is somewhat similar to how Django's syndication
(RSS/Atom) framework works, and it is great for such structured XML
documents. On the other hand, HTML is a weird thing
On Wed, May 24, 2006 at 07:18:06PM -, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> I know...
>
> I have the option to get Linux as a fallback.
Shouldn't ever be a fallback, it should be the primary choice - unless
you're fond of having your webserver compromised... (speaking from
This is to avoid duplicate usernames? My idea is to call them all
userXXX where XXX is the id value (the primary key in the User table).
Another thought that came to me yesterday was whether there are any
issues if a user wants to change his or her email address. I don't
think it causes any
Hi,
One of my customers also wants this. One thing I thought of is making
the e-mailadress case insensitive; only storing lowercase e-mailaddress
and lowercase the user input address when loggin in. Another thing when
not really using the username field is to fill it with an as long as
possible
52 matches
Mail list logo