In my models, I have added the options "verbose_name" and
"verbose_name_plural" to make my models easier to understand in the
admin interface. However, even though I have added these options in my
models, the admin interface still displays the model's name in the
default camel case style. Is
I use a base navigation template that has the right rail, and the rest
of my templates extend that base template to put in the content - All
of my views grab a category list.
Flatpages are perfect for the about us, contact us, etc. sections of my
site, but my navigation bar needs this category
Hi,
I am using the template to build the email content. I included links
in it but the email are sent in plain text, not in html. What is the
way to go to send html email ? Eventually, i'd like to add images too.
Thanks in advance for your help
Rem
On 8/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I know the discussion about django and ajax compatible response. The
> 'hardliners' say that you only need to implement your own kind of template -
> which is true for all time, but I would prefer a much more generic way to get
> the
Hi all,
May be I'm too demanding to django Db API, but anyway..
OK, I have many-to-many relationship Story >-< Image.
I want to get all images which bound to a story and with 'caption' or
'img' fields applied search condition string 'conditionString'.
If I write (ver 0.91):
from
Dirk,
I think that it's a great option. It doesn't advocate a specific
framework or method even. AJAX views will be very similar to html
views and I agree that having some generic views for AJAX is a great
addition to the Django community, even if it doesn't get added to the
core.
Corey
thanks. when i change collation to utf8_unicode_ci; - all begin to work
fine.
--~--~-~--~~~---~--~~
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
When recently up websites go down you can always try using the "Coral
Content Distribution Network".
http://coralcdn.org/
Here's a mirror.
http://www.saddi.com.nyud.net:8080/software/flup/
http://www.saddi.com.nyud.net:8080/software/flup/dist/
Hello, I'm an enthusiast Django newbie and I need some direction from
you:
I saw around many django people saying that many things will change in
1.0. I noted also
that some tutorial around the web is labeled as "obsolete".
Maybe my question is stupid, but, is it worth that I start dive into
On 08/26/06 21:47, george webzary wrote:
> Hi
>
>
> I know this is unrelated to Django. But I guess I mucked up my django sym
> links, by linking it number of times.
>
> How do I remove the multiple level of sym links. This is a Linux newbie
> question. But has me stumped.
>
> When I run
Apparently in the current trunk reversed urllookup is kind of(!!)
working.
After toying with it a little bit I found one issue:
The main method, reverse, only returns the resulting matched url. Not
the rule (the regex and extra arguments) it matched. There is no
reliable way of knowing which
Hi,
when displaying a form for a new object, I'm trying to set a default
value for a date field using a filter in a template, like so:
{{ form.somefield|date:"Y-m-d" }}
This gives me an error:
'FormFieldWrapper' object has no attribute 'year'.
What am I doing wrong (I'm using generic views)?
IntegrityErrors are thrown by the Python Database API.
If using mysql, you should code this:
from mysqldb import IntegrityError
If using postgres you should code this:
from psycopg, import IntegrityError
Don
--~--~-~--~~~---~--~~
You received
Things you love django for:
http://www.fotosik.pl/pokaz_obrazek/pelny/553d3c6ab6cca377.html
As for basic markup - safe HTML powered by Strip-O-Gram
http://www.zope.org/Members/chrisw/StripOGram :)
hm.. we could add a wysiwyg in a popup ^_^
--~--~-~--~~~---~--~~
HiI know this is unrelated to Django. But I guess I mucked up my django sym links, by linking it number of times.How do I remove the multiple level of sym links. This is a Linux newbie question. But has me stumped.
When I run setup.py install from updated svn directory, I get this errorerror:
i was looking for the inverted index module cici-mills and chris had
presented at pycon 1996
digicool
or a similar inverted index for python
http://www.digicool.com/releases/unsupported/InvertedIndex/
if you can share it it ll be great
--~--~-~--~~~---~--~~
You
that for the advice,
that wasn't really smart i should have figured that one out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Sorry for the double-post :)On 8/25/06, Sean De La Torre <[EMAIL PROTECTED]> wrote:
I've posted a patch that adds full introspection functionality forado_mssql backends (http://code.djangoproject.com/ticket/2563). I'dappreciate it if those of you who run Django/mssql could test it out
and let me
Adrian Holovaty wrote:
> Nice, Ivan! I've been meaning to write something like this...Would you
> be willing to contribute it to the framework?
Sure, as usually :-) Have you are: http://code.djangoproject.com/ticket/2606
I also added a docstring that may be a bit clumsy and will certainly
[EMAIL PROTECTED] wrote:
> i imported 2 users in the model LoginInfo the first is lab_id = '100'
> and the second is lab_id = '200'
> how do i put in the data in the class Modules ?
>
> what i thought i had to do was first create a object from the LoginInfo
> class like
> p =
Curtis <[EMAIL PROTECTED]> írta:
> PyFileServer -
http://pyfilesync.berlios.de/pyfileserver.html seems to
> be very similar (at least in theory) to what you want.
It's a WSGI
> WebDav server.
Although not refreshed a year ago, i'll check it.
Seem to be quite what i needed.
Thank you Curt.
Hi,
I know the discussion about django and ajax compatible response. The
'hardliners' say that you only need to implement your own kind of template -
which is true for all time, but I would prefer a much more generic way to get
the response from the views.
I made a server-side django library
Hi,
I'm relatively new to django and maybe my question is stupid, but...
Is it possible to map in urls.py some url not to function in views.py
(which has first argument with HttpRequest) but to some class methot?
In that case each instance of such class would be created when session
starts and
I've posted a patch that adds full introspection functionality for
ado_mssql backends (http://code.djangoproject.com/ticket/2563). I'd
appreciate it if those of you who run Django/mssql could test it out
and let me know if any problems are found.
Thanks,
Sean
* Note: the patch relies on the
Hello Django users,
i just started working with django and i really can't figure out even
with the tutorial how i can get some info out of the database.
i have the following database models
class LoginInfo(models.Model):
lab_id = models.IntegerField(maxlength=10)
password =
Hi,
I'm relatively new to django and maybe my question is stupid, but...
Is it possible to map in urls.py some url not to function in views.py
(which has first argument with HttpRequest) but to some class methot?
In that case each instance of such class would be created when session
starts and
Hi Folks,
I have startetd a project/app
, created a Model. All fine
in Python-Interpreter an
>>>import kb.models
>>>
works fine.
But the same in a file occurs erros like
raise EnvironmentError, "Could not import settings '%s' (Is it on
sys.path? Does it have syntax errors?): %s" %
Hello,
I want to play with django as a FastCGI-Server and need the package
flup for this. So I tried to download it on
http://www.saddi.com/software/flup/, but this site is down/has no
content.
I searched for a mirror or an alternative download-site, but can't find
any.
So does have anybody the
I've completed a patch* (http://code.djangoproject.com/ticket/2563) for
ado_mssql database introspection. I'd appreciate it if those few of
you out there who use Djagno/mssql could test it out and provide some
feedback.
Thanks,
Sean
* The patch depends on the changes in
I got sick of kate highlighting my django template vars/tags as errors,
so I put this together. It highlights tags, vars, filters, and
comments. You can also use Ctrl+[Shift+]D to [un]comment using {%
comment %}{% endcomment %}.
It's really pretty simple, but I thought it was worth sharing.
On 8/24/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> I've created a template tag that wraps it to be usable in templates:
> [...]
> It's a bit limited since it works only with positional arguments in
> views but not with keyword ones. This is not hard to do in code since
> 'reverse' function
I've been looking at creating a registraion view but am not sure on
the best way, although the Zyons style email for registration link
system seems good. But I am not sure whether it is wise to just ask for
a potential users email without giving them any prospect of
registration.
Karen Tracey wrote:
> I think this has been fixed in a more recent revision than what you are
> running:
> http://code.djangoproject.com/changeset/3530
You're right. I should have checked. Would have saved me a lot of
typing ;-))
Thanks.
Daniel
I think this has been fixed in a more recent revision than what you are
running:
http://code.djangoproject.com/changeset/3530
Karen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
On 8/26/06, Eugene Pyvovarov <[EMAIL PROTECTED]> wrote:
>
> hello everybody. I'm new in django... just want to create base apps
> from tutorial on djangoproject website.
> I am using mysql 4.1 and python 2.4, django from svn
> When I create database in iso-8859-1 - all stuff working good, but
Hi.
Which DNS lookups for client addresses does the Django development
server do, and why?
Background for my question:
I'm running a Windows installation in a VMWare machine and use that to
check the IE-compatibility of my HTML. That used to work just fine.
I've just tried it again and the
Maciej Bliziński wrote:
> On Sat, 2006-08-26 at 10:05 +0200, Michal wrote:
>> Full description: In my language (czech) there are a lot of characters
>> with accents. When I type titles in admin forms, the slug field
>> autogenerated values are incorect (for example:title="sršeň",
>
> Is it a
Hi,
I would like to know what to look for to solve this problem.
When I access http://127.0.0.1:8000/admin/ I get
Groups
Users
in the Autho Fieldset.
If I click on Users http://127.0.0.1:8000/admin/auth/user/ I get a list
of all the users.
When I click on any of them:
Gnissem wrote:
> I am using generic views to produce a paginated specimen list. In the
> list, you can click on a specimen to get the generic view detail.
> After viewing the detail, the user will likely want to go back to the
> specimen list, on the page where the link came from. Pressing the
Hi,
for svn checkout or export the correct trunk-url is
http://svn.sourceforge.net/svnroot/django-userlibs/trunk
Regards,
Dirk
--
"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
On Sat, 2006-08-26 at 10:05 +0200, Michal wrote:
> Full description: In my language (czech) there are a lot of characters
> with accents. When I type titles in admin forms, the slug field
> autogenerated values are incorect (for example:title="sršeň",
Is it a hornet?
> autogenerated
Yeah i tried that, but i'm getting the following error message:
svn co http://svn.sourceforge.net/viewvc/django-userlibs/trunk/
django-userlibs
svn: PROPFIND request failed on '/viewvc/django-userlibs/trunk'
svn: PROPFIND of '/viewvc/django-userlibs/trunk': 301 Moved
(http://svn.sourceforge.net)
Ivan,
On Sat, Aug 26, 2006 at 02:26:28PM +0400, Ivan Sagalaev wrote:
> Oh I've forgot. It happens because Apache still passes all requests to
> mod_python because of SetHandler set in the first rule. In subsequent
> locations you have to also reset it with SetHandler None.
It worked, thanks
Matthias Kestenholz wrote:
> * How can I create a new FormField? Where can I specify which
> FormField to use for a DB field?
Inherit your class from django.forms.FormField and at the very least
override render() method. Other methods that you might want to override
depending on your field
Baurzhan Ismagulov wrote:
> Hmm, I've converted to /debian> and put it after :
>
> DocumentRoot /var/www
>
> Options FollowSymLinks
> AllowOverride None
>
>
>
> SetHandler python-program
> ...
>
Hello everyone,
I am currently trying to migrate away from PHP to my new favorite
programming language for web development, Python. I've developed
web RAD toolkit in PHP [1] but got tired of doing everything on my
own.
Django seemed like the best replacement. I immediately liked the DB
Models,
Hello Ivan,
thanks for your fast response!
On Sat, Aug 26, 2006 at 01:19:20PM +0400, Ivan Sagalaev wrote:
> > Can I have Django accessible at /, and other content still accessible
> > under other directories?
>
> Yes. You should Directories describing '/debian/' _after_ your
> '' for this
I've found that using XMLObject
(http://www.freenet.org.nz/python/xmlobject/) is a simple way to get
the feed information from an OPML feed, then you can read the feed
however you like (e.g. with Feedparser (www.feedparser.org)).
Something like this should get you started:
from xmlobject import
Petar Marić wrote:
> I'm checking out reverse url resolving and I can't help but wonder:
> What happenes when we use generic views? Will it still work?
Hm... Looks like they wouldn't :-(. This'll require some thinking...
--~--~-~--~~~---~--~~
You received this
Baurzhan Ismagulov wrote:
> Hello,
>
> I have the following lines in /etc/apache2/sites-available/default:
>
> DocumentRoot /var/www
>
> Options FollowSymLinks
> AllowOverride None
>
>
> Alias /debian/ /mnt/sda1/ibr/debian/
>
Hi,
I've spent many hours trying to get the following to work (I'm not
blaming Django - I'm very new to Python and Django, it was late etc).
To hopefully make the solution easier to find in Google, I write it
here. Suggestions for improvement are welcome.
Question: using generic views, how to
Thanks Don.
That, and some other issues identified by Alain Dazzi have been
resolved in Release 329.
It is recommended that people using these login routines in their own
code should upgrade ASAP.
On 26/08/2006, at 4:37 PM, Don Arbow wrote:
>
> On Aug 25, 2006, at 12:31 PM, Waylan
Hello,
I have the following lines in /etc/apache2/sites-available/default:
DocumentRoot /var/www
Options FollowSymLinks
AllowOverride None
Alias /debian/ /mnt/sda1/ibr/debian/
Options Indexes
magus wrote:
> I'd like to roll my own basic authentication for a web service, i.e. I
> don't want to use the contrib.auth module. If possible I'd like to
> avoid relying on the server for this. Anyone who can offer some
> pointers on how to raise a 401 on a request that doesn't contain the
>
feedjack is a lot of stuff, it exports opml but it doesnt import opml
any ideas for importing opml
> > you might want to check out FeedJack http://www.feedjack.org/
> > it's done a lot of stuff in that area.
> >
> > regards
> > Ian
> >
> > On 24/08/2006, at 5:42 PM, a wrote:
> >
> > >
> > > hi
Hello,
I have problem with submiting ticket in trac (details below) with my
patch, so I decided to post it here.
-
Short summary: [patch] Generating slug for words with accents
Full description: In my language (czech) there are a lot of characters
with
On Aug 25, 2006, at 12:31 PM, Waylan Limberg wrote:
>
> On 8/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
> [snip]
>>
>> I've gone through and stripped out every extra space I can find,
>> thinking that was the problem, but still that dang trailing slash
>> comes
>> down to the next
magus wrote:
> Yes, but "cheapness" is only one of my concerns. I have two bigger
> concerns:
>
> 1. By limiting the external dependencies (i.e. the number of django
> modules I use) I will lower the risk of being hit by a bug that I don't
> control.
> 2. AFAICS the session is represented by a
I am using generic views to produce a paginated specimen list. In the
list, you can click on a specimen to get the generic view detail.
After viewing the detail, the user will likely want to go back to the
specimen list, on the page where the link came from. Pressing the back
button works, but
59 matches
Mail list logo